Recovering a GEOM RAID0 array

Juan Miscaro jmiscaro at gmail.com
Tue Mar 31 05:22:46 PDT 2009


2009/3/31 Ivan Voras <ivoras at 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        /data           ufs     rw,acls         2       2
>>
>> Thing is, the /dev/stripe directory no longer exists.  The system was
>> running for well over 2 years with several reboots in there.  I have a
>> lot of data that I want to recover on these 2 disks.  Is there any way
>> to regain access to the data?  I can' t seem to find anything unusual
>> 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=3091204740).
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=3091204740).
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


More information about the freebsd-questions mailing list