Skip to contentSkip to conversation

access to old raid1 partitions after reinstall on two new disks

DISCUSSION [email protected] 2 participants 2 messages Sep 11, 2014 MD RAID

lore
Share & tools
lore
#0 lore raw

Hello there,

we have a machine running on four raid-1 partitions (2 disks). The system had to be reinstalled on two new disks since one of the old disks failed and we afterwards saw defective sectors on the remaining disk. So the system was restored from backup on two complete new disks. We now have the disk with the defective sectors on which the old system was installed as third disk installed in the machine. Since we could not recover everything from backup, we would like to start the old raid devices from the old disk again and try to access the old filesystems again.

The fresh installed system has of course the same md0, md1, md2, md3 devices as the old one had. Therefore I wonder how to access the old raid devices, which had the same names.

Is there a way to get the old partitions running as additional raid devices like md4, md5, md6 and md7 (or under different names) and should it be possible to mount the filesystems of those new / old raid devices in the fresh installed system?

Thanks for your help!

Regards
Hans

#1 lore raw
Quoted 12 lines · On Thu Sep 11, 2014 at 06:02:57pm +0200, [email protected] wrote:

Hello there,

we have a machine running on four raid-1 partitions (2 disks). The system had to be reinstalled on two new disks since one of the old disks failed and we afterwards saw defective sectors on the remaining disk. So the system was restored from backup on two complete new disks. We now have the disk with the defective sectors on which the old system was installed as third disk installed in the machine. Since we could not recover everything from backup, we would like to start the old raid devices from the old disk again and try to access the old filesystems again.

Quoted 9 lines

The fresh installed system has of course the same md0, md1, md2, md3 devices as the old one had. Therefore I wonder how to access the old raid devices, which had the same names.

Is there a way to get the old partitions running as additional raid devices like md4, md5, md6 and md7 (or under different names) and should it be possible to mount the filesystems of those new / old raid devices in the fresh installed system?

Yes, just specify the md device name as part of the assemble.

    mdadm -A /dev/md4 /dev/sdf1

If they're using RAID superblock versions 0.9 or 1.0 then you don't even have to assemble the RAID - you can just mount any of the members directly.

And yes, you should be able to mount the filesystems inside your new system the same as with any other block device.

Cheers,
Robin

Signature · 4 lines
     ___        
    ( ' }     |       Robin Hill        <[email protected]> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |