From owner-freebsd-geom@FreeBSD.ORG Tue Dec 13 13:48:08 2005 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 5EC1416A41F for ; Tue, 13 Dec 2005 13:48:08 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C06A643D58 for ; Tue, 13 Dec 2005 13:48:07 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id jBDDm6Dx015852; Tue, 13 Dec 2005 07:48:07 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <439ED0F6.2070507@centtech.com> Date: Tue, 13 Dec 2005 07:47:34 -0600 From: Eric Anderson User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Bucciarelli References: <20051213131637.GC2188@rabbit> In-Reply-To: <20051213131637.GC2188@rabbit> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1209/Mon Dec 12 09:48:01 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-geom@freebsd.org Subject: Re: How to recover a gmirror from a disaster 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: Tue, 13 Dec 2005 13:48:08 -0000 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 > >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? > > How can I get this disk to boot again? > > I think you wanted to do a 'forget'.. Can you set root to /dev/da0s1a, boot up, and then check gmirror status? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------