From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 10:40:11 2004 Return-Path: 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 51E0F16A4CE for ; Mon, 8 Nov 2004 10:40:11 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B39243D1F for ; Mon, 8 Nov 2004 10:40:10 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CR6wT-000NLf-AU for freebsd-geom@freebsd.org; Mon, 08 Nov 2004 11:40:09 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CR6wT-000NLT-3Y for freebsd-geom@freebsd.org; Mon, 08 Nov 2004 11:40:09 +0100 From: Michael Riexinger To: freebsd-geom@freebsd.org Date: Mon, 8 Nov 2004 11:40:57 +0100 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411081140.57792.michael.riexinger@de.clara.net> Subject: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 10:40:11 -0000 Hi, I set up FreeBSD 5.3 with gmirror for my 2 ide disks ad0 and ad1. So the rootfs is included in the mirror. I wanted to test what happens when one disk fails, so I removed ad1. Unfortunately after a reboot the system didn't boot anymore with the error: GEOM_MIRROR: Force device mirror0 start due to timeout and GEOM_MIRROR: Device mirror0 destroyed So I mounted the rootfs from ad0: which worked fine. I attached the ad1 again, rebooted and booting from the mirror went and gmirror rebuilded the raid. My next test was putting ad1 off and replacing it with a new hd, did that, rebooted and again: GEOM_MIRROR: Force device mirror0 start due to timeout and GEOM_MIRROR: Device mirror0 destroyed Why is that? Shouldn't gmirror detect the new drive and rebuild the mirror? Thanks! Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/ From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 11:05:57 2004 Return-Path: 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 525E916A4CE for ; Mon, 8 Nov 2004 11:05:57 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1AE743D49 for ; Mon, 8 Nov 2004 11:05:56 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 64D4EACBCF; Mon, 8 Nov 2004 12:05:54 +0100 (CET) Date: Mon, 8 Nov 2004 12:05:54 +0100 From: Pawel Jakub Dawidek To: Michael Riexinger Message-ID: <20041108110554.GZ8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zUOaI4FcYSvHUUu9" Content-Disposition: inline In-Reply-To: <200411081140.57792.michael.riexinger@de.clara.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 11:05:57 -0000 --zUOaI4FcYSvHUUu9 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 11:40:57AM +0100, Michael Riexinger wrote: +> Hi,=20 +>=20 +> I set up FreeBSD 5.3 with gmirror for my 2 ide disks ad0 and ad1. So the= =20 +> rootfs is included in the mirror. I wanted to test what happens when=20 +> one disk fails, so I removed ad1. Unfortunately after a reboot the=20 +> system didn't boot anymore with the error:=20 +> GEOM_MIRROR: Force device mirror0 start due to timeout=20 +> and +> GEOM_MIRROR: Device mirror0 destroyed Could you add: kern.geom.mirror.debug=3D2 to your /boot/loader.conf and try to boot without ad1 again. It should start mirror with only one component (ad0) connected after this timeout and now it looks like it can't find any component. +> [...] My next test was putting ad1 off and replacing it with a new=20 +> hd, did that, rebooted and again: +>=20 +> GEOM_MIRROR: Force device mirror0 start due to timeout=20 +> and +> GEOM_MIRROR: Device mirror0 destroyed +>=20 +> Why is that? Shouldn't gmirror detect the new drive and rebuild the=20 +> mirror? There is no metadata on this new disk, so it can't be just rebuilt, you have to first add it to the mirror and ewentually remove the old one. Look at 'remove'/'insert'/'forget' commands in gmirror(8). --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --zUOaI4FcYSvHUUu9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBj1MSForvXbEpPzQRArLkAJoCTgCVyYUkM1Uxq35I6iQ4ZlT5uQCguGOV mhT/AXv1N+WUuCw4kwU0lwY= =Fx70 -----END PGP SIGNATURE----- --zUOaI4FcYSvHUUu9-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 11:46:54 2004 Return-Path: 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 8AFDC16A4CE; Mon, 8 Nov 2004 11:46:54 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF2B243D1F; Mon, 8 Nov 2004 11:46:53 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CR7z3-00053k-5p; Mon, 08 Nov 2004 12:46:53 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CR7z3-00053Z-0Y; Mon, 08 Nov 2004 12:46:53 +0100 From: Michael Riexinger To: Pawel Jakub Dawidek Date: Mon, 8 Nov 2004 12:47:38 +0100 User-Agent: KMail/1.7 References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108110554.GZ8120@darkness.comp.waw.pl> In-Reply-To: <20041108110554.GZ8120@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411081247.39449.michael.riexinger@de.clara.net> cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 11:46:54 -0000 On Monday 08 November 2004 12:05, Pawel Jakub Dawidek wrote: > On Mon, Nov 08, 2004 at 11:40:57AM +0100, Michael Riexinger wrote: > +> Hi, > +> > +> I set up FreeBSD 5.3 with gmirror for my 2 ide disks ad0 and ad1. > So the +> rootfs is included in the mirror. I wanted to test what > happens when +> one disk fails, so I removed ad1. Unfortunately after > a reboot the +> system didn't boot anymore with the error: > +> GEOM_MIRROR: Force device mirror0 start due to timeout > +> and > +> GEOM_MIRROR: Device mirror0 destroyed > > Could you add: > > kern.geom.mirror.debug=2 > > to your /boot/loader.conf and try to boot without ad1 again. > It should start mirror with only one component (ad0) connected after > this timeout and now it looks like it can't find any component. Ok, done that: the messages are: GEOM_MIRROR[2]: Tasting ad0. magic: GEOM::MIRROR version: 1 name: mirror0 did: 1626481947 all: 2 syncid: 1 priority: 0 slice: 4096 balance: load mediasize: 20485785088 vectorsize: 512 syncoffset: 1297612800 mflags: NONE dflags: DIRTY SYNCHONIZING provider: GEOM_MIRROR[1]: Creating device mirror0 GEOM_MIRROR[0]: Device mirror0 created GEOM_MIRROR[1]: Adding disk ad0 to mirror0 GEOM_MIRROR[2]: Adding disk ad0 GEOM_MIRROR[2]: Disk ad0 connected GEOM_MIRROR[1]: Disk ad0 state changed from NONE to NEW (device mirror0) GEOM_MIRROR[2]: Divce mirror0 provider ad0 detected. GEOM_MIRROR[2]: Tasting ad0s1. GEOM_MIRROR[2]: Tasting acd0. GEOM_MIRROR[2]: Tasting ad0s1a. GEOM_MIRROR[2]: Tasting ad0s1b. GEOM_MIRROR[2]: Tasting ad0s1c. GEOM_MIRROR[2]: Tasting ad0s1d. GEOM_MIRROR[2]: Tasting ad0s1e. GEOM_MIRROR[2]: Tasting ad0s1f. GEOM_MIRROR[0]: Force device mirror0 start due to timeout GEOM_MIRROR[2]: No I/O requests for mirror0, it can be destroyed GEOM_MIRROR[2]: Disk ad0 disconnected GEOM_MIRROR[2]: Consumer ad0 destroyed GEOM_MIRROR[0]: Device mirror0 destroyed. Thanks for your help, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/ From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 11:55:11 2004 Return-Path: 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 5932316A4CF for ; Mon, 8 Nov 2004 11:55:11 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D34543D53 for ; Mon, 8 Nov 2004 11:55:10 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 204DDACC68; Mon, 8 Nov 2004 12:55:06 +0100 (CET) Date: Mon, 8 Nov 2004 12:55:06 +0100 From: Pawel Jakub Dawidek To: Michael Riexinger Message-ID: <20041108115506.GB8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108110554.GZ8120@darkness.comp.waw.pl> <200411081247.39449.michael.riexinger@de.clara.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DvpQYQy10PodzGf7" Content-Disposition: inline In-Reply-To: <200411081247.39449.michael.riexinger@de.clara.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 11:55:11 -0000 --DvpQYQy10PodzGf7 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 12:47:38PM +0100, Michael Riexinger wrote: +> On Monday 08 November 2004 12:05, Pawel Jakub Dawidek wrote: +> > On Mon, Nov 08, 2004 at 11:40:57AM +0100, Michael Riexinger wrote: +> > +> Hi, +> > +> +> > +> I set up FreeBSD 5.3 with gmirror for my 2 ide disks ad0 and ad1. +> > So the +> rootfs is included in the mirror. I wanted to test what +> > happens when +> one disk fails, so I removed ad1. Unfortunately after +> > a reboot the +> system didn't boot anymore with the error: +> > +> GEOM_MIRROR: Force device mirror0 start due to timeout +> > +> and +> > +> GEOM_MIRROR: Device mirror0 destroyed +> > +> > Could you add: +> > +> > kern.geom.mirror.debug=3D2 +> > +> > to your /boot/loader.conf and try to boot without ad1 again. +> > It should start mirror with only one component (ad0) connected after +> > this timeout and now it looks like it can't find any component. +> Ok, done that: +>=20 +> the messages are: +> GEOM_MIRROR[2]: Tasting ad0. +> magic: GEOM::MIRROR +> version: 1 +> name: mirror0 +> did: 1626481947 +> all: 2 +> syncid: 1 +> priority: 0 +> slice: 4096 +> balance: load +> mediasize: 20485785088 +> vectorsize: 512 +> syncoffset: 1297612800 +> mflags: NONE +> dflags: DIRTY SYNCHONIZING Ok, everything is clear now. You disconnected ad1, but ad0 was marked for synchronization. It that case gmirror cannot find any valid component, because the only one it can find is stale. So: 1. You should test it when mirror is in complete state (then you can remove any component). 2. You can remove ad0 and put ad1 to make your test. +> GEOM_MIRROR[2]: Tasting ad0s1b. If you have swap partition on your mirror, don't forget to add swapoff=3D"Y= ES" to you rc.conf and use shutdown(8) command to reboot your machine. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --DvpQYQy10PodzGf7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBj16aForvXbEpPzQRAhcPAKDrJISUnSHTDuMKJdDjdGXrOSJkFwCcDecd CQvK3uM3/zP6UaqUuq26g1g= =nA16 -----END PGP SIGNATURE----- --DvpQYQy10PodzGf7-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 12:04:46 2004 Return-Path: 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 1F45516A4CE for ; Mon, 8 Nov 2004 12:04:46 +0000 (GMT) Received: from foo.nemo-project.org (foo.nemo-project.org [194.54.103.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 335D743D1F for ; Mon, 8 Nov 2004 12:04:43 +0000 (GMT) (envelope-from terje+geom@elde.net) Received: by foo.nemo-project.org (Postfix, from userid 1001) id B4BF0D91C0; Mon, 8 Nov 2004 13:05:13 +0100 (CET) Date: Mon, 8 Nov 2004 13:05:13 +0100 From: Terje Elde To: freebsd-geom@freebsd.org Message-ID: <20041108120513.GH11057@calleigh.elde.net> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108110554.GZ8120@darkness.comp.waw.pl> <200411081247.39449.michael.riexinger@de.clara.net> <20041108115506.GB8120@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041108115506.GB8120@darkness.comp.waw.pl> User-Agent: Mutt/1.5.4i Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 12:04:46 -0000 On Mon, Nov 08, 2004 at 12:55:06PM +0100, Pawel Jakub Dawidek wrote: > Ok, everything is clear now. You disconnected ad1, but ad0 was marked > for synchronization. It that case gmirror cannot find any valid component, > because the only one it can find is stale. > So: > 1. You should test it when mirror is in complete state (then you can remove > any component). > 2. You can remove ad0 and put ad1 to make your test. Hi, This makes a interesting question pop up in my head. If his ad1 had been reformatted, burned or lost, if there any way he could try to partially recover from this? gmirror can't find a valid component, so it never makes the volume available. If I understand gmirror correctly, it keeps it's metadata at the end of the partition, so he could mount the mirror directly as a normal filesystem, then try to recover the files onto a fresh mirror? Also, do I understand it correctly that he could (in theory anyway): 1. gmirror remove - to clear meta-data on ad0 2. insert a new ad1 3. gmirror label myvol ad0 ad1 - to create a new volume, have it syncronize to ad1 4. access the data as it was when the syncronization of ad0 stopped? Trying to make sure I understand things right, Terje From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 12:46:09 2004 Return-Path: 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 1DDF116A4CE for ; Mon, 8 Nov 2004 12:46:09 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C92D43D31 for ; Mon, 8 Nov 2004 12:46:08 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 29E26ACAF1; Mon, 8 Nov 2004 13:46:06 +0100 (CET) Date: Mon, 8 Nov 2004 13:46:06 +0100 From: Pawel Jakub Dawidek To: Terje Elde Message-ID: <20041108124606.GC8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108110554.GZ8120@darkness.comp.waw.pl> <200411081247.39449.michael.riexinger@de.clara.net> <20041108115506.GB8120@darkness.comp.waw.pl> <20041108120513.GH11057@calleigh.elde.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="c2qmoHupxsh34lk8" Content-Disposition: inline In-Reply-To: <20041108120513.GH11057@calleigh.elde.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 12:46:09 -0000 --c2qmoHupxsh34lk8 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 01:05:13PM +0100, Terje Elde wrote: +> On Mon, Nov 08, 2004 at 12:55:06PM +0100, Pawel Jakub Dawidek wrote: +> > Ok, everything is clear now. You disconnected ad1, but ad0 was marked +> > for synchronization. It that case gmirror cannot find any valid compon= ent, +> > because the only one it can find is stale. +> > So: +> > 1. You should test it when mirror is in complete state (then you can r= emove +> > any component). +> > 2. You can remove ad0 and put ad1 to make your test. +>=20 +> Hi, +>=20 +> This makes a interesting question pop up in my head. +>=20 +> If his ad1 had been reformatted, burned or lost, if there any way he cou= ld try +> to partially recover from this? Yes, he can just: # gmirror create ad0 Only new metadata will be written, data are not touched. Then just add a new disk and synchronization will start automatically: # gmirror insert ad1 --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --c2qmoHupxsh34lk8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBj2qOForvXbEpPzQRAtKfAKCL+4K0cq3lB71REztWzDqI6AphmgCdEUSr C522jS9GIalXbM95Y/5PfMI= =maMr -----END PGP SIGNATURE----- --c2qmoHupxsh34lk8-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 13:06:19 2004 Return-Path: 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 71D6C16A4E2; Mon, 8 Nov 2004 13:06:19 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA65643D4C; Mon, 8 Nov 2004 13:06:18 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CR9Dt-000DJ7-VT; Mon, 08 Nov 2004 14:06:18 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CR9Dt-000DJ3-Qa; Mon, 08 Nov 2004 14:06:17 +0100 From: Michael Riexinger To: Pawel Jakub Dawidek Date: Mon, 8 Nov 2004 14:06:49 +0100 User-Agent: KMail/1.7 References: <200411081140.57792.michael.riexinger@de.clara.net> <200411081247.39449.michael.riexinger@de.clara.net> <20041108115506.GB8120@darkness.comp.waw.pl> In-Reply-To: <20041108115506.GB8120@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411081406.50208.michael.riexinger@de.clara.net> cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 13:06:19 -0000 On Monday 08 November 2004 12:55, Pawel Jakub Dawidek wrote: > On Mon, Nov 08, 2004 at 12:47:38PM +0100, Michael Riexinger wrote: > +> On Monday 08 November 2004 12:05, Pawel Jakub Dawidek wrote: > +> > On Mon, Nov 08, 2004 at 11:40:57AM +0100, Michael Riexinger > wrote: +> > +> Hi, > +> > +> > +> > +> I set up FreeBSD 5.3 with gmirror for my 2 ide disks ad0 and > ad1. +> > So the +> rootfs is included in the mirror. I wanted to > test what +> > happens when +> one disk fails, so I removed ad1. > Unfortunately after +> > a reboot the +> system didn't boot anymore > with the error: +> > +> GEOM_MIRROR: Force device mirror0 start due > to timeout +> > +> and > +> > +> GEOM_MIRROR: Device mirror0 destroyed > +> > > +> > Could you add: > +> > > +> > kern.geom.mirror.debug=2 > +> > > +> > to your /boot/loader.conf and try to boot without ad1 again. > +> > It should start mirror with only one component (ad0) connected > after +> > this timeout and now it looks like it can't find any > component. +> Ok, done that: > +> > +> the messages are: > +> GEOM_MIRROR[2]: Tasting ad0. > +> magic: GEOM::MIRROR > +> version: 1 > +> name: mirror0 > +> did: 1626481947 > +> all: 2 > +> syncid: 1 > +> priority: 0 > +> slice: 4096 > +> balance: load > +> mediasize: 20485785088 > +> vectorsize: 512 > +> syncoffset: 1297612800 > +> mflags: NONE > +> dflags: DIRTY SYNCHONIZING > > Ok, everything is clear now. You disconnected ad1, but ad0 was marked > for synchronization. It that case gmirror cannot find any valid > component, because the only one it can find is stale. > So: > 1. You should test it when mirror is in complete state (then you can > remove any component). Ok, thanks, done that. Now both ad0 and ad1 are in dirty state. What exactly means dirty? I found nothing about it in the manpage. Kind regards, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/ From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 13:19:33 2004 Return-Path: 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 0B71E16A4CE for ; Mon, 8 Nov 2004 13:19:33 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 818CE43D39 for ; Mon, 8 Nov 2004 13:19:32 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 79F63ACC6E; Mon, 8 Nov 2004 14:19:31 +0100 (CET) Date: Mon, 8 Nov 2004 14:19:31 +0100 From: Pawel Jakub Dawidek To: Michael Riexinger Message-ID: <20041108131931.GE8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> <200411081247.39449.michael.riexinger@de.clara.net> <20041108115506.GB8120@darkness.comp.waw.pl> <200411081406.50208.michael.riexinger@de.clara.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PMnBCHLB6K0Tl81y" Content-Disposition: inline In-Reply-To: <200411081406.50208.michael.riexinger@de.clara.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 13:19:33 -0000 --PMnBCHLB6K0Tl81y Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 02:06:49PM +0100, Michael Riexinger wrote: +> > Ok, everything is clear now. You disconnected ad1, but ad0 was marked +> > for synchronization. It that case gmirror cannot find any valid +> > component, because the only one it can find is stale. +> > So: +> > 1. You should test it when mirror is in complete state (then you can +> > remove any component). +> Ok, thanks, done that. Now both ad0 and ad1 are in dirty state. What=20 +> exactly means dirty? I found nothing about it in the manpage.=20 Because it is internal for gmirror, it means only that mirror is open for writing. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --PMnBCHLB6K0Tl81y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBj3JjForvXbEpPzQRAlC7AJ0foSr1SoFBVtwdGbJQpGApvi5ZqgCg0/9P iolE1I3V16uiYN+qVs6Mdys= =InzQ -----END PGP SIGNATURE----- --PMnBCHLB6K0Tl81y-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 14:39:34 2004 Return-Path: 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 D18A916A4D1; Mon, 8 Nov 2004 14:39:34 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 317B743D41; Mon, 8 Nov 2004 14:39:34 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CRAg9-000Ocp-Er; Mon, 08 Nov 2004 15:39:33 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CRAg9-000Ocj-9s; Mon, 08 Nov 2004 15:39:33 +0100 From: Michael Riexinger To: freebsd-geom@freebsd.org Date: Mon, 8 Nov 2004 15:40:05 +0100 User-Agent: KMail/1.7 References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108120513.GH11057@calleigh.elde.net> <20041108124606.GC8120@darkness.comp.waw.pl> In-Reply-To: <20041108124606.GC8120@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411081540.05593.michael.riexinger@de.clara.net> cc: Pawel Jakub Dawidek cc: Terje Elde Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 14:39:34 -0000 On Monday 08 November 2004 13:46, Pawel Jakub Dawidek wrote: > On Mon, Nov 08, 2004 at 01:05:13PM +0100, Terje Elde wrote: > +> On Mon, Nov 08, 2004 at 12:55:06PM +0100, Pawel Jakub Dawidek > wrote: +> > Ok, everything is clear now. You disconnected ad1, but > ad0 was marked +> > for synchronization. It that case gmirror cannot > find any valid component, +> > because the only one it can find is > stale. > +> > So: > +> > 1. You should test it when mirror is in complete state (then you > can remove +> > any component). > +> > 2. You can remove ad0 and put ad1 to make your test. > +> > +> Hi, > +> > +> This makes a interesting question pop up in my head. > +> > +> If his ad1 had been reformatted, burned or lost, if there any way > he could try +> to partially recover from this? > > Yes, he can just: > > # gmirror create ad0 > > Only new metadata will be written, data are not touched. > > Then just add a new disk and synchronization will start > automatically: > > # gmirror insert ad1 I did several tests now and all went fine, gmirror is what i was looking for :) Now a last question: For setting up gmirror on my 2 hd's (the first contained a fresh freebsd installation), I had to boot from cd, using the fixit cd, chrooting a bit for loading gmirror etc. Is there an easier way for doing this? First i tried using the single user mode but there was an operation not permitted when i tried to do a 'gmirror label'. Can I for example say: Create a mirror on ad1 with the data on ad0, wait till it's built, reboot the machine from the gmirror and then insert ad0? Best regards, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/ From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 16:45:47 2004 Return-Path: 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 27C5116A4CE for ; Mon, 8 Nov 2004 16:45:47 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FB0543D1F for ; Mon, 8 Nov 2004 16:45:46 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 8C56DACBCF; Mon, 8 Nov 2004 17:45:40 +0100 (CET) Date: Mon, 8 Nov 2004 17:45:40 +0100 From: Pawel Jakub Dawidek To: Michael Riexinger Message-ID: <20041108164540.GF8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108120513.GH11057@calleigh.elde.net> <20041108124606.GC8120@darkness.comp.waw.pl> <200411081540.05593.michael.riexinger@de.clara.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WFYXJKyHTUiGqOmp" Content-Disposition: inline In-Reply-To: <200411081540.05593.michael.riexinger@de.clara.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: Terje Elde cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 16:45:47 -0000 --WFYXJKyHTUiGqOmp Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 03:40:05PM +0100, Michael Riexinger wrote: +> Now a last question: For setting up gmirror on my 2 hd's (the first=20 +> contained a fresh freebsd installation), I had to boot from cd, using=20 +> the fixit cd, chrooting a bit for loading gmirror etc. Is there an=20 +> easier way for doing this? First i tried using the single user mode but= =20 +> there was an operation not permitted when i tried to do a 'gmirror=20 +> label'. Can I for example say: Create a mirror on ad1 with the data on= =20 +> ad0, wait till it's built, reboot the machine from the gmirror and then= =20 +> insert ad0?=20 Unfortunately, gmirror and other GEOM classes are not supported by our installer. The safest way to do what you want is to: # gmirror label ad1 create slices and partitions on /dev/mirror/ create file system copy data from ad0 to change /etc/fstab to boot from /dev/mirror/s1a or something reboot # gmirror insert ad0 --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --WFYXJKyHTUiGqOmp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBj6K0ForvXbEpPzQRApy9AKCU0W++mV4n0UFJE4tdt7amf11VsACg7eh6 3G8aaQZfzhvHMLRSNH+CP+M= =67pi -----END PGP SIGNATURE----- --WFYXJKyHTUiGqOmp-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 20:20:47 2004 Return-Path: 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 44A5116A4CE; Mon, 8 Nov 2004 20:20:47 +0000 (GMT) Received: from orion.frasa.net (orion.frasa.net [195.241.98.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1B0143D31; Mon, 8 Nov 2004 20:20:46 +0000 (GMT) (envelope-from bsd@orion.frasa.net) Received: from localhost (orion [127.0.0.1]) by orion.frasa.net (Postfix) with ESMTP id D0E9C5B9; Mon, 8 Nov 2004 21:20:45 +0100 (CET) Received: from orion.frasa.net ([127.0.0.1]) by localhost (orion.frasa.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02321-07; Mon, 8 Nov 2004 21:20:42 +0100 (CET) Received: by orion.frasa.net (Postfix, from userid 1004) id B11515B3; Mon, 8 Nov 2004 21:20:42 +0100 (CET) Date: Mon, 8 Nov 2004 21:20:42 +0100 From: Mark Frasa To: Pawel Jakub Dawidek Message-ID: <20041108202042.GA2961@orion.frasa.net> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108120513.GH11057@calleigh.elde.net> <20041108124606.GC8120@darkness.comp.waw.pl> <200411081540.05593.michael.riexinger@de.clara.net> <20041108164540.GF8120@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041108164540.GF8120@darkness.comp.waw.pl> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd at frasa.net cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mark Frasa List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 20:20:47 -0000 On 2004.11.08 17:45:40 +0000, Pawel Jakub Dawidek wrote: > On Mon, Nov 08, 2004 at 03:40:05PM +0100, Michael Riexinger wrote: > +> Now a last question: For setting up gmirror on my 2 hd's (the first > +> contained a fresh freebsd installation), I had to boot from cd, using > +> the fixit cd, chrooting a bit for loading gmirror etc. Is there an > +> easier way for doing this? First i tried using the single user mode but > +> there was an operation not permitted when i tried to do a 'gmirror > +> label'. Can I for example say: Create a mirror on ad1 with the data on > +> ad0, wait till it's built, reboot the machine from the gmirror and then > +> insert ad0? > > Unfortunately, gmirror and other GEOM classes are not supported by our > installer. > > The safest way to do what you want is to: > > # gmirror label ad1 > create slices and partitions on /dev/mirror/ > create file system > copy data from ad0 to > change /etc/fstab to boot from /dev/mirror/s1a or something > reboot > # gmirror insert ad0 > > -- > Pawel Jakub Dawidek http://www.FreeBSD.org > pjd@FreeBSD.org http://garage.freebsd.pl > FreeBSD committer Am I Evil? Yes, I Am! Hello, After trying to setup gvinum for 2 weeks, i ran into problems which even Lukas Ertl couldn't solve. Now i am trying to setup geom_mirror, when i do the above things: "gmirror label data ad1" /dev/mirror is not available. Why is this? Am i missing something or what? Cheers Mark. From owner-freebsd-geom@FreeBSD.ORG Mon Nov 8 20:25:01 2004 Return-Path: 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 2D86916A4E3 for ; Mon, 8 Nov 2004 20:25:01 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B894343D41 for ; Mon, 8 Nov 2004 20:25:00 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 329C2ACAFB; Mon, 8 Nov 2004 21:24:49 +0100 (CET) Date: Mon, 8 Nov 2004 21:24:49 +0100 From: Pawel Jakub Dawidek To: Mark Frasa Message-ID: <20041108202449.GG8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108120513.GH11057@calleigh.elde.net> <20041108124606.GC8120@darkness.comp.waw.pl> <200411081540.05593.michael.riexinger@de.clara.net> <20041108164540.GF8120@darkness.comp.waw.pl> <20041108202042.GA2961@orion.frasa.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OtZJUqNUNrB9XA/T" Content-Disposition: inline In-Reply-To: <20041108202042.GA2961@orion.frasa.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 20:25:01 -0000 --OtZJUqNUNrB9XA/T Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 09:20:42PM +0100, Mark Frasa wrote: +> Now i am trying to setup geom_mirror, when i do the above things: +>=20 +> "gmirror label data ad1" +>=20 +> /dev/mirror is not available. +>=20 +> Why is this? Am i missing something or what? Yes, you probably forgot about: # gmirror load :) --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --OtZJUqNUNrB9XA/T Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBj9YRForvXbEpPzQRAnhOAJ9ZiBElEvbSTRy9waeVv2W4+7XMawCfZI+M z1e+dIiZgrTXqahFPomomt0= =7VhV -----END PGP SIGNATURE----- --OtZJUqNUNrB9XA/T-- From owner-freebsd-geom@FreeBSD.ORG Tue Nov 9 15:43:42 2004 Return-Path: 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 E2BE616A4CE for ; Tue, 9 Nov 2004 15:43:42 +0000 (GMT) Received: from mx0.ispvision.net (mx0.ispvision.net [217.18.240.254]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D5AB43D54 for ; Tue, 9 Nov 2004 15:43:41 +0000 (GMT) (envelope-from petroff@car-bg.com) Received: (qmail 44276 invoked by uid 89); 9 Nov 2004 15:43:38 -0000 Received: from unknown (HELO petroff) (213.240.235.249) by mx0.ispvision.net with SMTP; 9 Nov 2004 15:43:38 -0000 Message-ID: <200411091736060033.005C4025@mail.car-bg.com> X-Mailer: Calypso Version 3.20.01.00 (4) Date: Tue, 09 Nov 2004 17:36:06 +0200 From: "Dimiter Petrov" To: freebsd-geom@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: gmirror problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: petroff@car-bg.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2004 15:43:43 -0000 hello, i have freebsd 5.3 and i'm trying to make a software raid with gmirror. I hava a disk with data and i want to add another one to make a mirror. here is what i am typing from man gmirror gmirror label -v -b round-robin data ad0 But there is an error Can't store metadata on ad0: Operation not permitted. I read the manual and try to add -h parameter to gmirror but there is still= this error. please let me know how can i solve this problem thank you From owner-freebsd-geom@FreeBSD.ORG Wed Nov 10 14:10:45 2004 Return-Path: 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 F0BEB16A4D1 for ; Wed, 10 Nov 2004 14:10:45 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2919243D1F for ; Wed, 10 Nov 2004 14:10:45 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CRtBL-0004wK-SZ; Wed, 10 Nov 2004 15:10:43 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CRtBL-0004vz-6f; Wed, 10 Nov 2004 15:10:43 +0100 From: Michael Riexinger To: freebsd-geom@freebsd.org, petroff@car-bg.com Date: Wed, 10 Nov 2004 15:11:19 +0100 User-Agent: KMail/1.7 References: <200411091736060033.005C4025@mail.car-bg.com> In-Reply-To: <200411091736060033.005C4025@mail.car-bg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411101511.20233.michael.riexinger@de.clara.net> Subject: Re: gmirror problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 14:10:46 -0000 On Tuesday 09 November 2004 16:36, Dimiter Petrov wrote: > hello, > i have freebsd 5.3 and i'm trying to make a software raid with > gmirror. I hava a disk with data and i want to add another one to > make a mirror. > > here is what i am typing from man gmirror > > gmirror label -v -b round-robin data ad0 > > But there is an error > > Can't store metadata on ad0: Operation not permitted. Is any filesystem on ad0 mounted? Try booting from the freebsd install cd, choose rescue from live cd and insert disc 2... then cd /dist; chroot .; mount_devfs devfs /dev; gmirror load; gmirror label ...; exit; mount yourrootfs /mnt; /dist/usr/bin/vi /mnt/etc/fstab (change devices to the gmirror devices), echo geom_mirror_load=\"YES\" >>/ mnt/boot/loader.conf; echo swapoff=\"YES\" >> /etc/rc.conf (if there's a swap partition on the mirror); umount /mnt; exit and reboot :) Hope that helps Kind regards, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/ From owner-freebsd-geom@FreeBSD.ORG Fri Nov 12 19:04:31 2004 Return-Path: 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 5487116A4CE; Fri, 12 Nov 2004 19:04:31 +0000 (GMT) Received: from smtp.isometry.net (smtp.isometry.net [195.137.51.154]) by mx1.FreeBSD.org (Postfix) with SMTP id F228E43D54; Fri, 12 Nov 2004 19:04:29 +0000 (GMT) (envelope-from robin+spam@isometry.net) Received: from [127.0.0.1] (ishadow.isometry.net [195.137.51.150]) by smtp.isometry.net (Postfix) with ESMTP id A088E57; Fri, 12 Nov 2004 19:04:21 +0000 (UTC) Message-ID: <41950935.2010103@isometry.net> Date: Fri, 12 Nov 2004 19:04:21 +0000 From: Robin Breathe User-Agent: Mozilla Thunderbird 0.9+ (Windows/20041107) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Jakub Dawidek , freebsd-geom@FreeBSD.org References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108120513.GH11057@calleigh.elde.net> <20041108124606.GC8120@darkness.comp.waw.pl> <200411081540.05593.michael.riexinger@de.clara.net> <20041108164540.GF8120@darkness.comp.waw.pl> In-Reply-To: <20041108164540.GF8120@darkness.comp.waw.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Terje Elde Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 19:04:31 -0000 Pawel Jakub Dawidek wrote: > Unfortunately, gmirror and other GEOM classes are not supported by our > installer. > > The safest way to do what you want is to: > > # gmirror label ad1 > create slices and partitions on /dev/mirror/ > create file system > copy data from ad0 to > change /etc/fstab to boot from /dev/mirror/s1a or something > reboot > # gmirror insert ad0 Are any nasty side-effects likely from slicing and newfs-ing ad1 prior to labelling the mirror? For example, could the gmirror metadata get overwritten at some later stage by writing to the end of the last slice? Robin From owner-freebsd-geom@FreeBSD.ORG Fri Nov 12 22:21:09 2004 Return-Path: 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 A92B116A4CE for ; Fri, 12 Nov 2004 22:21:09 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C21143D39 for ; Fri, 12 Nov 2004 22:21:09 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 27AC4ACC6E; Fri, 12 Nov 2004 23:21:07 +0100 (CET) Date: Fri, 12 Nov 2004 23:21:07 +0100 From: Pawel Jakub Dawidek To: Robin Breathe Message-ID: <20041112222107.GP8120@darkness.comp.waw.pl> References: <200411081140.57792.michael.riexinger@de.clara.net> <20041108120513.GH11057@calleigh.elde.net> <20041108124606.GC8120@darkness.comp.waw.pl> <200411081540.05593.michael.riexinger@de.clara.net> <20041108164540.GF8120@darkness.comp.waw.pl> <41950935.2010103@isometry.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l7itP/1EBO9PCc/O" Content-Disposition: inline In-Reply-To: <41950935.2010103@isometry.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: Terje Elde cc: freebsd-geom@FreeBSD.org Subject: Re: gmirror problems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 22:21:09 -0000 --l7itP/1EBO9PCc/O Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 12, 2004 at 07:04:21PM +0000, Robin Breathe wrote: +> Pawel Jakub Dawidek wrote: +> >Unfortunately, gmirror and other GEOM classes are not supported by our +> >installer. +> > +> >The safest way to do what you want is to: +> > +> > # gmirror label ad1 +> > create slices and partitions on /dev/mirror/ +> > create file system +> > copy data from ad0 to +> > change /etc/fstab to boot from /dev/mirror/s1a or something +> > reboot +> > # gmirror insert ad0 +>=20 +> Are any nasty side-effects likely from slicing and newfs-ing ad1 prior= =20 +> to labelling the mirror? For example, could the gmirror metadata get=20 +> overwritten at some later stage by writing to the end of the last slice? In theory it is possible, yes, but I doubt you can see it in practise. You can also see some complains that slices are too big, because gmirror cuts the last sectors from the component provider. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --l7itP/1EBO9PCc/O Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBlTdTForvXbEpPzQRAvm1AJ9UnZpxoGVIQvwnTMjTYCd3hwLWdwCgrxoa OjIIZXncn77zwajaBFiFFGs= =vlJ/ -----END PGP SIGNATURE----- --l7itP/1EBO9PCc/O--