Date: Sun, 30 May 2010 17:06:18 -0500 From: Kirk Strauser <kirk@strauser.com> To: Dan Nelson <dnelson@allantgroup.com> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Make ZFS auto-destroy snapshots when the out of space? Message-ID: <93F986A6-DAEB-47B4-AB8C-5A095E61A7B7@strauser.com> In-Reply-To: <20100530024240.GE8866@dan.emsphone.com> References: <4C017419.9010909@strauser.com> <20100530024240.GE8866@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 29, 2010, at 9:42 PM, Dan Nelson wrote: > If the kernel does the snapshot deleting itself, why not add a pool- > level > property that sets the amount of free space at which the deletion > starts? > That way you don't need the cleanup script. Alternatively, make the > org.freebsd:allowautodestroy property hold the trigger freespace > amount. > That way you can have monthly/daily/hourly snapshots but set it so the > hourly ones disappear first, then the dailies (by setting the destroy > trigger slightly higher for the ones you want to expire first). That'd definitely work. The idea was to keep as much as possible out of the kernel so that it wouldn't add additional complexity for people who don't use it (but it certainly wouldn't offend me any to find it in there :-) ). -- Kirk Strauser
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?93F986A6-DAEB-47B4-AB8C-5A095E61A7B7>