In order to successfully move LUNs to a new host, these general steps must be taken.
All physical volumes (which relate to a physical LUN) within a volume group must be moved as a group.
First backup your /etc/lvmtab and the /etc/fstab files.
Under HP-UX on the server where the LUNs currently reside, run the following:
1. unmount (To unmount the associated file systems)
2. vgchange -a n <volume group name> (To deactivate the volume group)
3. vgexport -p -m mapfile.map <volume group name> (This actually creates the mapfile without exporting the volume group. If you prefer to export the volume group at this time exclude the -p option)
On new host run the following:
5. ioscan –fnC disk (To find new disk entries)
6. insf –e C disk (To install the special device files)
7.ll /dev/*/group (To see what minor numbers have already been used)
8. mkdir /dev/vgxx (To create the directory)
9. mknod /dev/vgx/group c 64 0x0<x>0000 (To create the device file)
10. vgexport <volume group name> On original host if not already exported. See step 3.
11. vgimport -m <mapfile.map> <volume group name> /dev/dsk/cxtxdx /dev/dsk/cxtxdx (To import the volume group)
12. vgchange -a y <volume group name> (to activate the volume group)
The volume group should now be useable by the new server attached to the array.