Saturday, August 22, 2009

REMOVING A LOGICAL VOLUME

REMOVING A LOGICAL VOLUME

Step 1: Identify the Logical Volume(s) to remove

# bdf /opt/test

Filesystem kbytes used avail %used Mounted on

/dev/vg01/lvol01 102400 1133 94945 1% /opt/test

# umount /opt/test

# vgdisplay -v vg01 | grep "LV Name"

LV Name /dev/vg01/lvol01

# lvremove /dev/vg01/lvol01

The logical volume "/dev/vg01/lvol01" is not empty;

do you really want to delete the logical volume (y/n) : y

Logical volume "/dev/vg01/lvol01" has been successfully removed.

Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

No comments:

Post a Comment