My home directory in OpenSolaris 0906 is part of the zpool rpool. I can view the pool in zpool list. I can view the file system in zfs list. I can create snapshots. I can use zfs list and see a list of the snapshots I've taken. It's my understanding there should be a .zfs directory inside /export/home/test at /export/home/test/.zfs

zfs snapshot rpool/export/home/test@1 creates my snapshot successfully
zfs list -t snapshot shows my snapshots successfully

I can't figure out where to find the snapshots. I see no .zfs directory anywhere.

Any hints where else I should look or what else I should do to find the .zfs directory and the snapshots?

Thanks in advance.

link|improve this question

79% accept rate
feedback

2 Answers

up vote 3 down vote accepted

Change the snapdir property of the dataset if you need to make it visible.

# ls -la /rpool/
total 6
drwxr-xr-x  5 root root  4 2010-09-14 05:21 .
drwxr-xr-x 25 root root 25 2010-11-18 13:18 ..
dr-xr-xr-x  4 root root  4 2010-09-14 05:15 .zfs
drwxr-xr-x  3 root root  3 2010-09-14 05:15 boot
drwxr-xr-x  2 root root  3 2010-09-14 05:21 etc

# zfs set snapdir=hidden rpool

# ls -la /rpool/
total 6
drwxr-xr-x  4 root root  4 2010-09-14 05:21 .
drwxr-xr-x 24 root root 25 2010-11-18 13:18 ..
drwxr-xr-x  3 root root  3 2010-09-14 05:15 boot
drwxr-xr-x  2 root root  3 2010-09-14 05:21 etc
link|improve this answer
Making this directory visible isn't a recommended practice. It isn't necessary as even when the snapdir property is set to hidden, you can still access it. bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6399899 – jlliagre Nov 22 '10 at 12:24
what are the downsides of making it visible? I don't think there is a recommended practice about this. every org should decide how they want to handle this. – gtirloni Nov 29 '10 at 8:40
feedback

The snapshot directory should be in /export/home/test/.zfs.

This directory doesn't appear with a simple "ls -a", you need to specify it explicitly.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.