Skip to contentSkip to conversation

Recovery Raid 5 from other server

DISCUSSION Oscar I. del Rey 1 participant 1 message Mar 8, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi list

I have a raid 5 with 4 scsi disks.
This raid was on other server and I would like to mount it on a new server without lost dat, if it is possible Before it was configured as:
-----------------/etc/raidtab--------------------
raiddev /dev/md0

   raid-level                5
   nr-raid-disks             4
   nr-spare-disks            0
   persistent-superblock     1
   chunk-size                4
   device                    /dev/sda1
   raid-disk                 0
   device                    /dev/sdb1
   raid-disk                 1
   device                    /dev/sdc1
   raid-disk                 2
   device                    /dev/sdd1
   raid-disk                 3

------------------------------------------------
Now, I make another /etc/raidtab on the new server as:
-----------------/etc/raidtab-------------------- raiddev /dev/md1

   raid-level                5
   nr-raid-disks             4
   nr-spare-disks            0
   persistent-superblock     1
   chunk-size                4
   device                    /dev/sda1
   raid-disk                 0
   device                    /dev/sdb1
   raid-disk                 1
   device                    /dev/sdc1
   raid-disk                 2
   device                    /dev/sdd1
   raid-disk                 3

------------------------------------------------
but it can't start.

I have tested the disks with --> mdadm -E /dev/sda1 , mdadm -E /dev/sdb1, mdadm -E /dev/sdc1, mdadm -E /dev/sdd1 and all the results are ok
I think the problem is that I use /dev/md1 instead of /dev/md0, but for several reasons I can't use /dev/md0 to do it. Then, are there any solution to mount this raid without lost data?

Thanks in advance