Thread (2 messages) 2 messages, 2 authors, 2014-09-11

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

From: Robin Hill <hidden>
Date: 2014-09-11 17:16:47

On Thu Sep 11, 2014 at 06:02:57pm +0200, system.admin@yum.de 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        [off-list ref] |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help