Operating System - HP-UX
1830997 Members
2544 Online
110018 Solutions
New Discussion

Re: Relocating disk array to a different server

 
SOLVED
Go to solution
Masaki Birchmier
Frequent Advisor

Relocating disk array to a different server

I am in the process migrating to a new server. The old one has an disk array (12h) that need to be moved over to the new one.

Is there a process (or documentation) for this procedure? I would like to avoid the "backup, relocate, redo luns, restore" method if I can help it.

One other note, I'm going from 10.20 to 11.00 in this migration.

Thanks.
Masaki
6 REPLIES 6
Steven Gillard_2
Honored Contributor
Solution

Re: Relocating disk array to a different server

If you're physically moving the disk array to the new system a simple vgexport / vgimport procedure should do it. Have a read of the man pages of these commands for details.

Of course, I'd always recommend a backup just in case.

Regards,
Steve
Sridhar Bhaskarla
Honored Contributor

Re: Relocating disk array to a different server

Hi Masaki,

It is always advisable to have a backup to be on safer side. You don't need to use it unless required. Regarding the vgexport/vgimport process, identify the volume groups residing on the 12h and do the following for each volume group vgxx.

#vgexport -v -s -m /tmp/vgxx.map vgxx

Copy the map files to the new system into /tmp directory. Also copy /etc/fstab to the new system into /tmp. Connect 12h to the new system.

#ioscan -f
#insf
#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x0?0000
(? should be a unique number)
#vgimport -v -s -m /tmp/vgxx.map vgxx
#vgchange -a y vgxx

Create mount points for these logical volumes. You can get them by doing a grep vgxx /tmp/fstab

#mkdir /filesystemxx

Copy the entries related to vgxx from /tmp/fstab to /etc/fstab

#mount -a

This should mount all the filesystems.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
MANOJ SRIVASTAVA
Honored Contributor

Re: Relocating disk array to a different server

Hi Masaki

This involves the following :

1. vgexport the volume groups on the present server.
2.Disconnect the array .
3.Connec tot the enw server , ensure that the Terrminator is in the correct place and the pins of the cable are not bent.
4.Boot the server it should sense the new disk device.
5.Do a vgimport .
6. Mount the Filesystems .

You are good to go.

Manoj Srivastava
A. Clay Stephenson
Acclaimed Contributor

Re: Relocating disk array to a different server

This is the same as any LVM:

I'll assume this is vg06

---- On old box
0) Backup - to be safe
1) unmount filesystems
2) vgexport -s -m /tmp/vg06.map -p /dev/vg06
(This does not harm any data)
3) vgchange -a n /dev/vg06
Copy the map file /tmp/vg06.map to your new box.

------ On new box

4) cd /dev
mkdir vg06
cd vg06
mknod group c 64 0x060000
chmod 644 group

5) vgimport -v -s -m /tmp/vg06.map /dev/vg06
6) vgchange -a y /dev/vg06
7) create mountpoints, /etc/fstab entries for your filesystems, and mount the filesystems.

Man vgexport, vgimport for details.

NOTE: vgimport -s will only use the primary path; if you want to split your paths for LUN's across both controllers, you will need to specify the disk devices.

Man vgexport, vgimport for details.

If it ain't broke, I can fix that.
Sandip Ghosh
Honored Contributor

Re: Relocating disk array to a different server

Masaki Birchmier
Frequent Advisor

Re: Relocating disk array to a different server

Thanks everyone for the quick response. I'll give it a shot.

Masaki