Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Increase Linux Partition dynamically?

There are 3 lvm volume on Science Linux 6.1 x86. I want to remove one volume and give the amount to /dev/mapper/VolGroup-lv_root.

[root@localhost /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G   38G  9.1G  81% /
tmpfs                 504M  924K  503M   1% /dev/shm
/dev/sda1             485M   68M  392M  15% /boot
/dev/mapper/VolGroup-lv_home
                       96G  7.7G   83G   9% /home

umount /dev/mapper/VolGroup-lv_home
lvremove /dev/mapper/VolGroup-lv_home
umount /dev/mapper/VolGroup-lv_root
lvextend -L +96G /dev/mapper/VolGroup-lv_root

Please let me know these command work correctly.

share|improve this question

marked as duplicate by Holocryptic, sysadmin1138 Feb 3 '12 at 21:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
You are going to need to do something to resize your root filesystem. –  Zoredache Feb 3 '12 at 18:06
add comment

1 Answer

You don't have to unmount your root filesystem (and in fact, you can't). After you have resized the LV on which it resides, you can simply do resize2fs on it.

share|improve this answer
    
Teddy/ I booted with Livecd –  WindStory Feb 3 '12 at 19:17
    
Teddy/ Thanks a lot resolved. –  WindStory Feb 3 '12 at 19:38
2  
@WindStory, mark this as the answer by clicking the check mark underneath the grey "1" above. We don't edit titles here, that's not how we play. –  tombull89 Feb 3 '12 at 19:44
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.