Re: access to old raid1 partitions after reinstall on two new disks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu Sep 11, 2014 at 06:02:57pm +0200, system.admin@xxxxxx 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.
> 
> 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
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@xxxxxxxxxxxxxxx> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux