Technically Exporting And Importing Disks Across HP-UX System


How to export and import disks across the HP-UX server system is one of the major requirement ?

The solution to this problem is very simple. Follow these steps to perform this operation:



Open the console by serial cable or management ip.


Step 1 - Check the volume group by typing the command after the prompt-
                   bash#  vgdisplay 
                   bash#  /dev/vgdata 

              * bash# is the prompt on the console

            

Step2 - Make the volume group unavailable
               bash# vgchange -a n /dev/vgdata

Step 3 - Export the the disk while creating a logical volume map file.
              bash# vgexport -v -m data_map vgdata

Step 4 - Disconnect the drives and move to new system.

Step 5 - Move the data_map file to the new system.

Step 6 -  On the new system recreate the volume group directory
               bash# mkdir /dev/vgdata
               bash# mknod /dev/vgdata/group c 64 0x02000

Step 7 - Import the disks to the new system
                bash# vgimport -v -m data_map /dev/vgdata /dev/dsk/c2t1d0 /dev/dsk/c2t2d0

Step 8 -Enable the new volume group
              bash# vgchange -a y /dev/vgdata


Thats it..........your done........hopefully

No comments:

Post a Comment