Operating System - HP-UX
1833779 Members
2185 Online
110063 Solutions
New Discussion

Contoller and Target number changed on SAN luns

 
Venkat_11
Regular Advisor

Contoller and Target number changed on SAN luns

We got our storage system upgraded and after rebooting the server all the storage luns got assigned to the server with new controller and target number's. But we don't have map file to import the VG's.

Please let me know the process to update the all VG's with the new controller and target devices.

Thanks in Advance for the help.
1 REPLY 1
Matti_Kurkela
Honored Contributor

Re: Contoller and Target number changed on SAN luns

Even though the controller and target numbers are currently not correct in the LVM configuration, you can still export the VGs.

The system does not really need to write anything to the VG to export it; it just removes the data from the /etc/lvmtab file and puts the VGID in the map file... and you want that map file.

You might want to run "rmsf -a" to all the old LUN devices that will now be showing as NO_HW in the ioscan listing.

Then run "ioscan -fnCdisk" and then "insf -Cdisk" to make sure all the new LUN devices are detected.

Then, for each VG:

ll /dev/vg/group

vgexport -v -s -m vg.map vg
mkdir /dev/vg
mknod /dev/vg/group c 64
vgimport -v -s -m vg.map vg

And you're done.

This procedure is for 11.23 and older; for 11.31, you'll need to remember the new agile device names, and the major number of the VG group file may not always be 64 (because of LVM 2.x).

MK
MK