Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

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

 

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]