From owner-freebsd-stable@FreeBSD.ORG Sun May 30 22:06:21 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9874B106564A for ; Sun, 30 May 2010 22:06:21 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [IPv6:2001:470:a80a:1:21f:d0ff:fe22:b8a8]) by mx1.freebsd.org (Postfix) with ESMTP id 5B9A78FC16 for ; Sun, 30 May 2010 22:06:21 +0000 (UTC) Received: from kanga.honeypot.net (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id E1EFC7BEBC; Sun, 30 May 2010 17:06:20 -0500 (CDT) X-Virus-Scanned: amavisd-new at honeypot.net Received: from kanga.honeypot.net ([127.0.0.1]) by kanga.honeypot.net (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Pe9cQhxnJJR7; Sun, 30 May 2010 17:06:18 -0500 (CDT) Received: from pooh.honeypot.net (pooh.honeypot.net [IPv6:2001:470:a80a:1:20a:95ff:fed5:10f2]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTPSA id AAFD57BEB2; Sun, 30 May 2010 17:06:18 -0500 (CDT) Message-Id: <93F986A6-DAEB-47B4-AB8C-5A095E61A7B7@strauser.com> From: Kirk Strauser To: Dan Nelson In-Reply-To: <20100530024240.GE8866@dan.emsphone.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 30 May 2010 17:06:18 -0500 References: <4C017419.9010909@strauser.com> <20100530024240.GE8866@dan.emsphone.com> X-Mailer: Apple Mail (2.936) Cc: FreeBSD-STABLE Mailing List Subject: Re: Make ZFS auto-destroy snapshots when the out of space? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2010 22:06:21 -0000 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