Make ZFS auto-destroy snapshots when the out of space?
Kirk Strauser
kirk at strauser.com
Tue Jun 1 14:04:29 UTC 2010
On 05/31/10 08:48, Paul Mather wrote:
> Devd already receives several ZFS-based events (failed vdev, I/O
> error, checksum mismatch, etc.), so perhaps it would be useful to add
> another, e.g., "space" which is set to be triggered when a pool
> attains a certain percentage full. This could default to 100%, but be
> capable of being set lower by an associated kernel sysctl. You could
> then have any auto-pruning/snapshot management script triggered from
> devd. (You'd probably also have to figure out some kind of throttling
> mechanism for this devd event, too.)
I think that's probably the best alternative. Again, I could see that
being used for a lot of things. It would be a nice general solution that
wouldn't touch any (or very little) non-FreeBSD code.
--
Kirk Strauser
More information about the freebsd-stable
mailing list