From owner-freebsd-geom@FreeBSD.ORG Mon Jan 29 12:57:09 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.ORG Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A29D016A400 for ; Mon, 29 Jan 2007 12:57:09 +0000 (UTC) (envelope-from mythtv@logic-q.nl) Received: from amsfep17-int.chello.nl (amsfep17-int.chello.nl [62.179.120.12]) by mx1.freebsd.org (Postfix) with ESMTP id E30E713C491 for ; Mon, 29 Jan 2007 12:57:08 +0000 (UTC) (envelope-from mythtv@logic-q.nl) Received: from mail.logic-q.nl ([89.98.181.67]) by amsfep19-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20070129120826.VIUL19932.amsfep19-int.chello.nl@mail.logic-q.nl>; Mon, 29 Jan 2007 13:08:26 +0100 Received: from localhost (localhost.logic-q.nl [127.0.0.1]) by mail.logic-q.nl (Postfix) with ESMTP id 82A2D11684; Mon, 29 Jan 2007 13:08:26 +0100 (CET) X-Virus-Scanned: amavisd-new at logic-q.nl Received: from mail.logic-q.nl ([127.0.0.1]) by localhost (mail.logic-q.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I1Ft795VneO3; Mon, 29 Jan 2007 13:08:26 +0100 (CET) Received: from kotsbak (kotsbak [192.168.0.149]) by mail.logic-q.nl (Postfix) with SMTP id 01C8F114A6; Mon, 29 Jan 2007 13:08:26 +0100 (CET) From: "Hansa" To: "R. B. Riddick" , "freebsd geom" Date: Mon, 29 Jan 2007 13:08:34 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <20070128215355.25207.qmail@web30305.mail.mud.yahoo.com> Importance: Normal Cc: Subject: RE: How do I gmirror slices? 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: Mon, 29 Jan 2007 12:57:09 -0000 > Van: R. B. Riddick [mailto:arne_woerner@yahoo.com] > before u go on further, I would like to advise u to do a backup ur data... > > u should try to understand first, what the commands do (try "man cpio" for > example)... Then u should do some exercises in a sub directory (like > /tmp/blubber) until u feel like u understood it sufficiently... Will do... > 4194320+8384512 = 12578832 ==> d ends on the last sector I understand. Since size(d)+offset(d) = size(ad4s1). This means there is no space left to store metadata. Something to keep in mind next time I label a new drive. > > > Maybe u want to it like this: > > > 1. fdisk ur new disk first > > Should I create the the new disk (ad6) slice size exactly as on ad4? > > > I dont know... If u want to change the file system sizes: Now is the right > moment... But if u change it, u have to change it on ad4, too... Ok. One question pops into mind. I'm transfering / which includes my kernel, to a new disk (probably with a different setup). this means the kernel file could be written to a different sector. So I have to tell the bootmgr where it is located. Don't I? > > 2. # gmirror label -v -b round-robin gm0 /dev/ad6s1 > > # gmirror label -v -b round-robin gm0 /dev/ad6s2 > looks good Except for the 2nd command. It should be gm1 instead of gm0. > > 3. # dd if=/dev/ad4s3d of=/mnt/netwshare/ad4s3d.backup > looks not good, because: > ... Will look into that one. > > > 4. then setup the gstripe or gconcat. > > 4. Have not dug into that yet. > > > OK - can wait... I presume gstripe and gconcat like gmirror are using similar ways to store metadata? Which of those is the better choice? > > 5. I guess you mean copying ad4s1a, ad4s1b, ad4s1d and ad4s2d to te > > gmirror-ed. Can I use dd for that? > > > first u should go to single user mode and mount those old file systems > read-only: > (aa) single-user (CAVE: 100% service interruption): "kill 1" > (bb) mount -r / > (cc) mount -r /dev/ad4s1d > (dd) mount -r /dev/ad4s2d > (ee) u dont need to copy the swap partition... > (ff) newfs /dev/mirror/root > (gg) mount /dev/mirror/root /mnt > (hh) cd / ; find . | egrep -v "^\./(usr|var|mnt)/" | cpio -p > --perserve-modification-time /mnt > (ii) for /usr and /var(?) similar... Thanks for your help so far.. Since I've little time this week. I will probably be porting the disks next weekend. I will let you know how things went. Thanks! -Hansa