From owner-freebsd-questions@FreeBSD.ORG Tue Mar 31 11:51:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87E021065672 for ; Tue, 31 Mar 2009 11:51:11 +0000 (UTC) (envelope-from jmiscaro@gmail.com) Received: from mail-qy0-f134.google.com (mail-qy0-f134.google.com [209.85.221.134]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7A98FC0A for ; Tue, 31 Mar 2009 11:51:10 +0000 (UTC) (envelope-from jmiscaro@gmail.com) Received: by qyk40 with SMTP id 40so4694221qyk.3 for ; Tue, 31 Mar 2009 04:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aEGLCXlB9mNwcb6TmM4kecBvDPG7bdAsc0e28jTVXxA=; b=T3a5NBhuT0LgatYL9DMJMDiedIl2sVEIzzqVKvrN6eb/g0lZnw74Vp8IkWG3FjHob9 /xbD+BNFiPcUUqvH8fl8Iz9NVrxKgWxsDa3cWW5eX/if8esg+k/FupfMaQnvAxYY1FsC SbqhvyboXsFyAD54jwS1z4tlfVWO1XPzIP6+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=wOvF0e6uZt36stzqsQGfv+S6v3VPemQ5fvVz/Sgi4mHvYXlIOeRisKMZTSXfg6MtFk vUvI+iO59sHjwqXSeHP4OqQTnR3Yo6mTkGwl2qB/Pc/fD5dtp0Mel1T74bsB8pM6ExpV AM06bfGo9rgXH2Uljef9A1ZiI2ljtt7bWBr3M= MIME-Version: 1.0 Received: by 10.229.110.6 with SMTP id l6mr2287663qcp.52.1238500269905; Tue, 31 Mar 2009 04:51:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 Mar 2009 07:51:09 -0400 Message-ID: From: Juan Miscaro To: hv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions Subject: Re: Recovering a GEOM RAID0 array X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2009 11:51:11 -0000 2009/3/31 hv : > > Am 30.03.2009 um 21:21 schrieb Juan Miscaro: > > Hi gang, > > I'm running a remote 6.2 system which recently got shut down > unexpectedly (tower was physically nudged and apparently lost power). > I am running a 2-disk striped array with the geom_stripe.ko module. > > So my fstab line is > > /dev/stripe/st0a =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/data =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ufs =C2=A0=C2=A0=C2= =A0=C2=A0rw,acls =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A02 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A02 > > Thing is, the /dev/stripe directory no longer exists. > > Make sure the the geom_stripe module is actually loaded. (with kldstat) > If it's not already loaded, do a kldload geom_stripe (which creates the > /dev/stripe directory, if the metadata exist on the disk ("automatic mode= ") It *was* in automatic mode since it's been running and rebooting for the past 2 years without any commands being issued in scripts. The module was loaded but I unloaded it and reloaded it. Strangely, the size of the module (as given by 'kldstat') changed. The output line went from 2 1 0xc0b0c000 6c9c geom_stripe.ko to 4 1 0xc4f42000 6000 geom_stripe.ko The /dev/stripe directory is still not present. > and perform a normal fsck afterwards. (e.g fsck -y /dev/stripe/st0a) > If the metadata /(manual mode) are not stored on the disk, you need to is= sue > exactly the same commands to recreate it as you originally did. > All this is nicely documented in the man page (man gstripe) > By adding the following line > geom_stripe_load=3D"YES" > to /boot/loader.conf you make sure the stripe will be available after reb= oot > (at least in "automatic mode"). Yes, the line is there (in /boot/loader.conf). I fear the boot sector of one of the drives has been corrupted. -- jm