Skip to contentSkip to conversation

Q: Moving raid1 array to another host, safe?

DISCUSSION Chris Osicki 1 participant 1 message Mar 14, 2005 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi

I have two Linux boxes running kernel 2.4.21 having access to two devices over fibre channel SAN.
What I'm trying to achive is host based mirroring with ability to "move" the storage from one host to another.
On the firs host I created a raid1 array, put LVM on it, created a filesystem. To move the storage to the second host I do the following (on the first host):

deactivate volume group:
vgchange -an dxvg
stop array:

	    mdadm --misc --stop /dev/md0

Then on the second host:

assemble the array:

	    mdadm --assemble /dev/md0 /dev/emcpowera  /dev/emcpowerb

activate the volume group:
vgchange -ay dxvg

The following procedure seams to be working OK. However, I'm asking myself how safe is it what I'm doing?

Thanks for your time.

Regards,
Chris