Re: [zfs-discuss] remove snapshots

2007-08-19 Thread Luke Vanderfluit
Hi. Thanks to everyone who helped me on this (-: That was a really good experience. Great list. I ended up using the script below (thanks David (-:). Kind regards. Luke. David Smith wrote: > To list your snapshots: > > /usr/sbin/zfs list -H -t snapshot -o name > > Then you could use that in a

Re: [zfs-discuss] remove snapshots

2007-08-18 Thread Matthew Ahrens
Matthew Ahrens wrote: > Dick Davies wrote: >> On 18/08/07, Matthew Ahrens <[EMAIL PROTECTED]> wrote: >>> Blake wrote: Now I'm curious. I was recursively removing snapshots that had been generated recursively with the '-r' option. I'm running snv65 - is this a recent feature? >>

Re: [zfs-discuss] remove snapshots

2007-08-18 Thread Matthew Ahrens
Dick Davies wrote: > On 18/08/07, Matthew Ahrens <[EMAIL PROTECTED]> wrote: >> Blake wrote: >>> Now I'm curious. >>> >>> I was recursively removing snapshots that had been generated recursively >>> with the '-r' option. I'm running snv65 - is this a recent feature? >> No; it was integrated in snv_

Re: [zfs-discuss] remove snapshots

2007-08-18 Thread Dick Davies
On 18/08/07, Matthew Ahrens <[EMAIL PROTECTED]> wrote: > Blake wrote: > > Now I'm curious. > > > > I was recursively removing snapshots that had been generated recursively > > with the '-r' option. I'm running snv65 - is this a recent feature? > > No; it was integrated in snv_43, and is in s10u3.

Re: [zfs-discuss] remove snapshots

2007-08-17 Thread Matthew Ahrens
Blake wrote: > Now I'm curious. > > I was recursively removing snapshots that had been generated recursively > with the '-r' option. I'm running snv65 - is this a recent feature? No; it was integrated in snv_43, and is in s10u3. See: PSARC 2006/388 snapshot -r 6373978 want to take lots of sna

Re: [zfs-discuss] remove snapshots

2007-08-17 Thread Blake
Now I'm curious. I was recursively removing snapshots that had been generated recursively with the '-r' option. I'm running snv65 - is this a recent feature? Example: 2007-07-08.05:48:36 zfs destroy -r [EMAIL PROTECTED] (this removed each recursive snapshot for all the filesystems contained in

Re: [zfs-discuss] remove snapshots

2007-08-17 Thread David Smith
To list your snapshots: /usr/sbin/zfs list -H -t snapshot -o name Then you could use that in a for loop: for i in `/usr/sbin/zfs list -H -t snapshot -o name` ; do echo "Destroying snapshot: $i" /usr/sbin/zfs destroy $i done The above would destroy all your snapshots. You could put a grep o

Re: [zfs-discuss] remove snapshots

2007-08-17 Thread Darren Dunham
> Hi. I want to delete a whole series of snapshots. > > How do I go about that. > > I have tried doing a rm -rf of one of the snapshot directories but I'm > not allowed since its read-only despite that I'm root. You can't use '-r' because the contents are immutable. But you may be able to simp

Re: [zfs-discuss] remove snapshots

2007-08-17 Thread XIU
Hey, "zfs destroy snapshotname" is the way I use to remove snapshots. Kind regards, Steve On 8/17/07, Luke Vanderfluit <[EMAIL PROTECTED]> wrote: > > Hi. > > Thanks greatly for your reply. > Since I am trying _not_ to inadvertently destroy anything but the > snapshots... could you tell me your

Re: [zfs-discuss] remove snapshots

2007-08-16 Thread Luke Vanderfluit
Hi. Thanks greatly for your reply. Since I am trying _not_ to inadvertently destroy anything but the snapshots... could you tell me your syntax? Kind regards. Luke. [EMAIL PROTECTED] wrote: > On Fri, 17 Aug 2007, Luke Vanderfluit wrote: > >> >> Do I use the zfs destroy command? >> >> > I use z

Re: [zfs-discuss] remove snapshots

2007-08-16 Thread Blake
I think zfs destroy is correct. Check 'man zfs' for details - you probably have to supply the '-r' option for recursion. blake/ On 8/17/07, Luke Vanderfluit <[EMAIL PROTECTED]> wrote: > > Hi. I want to delete a whole series of snapshots. > > How do I go about that. > > I have tried doing a rm -r

[zfs-discuss] remove snapshots

2007-08-16 Thread Luke Vanderfluit
Hi. I want to delete a whole series of snapshots. How do I go about that. I have tried doing a rm -rf of one of the snapshot directories but I'm not allowed since its read-only despite that I'm root. Do I use the zfs destroy command? I'd appreciate some help. Thanks. Kind regards. -- Luke V