Hi Harry,
I use this stuff every day and I can't figure out the right syntax
either. :-)
Reviewing the zfs man page syntax, it looks like you should be able
to use this syntax:
# zfs list -t snapshot dataset
But it doesn't work:
# zfs list -t snapshot rpool/export
cannot open 'rpool/export': operation not applicable to datasets of this
type
Instead, use -r (recursive) option, like this:
# zfs list -rt snapshot z3/www
If you modified the auto-snapshot feature, then check this section for
where that information is stored:
http://wikis.sun.com/display/OpenSolarisInfo/How+to+Manage+the+Automatic+ZFS+Snapshot+Service
Cindy
Harry Putnam wrote:
I've been very inactive on opensolaris for a while and have forgotten a
discouraging amount of what little I knew.
I want to get back using the snapshot capability of zfs and am having
a time figuring out how to use zfs list -t snapshot.
man zfs shows:
zfs list [-rH] [-o property[,...]] [-t type[,...]]
[-s property] ... [-S property]
... [filesystem|volume|snapshot]
So I guess I can give a final argument of a filesystem but not getting
it right.
zfs list -t snapshot (with no more args) shows only one pool and
filesystem.
I have several but all I see is a list like this:
[...]
z3/www/rea...@zfs-auto-snap:hourly-2009-06-14-20:00[...]
z3/www/z...@zfs-auto-snap:frequent-2009-06-14-20:0 [...]
[...]
Everything in the list is under z3/www[...]
But zfs list
shows 3 different pools with filesystems under them
rpool z2 z3.
Does it mean no snapshots are being taken anywhere else?
I may have set something up but can't remember... and not sure where
to look and find out.
Also what is a legal name to give to zfs list -t snapshot
zfs list -t snapshot <name>
None of z3/www
z3/www/reader
rpool/exports
rpool/
/rpool
works.
Man page specifies `filesystems|volume|snapshot' so what notation works?
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss