Software >> OS >> Unix >> Solaris >> ZFS >> Where to locate the .zfs snapshot directory for a ZFS filesystem


First list the snapshots

bash-3.2# zfs list -t snapshot
NAME                                         USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/s10be-2016aug12@s10be-2016aug12  25.2G      -  33.7G  -


Note the filesystem name, list it to determine the mountpoint


bash-3.2# zfs list rpool/ROOT/s10be-2016aug12
NAME                         USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/s10be-2016aug12  37.2G  4.63G  12.0G  /

 
There will be a .zfs hidden directory under the mountpoint.  Inside .zfs there is a snapshot directory.

bash-3.2# ls -ldh /.zfs
dr-xr-xr-x   3 root     root           3 Oct 24  2012 /.zfs

bash-3.2# ls -lah /.zfs
total 5
dr-xr-xr-x   3 root     root           3 Oct 24  2012 .
drwxr-xr-x  34 root     root          39 Aug 14 00:52 ..
dr-xr-xr-x   2 root     root           2 Aug 14 00:52 snapshot