Operating System - HP-UX
1831435 Members
3372 Online
110025 Solutions
New Discussion

Moving scsi array between servers

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Moving scsi array between servers

I have a scsi disk array on a server with a volume group defined with over 200Gb of data that I need to move to another server.

Could you give me the proper steps to accomplish this. I know I can do a vgexport, disconnect the scsi array and move it to the new server, then vgimport, but the disk devices will undoubtly have a new names, how do I handle that ??

Thanks
3 REPLIES 3
S.Arunkumar
Trusted Contributor
Solution

Re: Moving scsi array between servers

Hi MIKE

If you have only one Vg configured into this Array for the server then .I dont think so there is much issues in this.
You can go ahead for vgexport and vgimport in the second m/c.

Even if you have multiple Vg's.Then note down the Lun no of these disks.Since these will not change even if your disk path got changed.i.e c1t0d?.So you mark down the disks of each Vg and do the vgimport in the same disk.

Regards
S.Arunkumar
Denver Osborn
Honored Contributor

Re: Moving scsi array between servers

You can export the vg in preview mode to generate a map file, then move the array to the new node and import the vg...

current node:
# vgexport -p -v -s -m /tmp/vgname.map /dev/vgname
# scp /tmp/vgname.map newnode:/tmp
(unmount f/s for vg)
# vgchange -a n /dev/vgname
(shutdown/disconnect array)

new node:
after you've attach array...
# mkdir /dev/vgname
# mknod /dev/vgname/group c 64 0x??0000
# vgimport -p -v -s -m /tmp/vgname.map /dev/vgname


Using the export/import with a map file and the -s option for the vgid, you won't have to fiddle with mapping out new disk dev files.

Also save the actual export from the current node until you verify the array's new home is up and running well. Once all is well, go back to the current (old) node and do the vgexport. "vgexport -v /dev/vgname"

Of course if you run into trouble with the new node, just backou by putting the array back on the other node and do your vgchange -a y /dev/vgname. If you plan on keeping it on the old node for a bit, you may want to setup your /etc/lvmrc to exclude the old vg.


Hope this helps w/ your task,
-denver
MikeL_4
Super Advisor

Re: Moving scsi array between servers

Thanks alot...