How do I remove a logical volume in hp-ux?



  • Removing a volume group

    You cannot remove a volume group if there are more than 1 disk in it, first use vgreduce to remove the disks and then vgremove the volume group. This remove two disks.

    # vgreduce /dev/vg01 /dev/dsk/c1t3d0
    Volume group "/dev/vg01" has been successfully reduced.
    Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
    
    # vgreduce /dev/vg01 /dev/dsk/c1t2d0
    Volume group "/dev/vg01" has been successfully reduced.
    Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
    
    # vgremove /dev/vg01
    Volume group "/dev/vg01" has been successfully removed.
    

Log in to reply
 

© Lightnetics 2024