Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 08:22:44 -0400
From:      Juan Miscaro <jmiscaro@gmail.com>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Recovering a GEOM RAID0 array
Message-ID:  <d0626390903310522w67f09292t5148334ee3cd2a2d@mail.gmail.com>
In-Reply-To: <gqt0rm$64m$1@ger.gmane.org>
References:  <d0626390903301221o701f762ao18269ae6e212affa@mail.gmail.com> <gqt0rm$64m$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/3/31 Ivan Voras <ivoras@freebsd.org>:
> Juan Miscaro wrote:
>> 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/data =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 ufs =C2=A0 =C2=A0 rw,acls =C2=A0 =C2=A0 =C2=A0 =C2=A0 2 =C2=
=A0 =C2=A0 =C2=A0 2
>>
>> Thing is, the /dev/stripe directory no longer exists. =C2=A0The system w=
as
>> running for well over 2 years with several reboots in there. =C2=A0I hav=
e a
>> lot of data that I want to recover on these 2 disks. =C2=A0Is there any =
way
>> to regain access to the data? =C2=A0I can' t seem to find anything unusu=
al
>> in the logs.
>
> You need to see if the drives that have made the array still exist and
> are accessible. See if they are recognized in dmesg - maybe a cable was
> knocked out from one of them.

This is the end of dmesg (the drives in question are ad1 and ad3):

acd0: CDROM <LTN485S/JU03> at ata0-master PIO4
ad1: 305244MB <WDC WD3200JB-00KFA0 08.05J08> at ata0-slave UDMA100
ad3: 305245MB <WDC WD3200JB-00KFA0 08.05J08> at ata1-slave UDMA100
GEOM_STRIPE: Device st0 created (id=3D3091204740).
GEOM_STRIPE: Disk ad1 attached to st0.
ad4: 152626MB <WDC WD1600JS-00MHB0 02.01C03> at ata2-master SATA150
WARNING: Expected rawoffset 0, found 63
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ST350082 0AS > Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
Trying to mount root from ufs:/dev/ad4s1a
WARNING: R/W mount of /backups denied.  Filesystem is not clean - run fsck
WARNING: R/W mount of /backups denied.  Filesystem is not clean - run fsck
rl0: link state changed to UP
arp: 10.9.1.204 moved from 00:0f:ea:56:4c:11 to 00:0d:87:b4:00:3e on rl0
arp: 10.9.1.204 moved from 00:0d:87:b4:00:3e to 00:0f:ea:56:4c:11 on rl0
GEOM_STRIPE: Disk ad1 removed from st0.
GEOM_STRIPE: Device st0 destroyed.
GEOM_STRIPE: Device st0 created (id=3D3091204740).
GEOM_STRIPE: Disk ad1 attached to st0.



# bsdlabel ad1

# /dev/ad1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 1250280640       16    4.2BSD     2048 16384 28552
  c: 1250280656        0    unused        0     0         # "raw"
part, don't edit
partition a: partition extends past end of unit
partition c: partition extends past end of unit
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities

# bsdlabel ad3

# /dev/ad3:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 625142432       16    4.2BSD     2048 16384 28552
  c: 625142448        0    unused        0     0         # "raw" part,
don't edit

These drives should appear to be identical.

I have since run fsck on the other drive (ad4, an external USB drive).

--
jm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d0626390903310522w67f09292t5148334ee3cd2a2d>