rename md array? 2006-04-27 - By Stephen C. Tweedie
Back Hi,
On Wed, 2006-04-26 at 07:34 -0700, Christopher McCrory wrote:
> It is possible, and if so how, to rename a raid array? I have a > (simplified example) raid data partition (/dev/md3) that I need to move > the drives to another server that already has a /dev/md3 data partition. > IIRC, the last time I did this I was not able to mount the moved array. > Or am I mis-remembering?
Last time I did this it was from a later distribution --- either a RHEL-4 (See http://HEL-4.ora-code.com) or FC-5 rescue CD, I cannot recall which at this point. I did it precisely for the reason you give, to move an existing /dev/md0 to another RHEL-4 (See http://HEL-4.ora-code.com) box. But it wasn't hard, using mdadm. Knowing the devices belonging to the array (sda5 and sdb5 in this case), I just did:
# mdadm --stop /dev/md0 # mdadm -A /dev/md6 -m0 --update=super-minor /dev/sda5 /dev/sdb5 which stops the array as /dev/md0 and then reassembles it as /dev/md6. The reassembly looks for devices which have an existing minor number of 0, not 6 (-m0), and then updates the minors in the superblocks to the new number.
I believe the same options are present in taroon's mdadm.
--Stephen
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|