Friday, February 12, 2010

Removing logical volume

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi

Removing logical volume


The easier way to remove the logical volume is to boot the system rescue mode, i.e. boot the system with Red Hat Linux CD #1, and type linux rescue on boot: prompt and follow onscreen instructions. When the system prompts to mount the system, select skip.


1. Firstly, disable swapping for associated logical volume- /dev/vol_gr0/log_vol2


# swapoff -v /dev/vol_gr0/log_vol2


2. Remove the logical volume of size 512 MB, using the following command:


# lvm lvremove /dev/vol_gr0/log_vol2


3. Remove the entry, as following, from /etc/fstab file:


/dev/vol_gr0/log_vol2 swap swap defaults 0 0


4. Test that the logical volume has been properly removed or not:


# cat /proc/swaps


Removing swap file


1. disable the swap file named as /swapfile


# swapoff -v /swapfile


2. Remove its entry, like following, from /etc/fstab file:


/swapfile swap swap defaults 0 0


3. Remove swap file named as /swapfile


# rm /swapfile


No comments:

Post a Comment