[indiana-discuss] zfs snapshot

Tim Foster Tim.Foster at Sun.COM
Wed Dec 5 03:08:54 PST 2007


Hi again,

On Wed, 2007-12-05 at 02:41 -0800, John Hawk wrote:
> It is my understanding from the documentation that a snapshot can be
> either a complete system 'zfs snapshot zpl_slim at today' or directory
> structure 
> 'zfs snapshot -r /export/home/jhawk at today' the -r being recursive.

I should have picked up on this too - you can only snapshot datasets,
not directories.

So if I have:

 zpl_slim/timf  mounted as /export/home/timf

then I can create a snapshot zpl_slim/timf at today but not
/export/home/timf at today 

(since that's a mountpoint not a zfs dataset)


Likewise, in order to have a snapshot called
zpl_slim/timf/Documents at today I would need to make "Documents" a real
zfs filesystem and not just a directory.

ie. not "mkdir /export/home/timf/Documents" but 
"zfs create zpl_slim/timf/Documents"

If you do have a directory rather than a dataset, then the contents of
that directory will be included in the snapshot of the filesystem that
contains that directory.

( so you'd access it
under /export/home/timf/.zfs/snapshot/today/Documents )

	cheers,
			tim

-- 
Tim Foster, Sun Microsystems Inc, Solaris Engineering Ops
http://blogs.sun.com/timf



More information about the indiana-discuss mailing list