Zvol and version numbers.

Status
Not open for further replies.

Bob McMillan

Cadet
Joined
Jan 5, 2016
Messages
2
Do zvols supposed to have version numbers associated with them?

when I execute the following:

zfs get -r version

pool/iSCSI version - -

zpool/iSCSI@auto-20151231.1758-2w version - -

zpool/iSCSI@auto-20160101.0900-2w version - -

zpool/iSCSI@auto-20160101.1000-2w version - -

zpool/iSCSI@auto-20160101.1100-2w version - -

zpool/iSCSI@auto-20160101.1200-2w version - -

The reason I ask is I cannot mount a zvol without a version number.

mount -t zfs zpool/iSCSI@auto-20160104.0900-2w /mnt/iScsi

unable to fetch ZFS version for filesystem 'zpool/iSCSI@auto-20160104.0900-2w'

Thanks in advance.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
You shouldn't be mounting this stuff from the CLI. The WebGUI has provisioned features to do what you are doing. I'd recommend you use the WebGUI to prevent potential problems with your server.
 

Bob McMillan

Cadet
Joined
Jan 5, 2016
Messages
2
I understand that using the cli is not recommended but would still like to know if zvols are supposed to be versioned or not.

Thx.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Mount is a command used to mount a UNIX filesystem within the system's namespace. A zvol, used for iSCSI, almost certainly doesn't contain a compatible filesystem. You're telling it that what is contained within the snapshot is a ZFS filesystem. This basically makes no sense, and the system can't make any sense of it, either.

It's not looking for a snapshot version. It's looking for a ZFS pool version. It isn't going to find one, unless you've done something very unusual like you've created a ZFS pool on top of that iSCSI device.

That's the long way of saying "You can't mount that, it doesn't even make sense."
 
Status
Not open for further replies.
Top