No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>


To have a better experience, please upgrade your IE browser.


How to Vhange the Name of an Logical Volume (LV) in the HPUX OS?

Publication Date:  2012-07-18 Views:  76 Downloads:  0
Issue Description
On a deployment site, lvoracle needs to be changed to myoracle without data loss and recreation of the LV.
Alarm Information
Handling Process

Step 1 Unmount the LV from the directory where it is stored. #umount /dev/vgoracle/lvoracle.

 Step 2 Change the name of the LV (the names of both the block device file and character device file need to be changed.) #cd /dev/vgoracle #mv lvoracle myoracle #mv rlvoracle rmyoracle.

 Step 3 Back up the configuration file of the volume group (VG). #vgcfgbackup vgoracle.

 Step 4 Export and import the configuration file of the VG again. #vgexport -p -s -v -m /tmp/ /dev/vgoracle #vgexport vgoracle #mkdir /dev/vgoracle #mknod /dev/vgoracle/group c 64 0x0y0000 (y is the secondary device ID) #vgimport -v -s -m /tmp/ /dev/vgoracle.

 Step 5 Change the /etc/fstab file. Change the mounting point to /dev/vgoracle/myoracle.

 Step 6 Remount the new LV name. #mount /dev/vgoracle/myoracle /oracle.

Root Cause
The lvchange command cannot be used to change the name of an LV.