Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2010 20:55:43 -0400
From:      Gary Palmer <gpalmer@freebsd.org>
To:        David Magda <dmagda@ee.ryerson.ca>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Make ZFS auto-destroy snapshots when the out of space?
Message-ID:  <20100531005543.GA77116@in-addr.com>
In-Reply-To: <4632C12D-2B1E-4073-B2C9-E9D15C212EF1@ee.ryerson.ca>
References:  <4C017419.9010909@strauser.com> <4632C12D-2B1E-4073-B2C9-E9D15C212EF1@ee.ryerson.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 30, 2010 at 08:33:40PM -0400, David Magda wrote:
> On May 29, 2010, at 16:07, Kirk Strauser wrote:
> 
> >I'd propose standardizing on an attribute like  
> >org.freebsd:allowautodestroy. Modify ZFS's disk full behavior [...]   
> >Also run a daily periodic script to ensure that the free space stays  
> >below a configurable threshold each day so that ZFS isn't constantly  
> >butting up against completely full drives.
> 
> 
> Why not simply have a script that runs and checks for pool usage and  
> then deletes snapshots with that attribute if necessary? Why do you  
> need to have have it built into ZFS?

Suggestion: zfs can have settings that trigger an event to be delivered
to devd when a filesystem hits a certain percentage full (or under a
certain percentage free space left).  That way you can have the event
triggered at the filesystem level, which I believe is the correct thing
to do (so you're not polling), and also delivers the level of control
you want.

Regards,

Gary



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