Hi, I'm having big problem with a RAID5 recovery on my home server.
I was running CentOS 6, latest patchlevel and had a mdadm created RAID5 for data storage with three disks.
After a failure of the boot disk which wasn't part of any raid configuration I'm not able to assemble the old raid again.
Here is what I found so far.
The disks used in the array is /dev/sdc, /dev/sdd and /dev/sde and they all contains one raid partition.
Code:
[root@tor ~]# fdisk -l /dev/sdc
Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 38913 312568641 fd Linux raid autodetect
When I try to assemble the array with scan it doesn't find anything.
Code:
[root@tor ~]# mdadm --assemble --verbose --scan
mdadm: looking for devices for further assembly
mdadm: no recogniseable superblock on /dev/dm-1
mdadm: Cannot assemble mbr metadata on /dev/dm-0
mdadm: Cannot assemble mbr metadata on /dev/sde
mdadm: Cannot assemble mbr metadata on /dev/sdd
mdadm: Cannot assemble mbr metadata on /dev/sdc
mdadm: Cannot assemble mbr metadata on /dev/sdb
mdadm: Cannot assemble mbr metadata on /dev/sda
mdadm: No arrays found in config file or automatically
When executed mdadm --examine I noticed strange things.
It looks like mdadm cannot see the partition sdc1 and it's the same thing with sdd and sde drives.
Code:
[root@tor ~]# mdadm --examine /dev/sdc
/dev/sdc:
MBR Magic : aa55
Partition[0] : 625137282 sectors at 63 (type fd)
[root@tor ~]#
[root@tor ~]#
[root@tor ~]# mdadm --examine /dev/sdc1
mdadm: cannot open /dev/sdc1: No such file or directory
If I execute the blkid command I noticed that the TYPE of all my three raid member drives has the TYPE="hpt45x_raid_member". I think this have something to do with that the disk are connected to an old Rocket Raid controller, but due to the lack of good Linux drivers for the raid usage I don't use the hardware raid features and used the software raid instead. So the rocket card are just used an extended SATA controller.
Do you think that the disk TYPE can cause my problems?
Code:
[root@tor ~]# blkid /dev/sdc
/dev/sdc: TYPE="hpt45x_raid_member"
One thing I was thinking about but haven't tried it yet because I'm not sure if it's safe to do. Some people mention that mdadm is smart when creating a new array so if I would create a new raid5 array with my disk mdadm will find that the disk already have a raid signature and don't wipe the disks. Perhaps it would be safe if I'm using the assume-clean arument? What do you think?
Do you have any ideas what I can do to recreate my raid array and get the data back again? I don't have any copy of the old /etc/mdadm.conf file left.
/Tomas