Page 1 of 1

Recovering Data from a RAID 1 Drive

Posted: 2008/01/31 11:33:08
by jonh
Hi

My first post, gulp.

I have an old Cobalt RAQ4r which has finally died (not a HD problem). Machine was running RAID-1 (mirrored drives) they are standard 40Gb IDEs. The drives are not LVM as far as I know. fdisk reads the partitions without any problems as "FD" type.

I have put one of the drives in my Centos 4.6 box and have got so far (by following a post about recovering LVM drives) with mdadm, but I missing the next stage.

If I run "cat /proc/mdstat" I get

Personalities [RAID1]

md1: active raid hdc1[0]
409536 blocks [2/1] [U_]

... (repeated with different block count for md2 to md4)

Which looks OK.

I only want to mount the drive to get the data off, after which the drive will be removed.
I have tried various combinations with the mount command such as:

mount /dev/md1 /mnt/cobalt
mount -t ext2 /dev/hdc1 /mnt/cobalt
etc!

Any help appreciated.

JonH

Re: Recovering Data from a RAID 1 Drive

Posted: 2008/01/31 15:09:12
by gerald_clark
md1: active raid hdc1[0]
409536 blocks [2/1] [U_]

mount /dev/md1 /mnt/cobalt

That should have worked.
What is the problem?

Re: Recovering Data from a RAID 1 Drive [solved]

Posted: 2008/01/31 16:20:32
by jonh
Hi List

Got it all mounted fine.

The file system was actually xfs which is not supported by default on Centos 4 (like RHEL)

After running mdadm --examine --scan /dev/hdc1 >> /etc/mdadm/mdadm.conf

I needed to install xfs support:

yum install kmod-xfs-smp

I then simply ran
mount -t xfs /dev/md4 /mnt/cobalt/home

and it mounted :-)

JonH