Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2018 07:52:09 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Cc:        byrnejb@harte-lyne.ca
Subject:   Re: Resetting zfs snapshots
Message-ID:  <20180223075209.5dd437a91cd3429b3604de0d@sohara.org>
In-Reply-To: <a4990c9f32d613211008307e23ecbc47.squirrel@webmail.harte-lyne.ca>
References:  <a4990c9f32d613211008307e23ecbc47.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22 Feb 2018 16:29:58 -0500
"James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
wrote:

> I am in the process of setting up a new FreeBSD server which involves
> transferring a large amount of data onto.  The system was installed
> with root zfs and snapshots were initialised immediately.
> 
> Several iterations of test data transfer and deletes has now resulted
> in snapshots exceeding 64 Gb.  I wish to effectively restart/rebase
> snapshots following the final transfer and eliminate all previous
> ones.

	I use this to delete all snapshots when I want to clean them up.

zfs list -H -o name -t snapshot | xargs -n1 zfs destroy

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180223075209.5dd437a91cd3429b3604de0d>