Date: Sun, 30 May 2010 16:53:06 -0500 From: Kirk Strauser <kirk@strauser.com> To: Denny Lin <dennylin93@hs.ntnu.edu.tw> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Make ZFS auto-destroy snapshots when the out of space? Message-ID: <4F444333-C839-4C2F-AA5D-1898192DDE93@strauser.com> In-Reply-To: <20100529234507.GD20695@mail.hs.ntnu.edu.tw> References: <4C017419.9010909@strauser.com> <20100529234507.GD20695@mail.hs.ntnu.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- Kirk Strauser
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F444333-C839-4C2F-AA5D-1898192DDE93>