Why are all of my ZFS snapshot directories empty?

Posted by growse on Server Fault See other posts from Server Fault or by growse
Published on 2012-06-14T08:50:21Z Indexed on 2012/09/18 15:41 UTC
Read the original article Hit count: 213

Filed under:
|
|

I'm running an Oracle 11 box as a ZFS storage appliance, and I'm taking regular snapshots of the ZFS filesystems, via cron.

In the past, I know that if I wanted to grab a particular file from a snapshot, a read-only copy was kept in .zfs/snapshot/{name}/ and I could just navigate there and pull the file out. This is documented on Oracle's website.

However, I went to do this the other day, and noticed that the ZFS directories within the snapshot directories are all empty. zfs list -t snapshot correctly shows the list of snapshots that should be present, and .zfs/snapshots correctly contains a directory for each snapshot, and in each snapshot there is a directory present for each ZFS filesystem. However, these directories appear to be empty.

I just tested a restore by touching a file in a little-used share and rolling back to the latest hourly snapshot, and this appears to have worked fine. So the rollback functionality is there.

Did Oracle change how snapshots are done? Or is something seriously wrong here?

© Server Fault or respective owner

Related posts about solaris

Related posts about zfs