I'm starting to teach myself how ZFS works - so I may have fundamental misunderstandings here - if so, please let me know.
Is a ZVOL a block device, or does it simply behave in a manor similar to a block device ?
I can resize a ZVOL using a command like
zfs set volsize=SIZE poolname/volname
Does the above behave the same way as an LVM volume would, ie
- Can I expand the ZVOL I then expand the partitions/filesystems in the VM associated with the ZVOL.
- Can I safely REDUCE the size of the ZVOL after shrinking the partititions/ filesystems in the ZVOL (This is the operation I am most concerned about)
- Can I map the ZVOL to a loopback device using losetup and play with it the same way I might play with an LVM block device.