Make ZFS auto-destroy snapshots when the out of space?
Kirk Strauser
kirk at strauser.com
Sun May 30 21:53:12 UTC 2010
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
More information about the freebsd-stable
mailing list