From owner-freebsd-questions@FreeBSD.ORG Tue May 16 17:15:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5B7C16A9D0 for ; Tue, 16 May 2006 17:15:56 +0000 (UTC) (envelope-from gayn.winters@bristolsystems.com) Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id C28C543D48 for ; Tue, 16 May 2006 17:15:48 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([68.5.182.86]) by fed1rmmtao07.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060516171546.RNQR27327.fed1rmmtao07.cox.net@workdog>; Tue, 16 May 2006 13:15:46 -0400 From: "Gayn Winters" To: =?iso-8859-1?Q?'Nagy_L=E1szl=F3_Zsolt'?= , Date: Tue, 16 May 2006 10:17:46 -0700 Organization: Bristol Systems Inc. Message-ID: <021701c6790c$a9d784c0$6501a8c0@workdog> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <4469EF54.9040802@freemail.hu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Importance: Normal Cc: Subject: RE: gmirror and partitioning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gayn.winters@bristolsystems.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 17:16:02 -0000 > From: Nagy L=E1szl=F3 Zsolt [mailto:nagylzs@freemail.hu]=20 > Sent: Tuesday, May 16, 2006 8:27 AM > To: gayn.winters@bristolsystems.com; freebsd-questions@freebsd.org > Subject: Re: gmirror and partitioning >=20 >=20 >=20 > > Laszlo, > > > > You're making gmirror way too difficult. In short, install=20 > FreeBSD with > > however many partitions you want, then install gmirror and replicate > > your disk to the second disk. > > > > The standard howto documents are: > > > > http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ > > > > http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > > > > http://people.freebsd.org/~rse/mirror/ > > > > I've used Danny's and Ralf's (the first and third). =20 > Danny's is simpler, > > but Ralf's has the advantage that it can be done remotely. Danny's > > website now recommends Dru's (the second). You may want to try that > > first. > > > > Let us know how it goes, > > =20 > I tried the second link, as you suggested. It does not work for me. I=20 > have to identical disks on /dev/ad10 and /dev/ad8. I have installed=20 > FreeBSD on /dev/ad10 and I initialized gmirror on that disk. Here is=20 > what df says: >=20 > backupserver# df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/mirror/gm0s1a 4.8G 34M 4.4G 1% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/mirror/gm0s1e 9.7G 12K 8.9G 0% /tmp > /dev/mirror/gm0s1f 115G 261M 106G 0% /usr > /dev/mirror/gm0s1d 9.7G 232K 8.9G 0% /var > backupserver# swapinfo > Device 1K-blocks Used Avail Capacity > /dev/mirror/gm0s1b 5242880 0 5242880 0%Bristol Systems Inc. 714/532-6776 www.bristolsystems.com=20 > backupserver# >=20 >=20 > Then I try to add the ad8 device: >=20 > backupserver# gmirror insert gm0 /dev/ad8 > Provider ad8 too small. > backupserver# >=20 > But of course this is not true. ad8 and ad10 are identical=20 > 160GB SATA disks. > What am I doing wrong? Please help. >=20 > Laszlo Hi Laszlo, Well it looks like you've got gm0 up and running. I assume you've edited /etc/fstab so that it boots cleanly. My first thought is that you need to zero ad8 to make sure gmirror isn't confused. Try that (dd if=3D/dev/zero of=3D/dev/ad8) at least for several blocks. Then reboot = and post dmesg. -gayn =20