Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
rename md array?

rename md array?

2006-04-27       - By Stephen C. Tweedie

 Back
Reply:     1     2  

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