From owner-freebsd-geom@FreeBSD.ORG Mon Oct 2 15:53:49 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2123A16A40F for ; Mon, 2 Oct 2006 15:53:49 +0000 (UTC) (envelope-from danielbristot@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F4FA43D6B for ; Mon, 2 Oct 2006 15:53:45 +0000 (GMT) (envelope-from danielbristot@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so520397nzn for ; Mon, 02 Oct 2006 08:53:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MAEvaS51eK1IJ4O7NMOC/bB6yoUxue4YvbzCEKTjyH7j7DUReHEU37xK+xJY0bhtIyefv16uv4tEFnMy962j4x0H4Io/1Dw4XyrQnNlRrruGU9wdaL6LnwFUMV9S/7EoZCdo3cSOinCfQpqushZ31DtYguCug1AVh7trc0S7YOg= Received: by 10.65.248.19 with SMTP id a19mr7392970qbs; Mon, 02 Oct 2006 08:53:44 -0700 (PDT) Received: by 10.65.191.20 with HTTP; Mon, 2 Oct 2006 08:53:44 -0700 (PDT) Message-ID: Date: Mon, 2 Oct 2006 15:53:44 +0000 From: "Daniel Bristot de Oliveira" To: freebsd-geom@freebsd.org In-Reply-To: <4520FAC4.4080308@centtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20849637.1159786370263.JavaMail.root@webmail1.groni1> <4520FAC4.4080308@centtech.com> Subject: Re: FreeBSD 6.3 Raid1 (geom) configuration problem with multiple partitions 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, 02 Oct 2006 15:53:49 -0000 2006/10/2, Eric Anderson : > On 10/02/06 05:52, t.blum@home.nl wrote: > > Hi there, > > > > I recently switched using FreeBSD on my server (used Linux before). I'v= e a problem with configuring geom as raid1 for my two identical hd's. I sta= rted with installing a FreeBSD 6.3 on my ad0 disk. The install uses 1 slice= with the default FreeBSD partition table: > > > > ad0s1a (root) > > ad0s1b (swap) > > ad0s1d (var) > > ad0s1e (tmp) > > ad0s1f (usr) > > > > Everything is working and at this point I started configuring geom with= help of this: http://people.freebsd.org/~rse/mirror/. tutorial (approach1= ). The following commands worked like a charm (second disk is ad3): > > > > dd if=3D/dev/zero of=3D/dev/ad3 bs=3D512 count=3D79 > > gmirror label -v -n -b round-robin gm0 /dev/ad3 > > So far, you've created a mirror (gm0) with one device in it (ad3). > > > gmirror load fdisk -v -B -I /dev/mirror/gm0 > > I think you meant: > > gmirror load > fdisk -v -B -I /dev/mirror/gm0 > > > bsdlabel -w -B /dev/mirror/gm0s1 > > bsdlabel -e /dev/mirror/gm0s1 > > So now you've told bsdlabel to create a default label, and install > bootstrap. Then you've edited the label, but we aren't sure how. You > should send the bsdlabel output here for us to look at. > > > But when I look at /dev/mirror/ it only created 2 partitions, gm0s1a an= d gm0s1c so the following commands: > > > > newfs -U /dev/mirror/gm0s1* > > mount /dev/mirror/gm0s1* /mnt/* > > > > Will not work for gm0s1d (var) gm0s1e (tmp) and gm0s1f (usr). Does anyb= ody know what I am doing wrong? > > Well, I think what you really are wanting, is to mirror your ad0 disk to > ad3. In that case, I think you want to make ad0 the first device in the > gm0 mirror, and make ad3 the second. Then, you'd need to change your > fstab entries, and add geom_mirror_load=3D"YES" to /boot/loader.conf so i= t > would be recognized on boot. > > Eric > > > > > -- > ------------------------------------------------------------------------ > Eric Anderson Sr. Systems Administrator Centaur Technology > Anything that works is better than anything that doesn't. > ------------------------------------------------------------------------ > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > My english is not very good, but, Dru Lavigne have a article about this: Using Software RAID-1 with FreeBSD, see this link: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html If you understand Brazilian Portuguese, http://www.fug.com.br/content/view/119/77/ Your problem is the order where the discs are inserted in the mirror. First insert the disc ad0, and after the disc ad3. --=20 Daniel Bristot de Oliveira FreeBSD Users Group - Brazil http://fug.com.br R Jo=E3o Paez 409 Ap 202 Sta Augusta - Crici=FAma - SC CEP 88805440 Brazil +55-48-91032512