Date: Mon, 31 May 2010 02:08:21 +0200 From: Christof Schulze <christof.schulze@gmx.com> To: freebsd-stable@freebsd.org Subject: Re: Make ZFS auto-destroy snapshots when the out of space? Message-ID: <201005310208.22387.christof.schulze@gmx.com> In-Reply-To: <4F444333-C839-4C2F-AA5D-1898192DDE93@strauser.com> References: <4C017419.9010909@strauser.com> <20100529234507.GD20695@mail.hs.ntnu.edu.tw> <4F444333-C839-4C2F-AA5D-1898192DDE93@strauser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_23vAMpwjIYfQ7mv Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Am Sonntag 30 Mai 2010 23:53:06 schrieb Kirk Strauser: > On May 29, 2010, at 6:45 PM, Denny Lin wrote: > > How about writing a shell script with this functionality? Get the > > available disk space using: > > $ zfs list -H -o avail tank > > > > And then compare the figures against a limit. Then delete the oldest > > snapshots when the limit is exceeded. > > That's certainly an option, and easy to implement in a shell script. > It just wouldn't work in the case where a bunch of data comes in > between runs of that script, and that's why I wanted something lower- > level. Hello, this is what I use to create daily zfs snapshots. It might provide a base for developing something more sophisticated Regards Christof -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --Boundary-00=_23vAMpwjIYfQ7mv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005310208.22387.christof.schulze>