I think I was a bit unclear.
I have created a zfs
volume, not a file system, i.e.:
- Code: Select all
[ihecc:~] root# zfs create -V 10g zeus/zOther/vol2
[ihecc:~] root# zfs list -o space | grep zOther
gaia/zeus/zOther 10,7T 840G 381G 459G 0 0
zeus/zOther 7,29T 1,23T 660G 587G 0 10,3G
zeus/zOther/vol2 7,30T 10,3G 0 93K 10,3G 0
[ihecc:~] root# diskutil list | tail -3
/dev/disk18
#: TYPE NAME SIZE IDENTIFIER
0: *10.7 GB disk19
When my hourly backup script (zfssnap.sh) has run, there will be
two volumes and two "disks":
- Code: Select all
[ihecc:~] root# zfs list -o space | grep zOther
gaia/zeus/zOther 10,7T 840G 381G 459G 0 0
gaia/zeus/zOther/vol2 7,30T 10,3G 0 93K 10,3G 0
zeus/zOther 7,29T 1,23T 660G 587G 0 10,3G
zeus/zOther/vol2 7,30T 10,3G 0 93K 10,3G 0
[ihecc:~] root# diskutil list | tail -6
/dev/disk18
#: TYPE NAME SIZE IDENTIFIER
0: *10.7 GB disk19
/dev/disk19
#: TYPE NAME SIZE IDENTIFIER
0: *10.7 GB disk19
I only want my first one to be seen by the system as a disk.
A volume does not have the
canmount attribute, nor anything like it:
- Code: Select all
[ihecc:~] root# zfs get all zeus/zOther/vol2
NAME PROPERTY VALUE SOURCE
zeus/zOther/vol2 type volume -
zeus/zOther/vol2 creation Ons Feb 10 0:10 2016 -
zeus/zOther/vol2 used 10,3G -
zeus/zOther/vol2 available 7,32T -
zeus/zOther/vol2 referenced 93K -
zeus/zOther/vol2 compressratio 1.00x -
zeus/zOther/vol2 reservation none default
zeus/zOther/vol2 volsize 10G local
zeus/zOther/vol2 volblocksize 8K -
zeus/zOther/vol2 checksum on default
zeus/zOther/vol2 compression off default
zeus/zOther/vol2 readonly off default
zeus/zOther/vol2 copies 1 default
zeus/zOther/vol2 refreservation 10,3G local
zeus/zOther/vol2 primarycache all default
zeus/zOther/vol2 secondarycache all default
zeus/zOther/vol2 usedbysnapshots 0 -
zeus/zOther/vol2 usedbydataset 93K -
zeus/zOther/vol2 usedbychildren 0 -
zeus/zOther/vol2 usedbyrefreservation 10,3G -
zeus/zOther/vol2 logbias latency inherited from zeus
zeus/zOther/vol2 dedup off default
zeus/zOther/vol2 mlslabel none default
zeus/zOther/vol2 sync standard default
zeus/zOther/vol2 refcompressratio 1.00x -
zeus/zOther/vol2 written 93K -
zeus/zOther/vol2 logicalused 4K -
zeus/zOther/vol2 logicalreferenced 4K -
zeus/zOther/vol2 snapshot_limit none default
zeus/zOther/vol2 snapshot_count none default
zeus/zOther/vol2 snapdev hidden default
zeus/zOther/vol2 redundant_metadata most inherited from zeus
[ihecc:~] root#
Anyone has any ideas?