Harry Putnam wrote:
Darren J Moffat <darr...@opensolaris.org> writes:
Harry Putnam wrote:
I thought I recalled reading somewhere that in the situation where you
have several zfs filesystems under one top level directory like this:
rpool
rpool/ROOT/osol-112
rpool/export
rpool/export/home
rpool/export/home/reader
you could do a shapshot encompassing everything below zpool instead of
having to do it at each level. (Maybe it was in a dream...)
zfs snapshot -r rp...@mysnapshotnamegoeshere
Well no, I posted the question because that doesn't do it.
Well yes actually you aren't looking for the snapshots the correct way.
zfs list -r rpool
[...]
rpool/dump 1.50G 292G 1.50G -
rpool/export 15.9G 292G 21K /export
rpool/export/home 15.9G 292G 22K /export/home
rpool/export/home/reader 15.9G 292G 11.5G /export/home/reader
[...]
# zfs snapshot -r rp...@somedate
# zfs snapthot rpool/someotherdate
cd /rpool/.zfs/snapshot
diff -r somedate someotherdate
The /rpool directory wouldn't have changed because nothing is actually
stored in the rpool filesystem.
Do this first to verify you really do have the snapshots:
zfs list -r -t snapshot rpool
No difference, and there is no
rpool/dump
rpool/export
rpool/export/home
rpool/export/home/reader
under either snapshot... not to mention all the other stuff shown with
zfs list -r rpool
that I snipped.
That is correct for several reasons.
1. some of those are ZVOLS
2. The .zfs directory is in the root of each filesystem
3. The /rpool directory isn't actually used to store anything in
the case of the ZFS root pool for an OpenSolaris install.
4. You can't cross filesystem bounaries in a .zfs directory.
Try:
cd /export/home/.zfs/snapshot && ls
cd /export/home/reader/.zfs/snapshot && ls
A snapshot of rpool/dump and rpool/swap is pointless anyway but since
those are ZVOLs you can't 'cd' into a .zfs/snapshot directory for them
since that concept doesn't exist for a ZVOL.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss