From owner-freebsd-stable@FreeBSD.ORG Thu Dec 3 05:35:07 2009 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 5A4D7106566B; Thu, 3 Dec 2009 05:35:07 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 89A3D8FC1B; Thu, 3 Dec 2009 05:35:06 +0000 (UTC) Received: by fxm10 with SMTP id 10so1021035fxm.34 for ; Wed, 02 Dec 2009 21:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=8ha+N4msp+fur4pSoILtUS2oxgkJJYQRX92CmtchR7w=; b=Th9n6poCZ2BUvGN4O+OIygoyru+E/SqHdls4uosa41jv7OAFHrM2YNvoAw7I+6zRa5 wnCS49p1WHAJbw5Q7AExAGEgi3w0w8hje3YCClzSBc969Cy0/rP6I8iW9mQLKefL2uty olBBpTaN5q8YQfYq2P/I3HA+eFrnfys8ji4aY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=WdX3poSkmobnNi7OhhieDOyTDhAUcBTrsee6xgqjXDppS2lnNak/TRPg05EIfSuWUs iU3foGmKV+lTFMBIeQTSn0dle8InhLPgN1TrgvFWvO2OaPpkJB8wvfkBMgseOTb9nWRu yrDu0x6rqcz8TbzwExiBPh8at1BR5t8JlR8+Q= MIME-Version: 1.0 Received: by 10.223.5.25 with SMTP id 25mr177169fat.38.1259818505107; Wed, 02 Dec 2009 21:35:05 -0800 (PST) In-Reply-To: <20091202171617.GT60409@cesium.hyperfine.info> References: <717f7a3e0912020235g7d8f4a1ey65831a2bba6c637a@mail.gmail.com> <20091202171617.GT60409@cesium.hyperfine.info> Date: Thu, 3 Dec 2009 07:35:05 +0200 Message-ID: <717f7a3e0912022135o37bab7d5qd58efb8c335a426@mail.gmail.com> From: Marin Atanasov To: "Peter C. Lai" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.0: RAID-1 using gpart, gvinum and gmirror 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: Thu, 03 Dec 2009 05:35:07 -0000 Hi, Well, as I said before I'm using gmirror for the root partition - that's the easiest part, but... The reason that I don't want to use gmirror for the other partitions is that I'm using two not identical disks, so I want to mirror them using gvinum instead, which will give me also possibility to extend the volumes if I need so - adding/removing plexes from it, etc, which I think is more flexible than just using gmirror. I've done this setup on 8.0-RC1, and I must say it works very well - root is mirrored via gmirror and /usr, /var, /tmp, swap are mirrored via gvinum. When I need more space I just extend the volumes. But as I pointed the way gpart is working I'm not able to create a partition that overlaps the other partitions. Do you know how this can be done? Thanks and regards, Marin On Wed, Dec 2, 2009 at 7:16 PM, Peter C. Lai wrote: > Why are you using gvinum for RAID 1 instead of gmirror? The gmirror method > for mirroring the boot partition is already well documented... > > On 2009-12-02 12:35:17PM +0200, Marin Atanasov wrote: > > Hello, > > > > I'm going to make my partition mirrored using the geom utilities, but > > however I've noticed that I cannot use the same way I used to do it under > > 7.2 and 8.0-RC1. > > > > Here's the situation - I tried a lot of times to make my root partition > > mirrored using gvinum, but each time when I boot in the new partition I'm > > unable to boot from it.. So instead of using gvinum for the root > partition > > I've decided to use gmirror - and it works! > > > > I did it the following way - two NOT identical disks are added to the > > system. > > > > - 1 slices on the first disk > > - 2 slices on the second one (the 1st slice is the size of the root > > partition which is on the 1st slice on the 1st disk) > > > > Right after a fresh minimal install, I go to single-user mode and create > the > > mirror: > > > > # gmirror label -vb round-robin gm0 /dev/ad0s1a > > > > Installing bootstap code on the second disk (in case I need to boot later > > from it): > > # fdisk -BI /dev/ad4s1 > > # bsdlabel -wB /dev/ad4s1 > > # newfs -O2 /dev/ad4s1 > > # newfs -O2 -U /dev/ad4s2 > > > > And then inserting the second component of the mirror: > > # gmirror insert gm0 /dev/ad4s1 > > > > And this is how I was doing a mirror for the root partition. For the > other > > partitions - /usr, /var, /tmp, swap I used gvinum following a different > > articles, howtos and eventually it worked. The complete scenario of how I > > did the mirror for the other partitions is here (sorry, it's too long to > > just copy/paste it in the lists): > > http://www.daemonforums.org/showpost.php?p=27010&postcount=3 > > > > If I can say it with little words - the way mirroring works for the other > > partitions was to overlap all the other partitions with one big vinum > > partition. > > > > My problem now is that I cannot do this anymore, because I need to use > gpart > > instead for creating the partitions, and using gpart I cannot create a > vinum > > partition that will overlap the other partitions, so I cannot make any > > mirror for the other partitions. > > > > Is there any other way of doing this? > > > > I'm out of ideas now, perhaps you could help me out with this :) > > > > Thanks and regards, > > Marin > > > > -- > > Marin Atanasov Nikolov > > dnaeon AT gmail DOT com > > daemon AT unix-heaven DOT org > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org > " > > -- > =========================================================== > Peter C. Lai | Bard College at Simon's Rock > Systems Administrator | 84 Alford Rd. > Information Technology Svcs. | Gt. Barrington, MA 01230 USA > peter AT simons-rock.edu | (413) 528-7428 > =========================================================== > > -- Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org