Date: Wed, 14 Dec 2005 00:20:08 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: freebsd-geom@freebsd.org Subject: Re: How to recover a gmirror from a disaster Message-ID: <20051213232008.GA749@garage.freebsd.pl> In-Reply-To: <20051213131637.GC2188@rabbit> References: <20051213131637.GC2188@rabbit>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Tue, Dec 13, 2005 at 08:16:37AM -0500, Mark Bucciarelli wrote: +> The disaster: +> +> 1. gmirror setup (full disk mirror, da0 + da1) +> +> 2. disk head crash into platter on da1 +> +> 3. reboot +> +> 4. mirror starts to sync, hits bad spot on da1, halts +> +> 5. restart (can work for a while b/f bad spot hit) +> +> 6. Enter command "gmirror remove gm0 da1" +> +> 7. Now on restart, da0 will not boot. +> +> On attempting boot on da0, this is the last output b/f system hangs: +> +> GEOM_MIRROR: Device gm0 created (id=...) +> GEOM_MIRROR: Device gm0: provider da0 detected +> GEOM_MIRROR: Device gm0 destroyed +> GEOM_MIRROR: Device gm0 created (id=...) +> GEOM_MIRROR: Device gm0: provider da0c detected +> GEOM_MIRROR: Device gm0 destroyed +> GEOM_MIRROR: Device gm0 created (id=...) +> GEOM_MIRROR: Device gm0: provider da0 detected +> GEOM_MIRROR: Device gm0 destroyed +> SMP: AP CPU #1 Launched! +> Mounting root from ufs:/dev/mirror/gm0s1a +> setrootbyname failed +> ffs_mountroot: can't find rootvp +> Root mount failed: 6 Could you add kern.geom.mirror.debug=3 to your /boot/loader.conf and boot again? +> This is 5.4-RELEASE. +> +> The da0 disk is good (I did a surface scan) and I can mount it and +> backup the data when I put it in bay #2. +> +> So ... +> +> Did my command in step #6 cause this mess? If so, what should I +> have used--forget first? If da1 was disconnected you should get an error, that mirror is not complete. Yes, 'forget' is the right command. +> How can I get this disk to boot again? Actually you can simply: # gmirror label gm0 da0 No data will be lost. You can also boot from da0 directly. -- Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDn1coForvXbEpPzQRAgyUAKDOX6ffp90Sfcvf+XuMhDiF49i7qACgxFmh LVGHiPPbSqMNb/B7zE1HnuI= =Se5K -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051213232008.GA749>
