From owner-freebsd-stable@FreeBSD.ORG Mon May 31 00:40:29 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 666AD10656C9 for ; Mon, 31 May 2010 00:40:29 +0000 (UTC) (envelope-from dmagda@ee.ryerson.ca) Received: from eccles.ee.ryerson.ca (ee.ryerson.ca [141.117.1.2]) by mx1.freebsd.org (Postfix) with ESMTP id 226888FC21 for ; Mon, 31 May 2010 00:40:28 +0000 (UTC) Received: from [192.168.1.103] (bas1-toronto09-1279534184.dsl.bell.ca [76.68.36.104]) (authenticated bits=0) by eccles.ee.ryerson.ca (8.14.4/8.14.4) with ESMTP id o4V0eWaZ013441 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 30 May 2010 20:40:33 -0400 (EDT) (envelope-from dmagda@ee.ryerson.ca) Message-Id: <04B42F88-2E60-4B29-BEF9-3AE3AE251CB3@ee.ryerson.ca> From: David Magda To: Kirk Strauser In-Reply-To: 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 20:40:19 -0400 References: <4C017419.9010909@strauser.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: Mon, 31 May 2010 00:40:29 -0000 On May 30, 2010, at 18:03, Kirk Strauser wrote: > The "only one need" that it addresses is that now FreeBSD would come > with a built-in recovery system. Did a "make installworld" but > screwed something up and ended up with a non-bootable system? Pop in > a recovery CD and revert to the "4 hours ago" snapshot, then reboot. > Voila! It never happened. Accidentally deleted /etc/passwd? Retrieve > the version from /.zfs/snapshot/weekly-2010-21/etc/passwd . Just > realized that you deleted an important file 3 months ago and only > keep 2 weeks worth of backups? No problem, as long as you haven't > filled up your hard drive since then. All scriptable. For the case of "make installworld", a make.conf variable can be created to run a "zfs snapshot" before any kind of 'make install'; this could be for both Ports and the base system. Portmanager and/or portupgrade could also be expanded to optionally do this. (Open)Solaris already has this with the Live Upgrade and boot environment idea if you want a comparison: http://docs.sun.com/app/docs/doc/820-5238/ggavn http://docs.sun.com/app/docs/doc/819-2240/bootadm-1m http://docs.sun.com/app/docs/doc/819-2379/gglaj