From owner-freebsd-current@FreeBSD.ORG Tue Jul 22 12:44:44 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EAB51065672; Tue, 22 Jul 2008 12:44:44 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 597A58FC2A; Tue, 22 Jul 2008 12:44:44 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id C27D92092; Tue, 22 Jul 2008 14:44:42 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Pawel Jakub Dawidek References: <200807131153.m6DBrDkX067657@repoman.freebsd.org> <487C6A86.20508@FreeBSD.org> <20080715095139.GA62764@server.vk2pj.dyndns.org> <20080718070624.GC1976@garage.freebsd.pl> Date: Tue, 22 Jul 2008 14:44:42 +0200 In-Reply-To: <20080718070624.GC1976@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Fri\, 18 Jul 2008 09\:06\:24 +0200") Message-ID: <86fxq2ozph.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Peter Jeremy , Remko Lodder , src-committers@freebsd.org, "current@freebsd.org" Subject: Re: geom_mirror silently upgrading metadata X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 12:44:44 -0000 Pawel Jakub Dawidek writes: > Just to be clear. I fully agree with you guys. What I could do about > that when I was working on gmirror (starting from the simplest > solution): > > 1. Skip disks which have version lower then what we have in the kernel. > > 2. Upgrade the on-disk metadata automatically. > > 3. Make gmirror kernel module to work with all the previous versions and > add 'gmirror upgrade' command, so one can upgrade on-disk metadata. 4. Allow an older mirror to be accessed r/o by a newer kernel, side- stepping the issue of converting metadata back to the old format. Require an explicit 'gmirror upgrade' to upgrade the metadata and allow r/w access. IIRC, this is what ZFS does. I believe it would be a good compromise between 2 and 3. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no