In one of my prior experiments, I included the names of the snapshots I created in a plain text file.
I used this file, and not the zfs list output to determine which snapshots I was going to remove when it came time. I don't even remember *why* I did that in the first place, but it certainly made things easier when it came time to clean up a whole bunch of stuff... (And was not impacted by zfs list being non-snappy...) The snapshot naming scheme meant that it was dead easy to work out which to remove / keep... Right now, I don't have a system (that box was killed in a dreadful xen experiment :) so I'll be watching this thread with renewed interest to see who else is doing what... Nathan. Bob Friesenhahn wrote: > On Thu, 17 Jul 2008, Ben Rockwood wrote: > >> zfs list is mighty slow on systems with a large number of objects, >> but there is no foreseeable plan that I'm aware of to solve that >> "problem". >> >> Never the less, you need to do a zfs list, therefore, do it once and >> work from that. > > If the snapshots were done from a script then their names are easily > predictable and similar logic can be used to re-create the existing > names. This avoids the need to do a 'zfs list'. > > Bob > _______________________________________________ > 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