System Administration
Showing results for 
Search instead for 
Did you mean: 

Storage to Storage migration | HP UX

Sharjeel Saleem
Regular Advisor

Storage to Storage migration | HP UX


Storage to storage migration is done all volumes are synced, now we want to disconnect volume from old san and present volume from new san (data already copied). What is the best solution to mount new san volume at HPUX? plz advise.

Bill Hassell
Honored Contributor

Re: Storage to Storage migration | HP UX

You'll first need to map all the new storage LUN paths to the HP-UX machine. Then create the device files for these new paths using insf. Verify that the number of new LUN paths matches the number for the old storage. To see just the newly added paths, use:

ls -lrt /dev/rd*sk

The most recently created device files will be at the bottom of the list. 

Check each volume group for the number of allowable paths. You'll need double the number of paths currently used by the old storage.

vgdisplay vg07|grep -e ^"Max PV" -e ^"Cur PV"
Max PV                      16
Cur PV                      8

(replace vg07 with your VG name)

Now since you did not specify the version of HP-UX, the model number of the computer and the version for your volume groups, increasing Max PV will depend on the details just mentioned.

Once your VG(s) are ready to accept the new storage paths, use vgextend to add the new LUNs. You can add one to check that it behaves as expected. There should be no error messages and the new LUN path will be shown as an alternate path in the vgdisplay -v listing.

Once all the new storage paths have been added to the VG, use vgreduce to remove the old storage paths. 

The last step (important) is to remove the old storage paths from HP-UX. DO NOT use rm. Instead, use rmsf -a /dev/rd...
rmsf will properly remove the device file and the kernel's internal references.

Bill Hassell, sysadmin