zfs version 23: where are the snapshot directories?

Moderators: jhartley, MSR734, nola

zfs version 23: where are the snapshot directories?

Post by La_Tristesse » Tue May 21, 2013 9:47 am

Hi there,

I'm using a zpool with version 23 because of the compatiblity with zfs-fuse. I recently made some zfs snapshots which are correctly listed when doing the "$ zfs list -t snapshot" command, but for some reason the snapshot directory isnt inside the dataset. Normally it is a hidden folder called ".zfs" but not this time. Any suggestions?

Code: Select all
$ zfs get all ZFS_DISK_V23
NAME          PROPERTY              VALUE                  SOURCE
ZFS_DISK_V23  type                  filesystem             -
ZFS_DISK_V23  creation              Do Mai 16 22:38 2013   -
ZFS_DISK_V23  used                  580Gi                  -
ZFS_DISK_V23  available             105Gi                  -
ZFS_DISK_V23  referenced            911Ki                  -
ZFS_DISK_V23  compressratio         1.00x                  -
ZFS_DISK_V23  mounted               yes                    -
ZFS_DISK_V23  quota                 none                   default
ZFS_DISK_V23  reservation           none                   default
ZFS_DISK_V23  recordsize            128Ki                  default
ZFS_DISK_V23  mountpoint            /Volumes/ZFS_DISK_V23  default
ZFS_DISK_V23  checksum              on                     default
ZFS_DISK_V23  compression           off                    default
ZFS_DISK_V23  atime                 on                     default
ZFS_DISK_V23  devices               on                     default
ZFS_DISK_V23  exec                  on                     default
ZFS_DISK_V23  setuid                on                     default
ZFS_DISK_V23  readonly              off                    default
ZFS_DISK_V23  snapdir               hidden                 default
ZFS_DISK_V23  canmount              on                     default
ZFS_DISK_V23  copies                1                      default
ZFS_DISK_V23  version               4                      -
ZFS_DISK_V23  utf8only              on                     -
ZFS_DISK_V23  normalization         formD                  -
ZFS_DISK_V23  casesensitivity       sensitive              -
ZFS_DISK_V23  refquota              none                   default
ZFS_DISK_V23  refreservation        none                   default
ZFS_DISK_V23  primarycache          all                    default
ZFS_DISK_V23  secondarycache        all                    default
ZFS_DISK_V23  usedbysnapshots       0                      -
ZFS_DISK_V23  usedbydataset         911Ki                  -
ZFS_DISK_V23  usedbychildren        580Gi                  -
ZFS_DISK_V23  usedbyrefreservation  0                      -
ZFS_DISK_V23  logbias               latency                default
ZFS_DISK_V23  sync                  standard               default


Code: Select all
$ zfs list

ZFS_DISK_V23/Software/Application/iTunes                   21,3Gi   105Gi  33,5Ki  /Volumes/ZFS_DISK_V23/Software/Application/iTunes
ZFS_DISK_V23/Software/Application/iTunes/Backup            10,3Gi   105Gi  10,3Gi  /Volumes/ZFS_DISK_V23/Software/Application/iTunes/Backup
ZFS_DISK_V23/Software/Application/iTunes/Firmware          2,85Gi   105Gi  2,85Gi  /Volumes/ZFS_DISK_V23/Software/Application/iTunes/Firmware
ZFS_DISK_V23/Software/Application/iTunes/Library           6,66Gi   105Gi  6,66Gi  /Volumes/ZFS_DISK_V23/Software/Application/iTunes/Library
ZFS_DISK_V23/Software/Application/iTunes/Media             1,55Gi   105Gi  1,55Gi  /Volumes/ZFS_DISK_V23/Software/Application/iTunes/Media


Code: Select all
$ zfs list -t snapshot
NAME                                                            USED   AVAIL   REFER  MOUNTPOINT
ZFS_DISK_V23/Software/Application/iTunes/Firmware@2013-05-21       0       -  2,85Gi  -
ZFS_DISK_V23/Software/Setup/Apple/iOS/iTunes@2013-05-21            0       -  34,1Gi  -


Code: Select all
$ ls -Rla /Volumes/ZFS_DISK_V23/Software/Application/iTunes/Firmware/
total 44
drwxr-xr-x  6 tristank  staff  6 21 Mai 16:49 .
drwxr-xr-x  8 tristank  staff  8 21 Mai 13:11 ..
drwxrwxrwt  3 tristank  staff  4 21 Mai 16:12 .Trashes
drwx------  2 root      staff  7 19 Mai 22:02 .fseventsd
drwxr-xr-x@ 2 tristank  staff  4 18 Mai 15:16 iPad Software Updates
drwxr-xr-x@ 2 tristank  staff  5 21 Mai 16:12 iPhone Software Updates

./.Trashes:
total 19
drwxrwxrwt  3 tristank  staff     4 21 Mai 16:12 .
drwxr-xr-x  6 tristank  staff     6 21 Mai 16:49 ..
-rw-r--r--@ 1 tristank  staff  6148 21 Mai 16:12 .DS_Store
drwx------@ 2 tristank  staff     2 21 Mai 16:12 501

./.Trashes/501:
total 4
drwx------@ 2 tristank  staff  2 21 Mai 16:12 .
drwxrwxrwt  3 tristank  staff  4 21 Mai 16:12 ..

./.fseventsd:
ls: .fseventsd: Permission denied

./iPad Software Updates:
total 2261779
drwxr-xr-x@ 2 tristank  staff           4 18 Mai 15:16 .
drwxr-xr-x  6 tristank  staff           6 21 Mai 16:49 ..
-rw-r--r--@ 1 tristank  staff         125 30 Aug  2012 .ic
-rw-r--r--@ 1 tristank  staff  1157225703 21 Feb 12:58 iPad3,1_6.1.2_10B146_Restore.ipsw

./iPhone Software Updates:
total 3720183
drwxr-xr-x@ 2 tristank  staff          5 21 Mai 16:12 .
drwxr-xr-x  6 tristank  staff          6 21 Mai 16:49 ..
-rw-r--r--@ 1 tristank  staff        127 30 Aug  2012 .ic
-rw-r--r--@ 1 tristank  staff  938592821 21 Feb 12:24 iPhone3,1_6.1.2_10B146_Restore.ipsw
-rw-r--r--@ 1 tristank  staff  964701770 20 Feb 13:22 iPhone4,1_6.1.2_10B146_Restore.ipsw
La_Tristesse Offline


 
Posts: 7
Joined: Sat Sep 15, 2012 1:26 am

snapdir=visible

Post by grahamperrin » Tue May 21, 2013 1:24 pm

The snapdir property should be set to visible
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: zfs version 23: where are the snapshot directories?

Post by La_Tristesse » Tue May 21, 2013 3:28 pm

Thanks. This worked. For everyone else: I had to do
Code: Select all
zfs set snapdir=visible DATASET
. One more question. Is it possible to set the value recursively for all datasets on this zpool? I already tried seting the value on the highest level and then inherting it with
Code: Select all
zfs inherit -r snapdir ZFS_DISK_V23
, but it didnt worked.
La_Tristesse Offline


 
Posts: 7
Joined: Sat Sep 15, 2012 1:26 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 0 guests

cron