From owner-freebsd-geom@FreeBSD.ORG Fri Sep 19 05:10:45 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ADA91065685 for ; Fri, 19 Sep 2008 05:10:45 +0000 (UTC) (envelope-from bsd@fluffles.net) Received: from mail.fluffles.net (fluffles.net [80.69.95.190]) by mx1.freebsd.org (Postfix) with ESMTP id 509E28FC12 for ; Fri, 19 Sep 2008 05:10:45 +0000 (UTC) (envelope-from bsd@fluffles.net) Received: from [10.10.0.2] (cust.95.160.adsl.cistron.nl [195.64.95.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: info@fluffles.net) by mail.fluffles.net (Postfix) with ESMTP id 7EFC4B29D5D; Fri, 19 Sep 2008 06:55:48 +0200 (CEST) Message-ID: <48D3311E.30900@fluffles.net> Date: Fri, 19 Sep 2008 06:57:02 +0200 From: "fluffles.net" User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Pete References: <20080722193136.GA12642@lore.f4n.org> In-Reply-To: <20080722193136.GA12642@lore.f4n.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: Moving GELI to an oversized provider X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2008 05:10:45 -0000 Pete wrote: > In order to avoid having to rewrite all data I readded a GEOM label, > placing it at the very last sector (but leaving the old one in place). > I then 'geli restore':ed the GELI metadata to the newly created label, > so that the end of the disk looks like: > > sector -1: new GEOM label > sector -2: copy of old GELI metadata > ... > sector -10: old GEOM label > sector -11: old GELI metadata > This would leave you with: 1) tasting a geom label on the last sector 2) a geom label device is created with -2 as its last sector 3) geli gets detected on last sector of geom label device 4) old labels are not detected This should work without problems, though i would suggest transferring the metadata while the relevant kernel modules are unloaded. Only when you create more 'nested' geom layers like GNOP so eventually you will hit sector -10 on the disk, will you get into trouble. If you're worried about that, why not just blank those sectors using dd? be sure to get the oseek parameter correct, however ;-) Might not be a bad idea to backup the last X sectors of your disks just in case you make a mistake. Kind regards, Veronica