volume issues

All your general support questions for OpenZFS on OS X.

volume issues

Postby haer22 » Tue Feb 09, 2016 4:30 am

If I create a volume it will be seen by OS and it will ask whet to do with it. I create a filesystem etc and everybody is happy and silent.

BUT, I replicate my front pool zeus onto my backup pool gaia, both hooked up on the same machine. I.e. I will not only have vol1 exported by zeus, but after my send/receive synk gaia will also show a volume vol1 with the filesystem and it will mount.

Is there a way to tell zfs to create the volume but do now show it? i.e. like canmount=noauto.
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: volume issues

Postby xbytor » Tue Feb 09, 2016 2:00 pm

I use canmount=off on my backup pool(s).
xbytor
 
Posts: 22
Joined: Sun Jun 29, 2014 7:52 pm

Re: volume issues

Postby haer22 » Tue Feb 09, 2016 3:33 pm

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?
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: volume issues

Postby incumbent » Fri Apr 29, 2016 5:42 am

I add uuids to my fstab with noauto:

Code: Select all
UUID=279FD701-F681-38B3-9764-35D8045D3355   none   exfat ro,noauto
UUID=D03D0808-7DCC-3FC4-AF0B-74DE19FCCA97 none exfat ro,noauto
UUID=5C318E5C-FE8C-3E20-9EEE-3E7F5F9860F2 none exfat ro,noauto
UUID=316306A3-6742-3A2D-9553-0B293E45606B none exfat ro,noauto
incumbent
 
Posts: 40
Joined: Mon Apr 25, 2016 8:52 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 21 guests