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/reader at zfs-auto-snap:hourly-2009-06-14-20:00[...] z3/www/zfs at 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?
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/reader at zfs-auto-snap:hourly-2009-06-14-20:00[...] > z3/www/zfs at 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 at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Cindy.Swearingen at Sun.COM writes: [...]> > # zfs list -rt snapshot z3/www[...] Yeah... now were talking.... thanks I''m still a little curious though as to why `zfs list -t snapshot'' By itself without a dataset, only lists snapshots under z3/www I understand about the `-r recursive'' but would probably never have thought of it on my own, but why does z3/www list without -r and only -t as argument, and not one of the others? I''m pretty sure z3/www was the last one I created... if that matters.
Harry Putnam <reader at newsguy.com> writes:> Cindy.Swearingen at Sun.COM writes: > > [...] >> # zfs list -rt snapshot z3/www > [...] > Yeah... now were talking.... thanks > > I''m still a little curious though as to why > `zfs list -t snapshot'' > > By itself without a dataset, only lists snapshots under z3/www > > I understand about the `-r recursive'' but would probably never have > thought of it on my own, but why does z3/www list without -r and only > -t as argument, and not one of the others? > > I''m pretty sure z3/www was the last one I created... if that matters.Er... never mind... apparently I just never scrolled back far enough to see the rest of the output with `zfs list -t snapshot'' (no other args), and just saw the part including z3/www which comes last. Looking again I see all the data sets get listed.