![]() |
How to expand the "/" logical volume on a RHEL 5.7 Vmware Guest Server
Hello Everyone,
I'm stuck in a situation where I need to manage a Vmware guest server machine which I need not layout the partitioning scheme but need to get things done on it. There is only 3.3G allocated to the / which is an LV. I would have allocated more space ideally. I have never expanded the / LVM which has filled up 100% and I'm unable to install an application software on it, which is where I'm seeking your expertise. File System Layout: =================== df -TH O/P: Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-lv_root ext3 3.3G 3.1G 0 100% / /dev/mapper/VolGroup00-lv_usr ext3 5.4G 1.8G 3.3G 36% /usr /dev/mapper/VolGroup00-lv_home ext3 4.3G 144M 4.0G 4% /home /dev/mapper/VolGroup00-lv_var ext3 5.4G 1.3G 3.8G 26% /var /dev/mapper/VolGroup00-lv_opt ext3 7.2G 525M 6.3G 8% /opt /dev/mapper/VolGroup00-lv_tmp ext3 2.3G 71M 2.1G 4% /tmp /dev/sda1 ext3 112M 21M 86M 20% /boot tmpfs tmpfs 9.5G 0 9.5G 0% /dev/shm This is the message I see when installing the application; [root@mldev3 opt]# rpm -ivh Application.rpm Preparing... ########################################### [100%] installing package Application needs 40KB on the / filesystem [root@xxx opt]# pvs /dev/hdc: open failed: No medium found PV VG Fmt Attr PSize PFree /dev/sda2 VolGroup00 lvm2 a- 49.88G 3.59G [root@xxx opt]# vgs /dev/hdc: open failed: No medium found VG #PV #LV #SN Attr VSize VFree VolGroup00 1 7 0 wz--n- 49.88G 3.59G [root@xxx opt]# lvs /dev/hdc: open failed: No medium found LV VG Attr LSize Origin Snap% Move Log Copy% Convert lv_home VolGroup00 -wi-ao 4.12G lv_opt VolGroup00 -wi-ao 6.91G lv_root VolGroup00 -wi-ao 3.12G lv_swap VolGroup00 -wi-ao 19.75G lv_tmp VolGroup00 -wi-ao 2.12G lv_usr VolGroup00 -wi-ao 5.12G lv_var VolGroup00 -wi-ao 5.12G [root@xxx opt]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.7 [root@xxx opt]# uname -a Linux xxx 2.6.18-274.3.1.el5 #1 SMP Fri Aug 26 18:49:02 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux Any detailed inputs to resolve this will be helpful. Thanks in advance! Regards J |
It looks like you have about 3G available on your VG
**WARNING DO THIS AT YOUR OWN RISK AS I DO NOT ACCEPT RESPONSIBILITY FOR DATA LOSS** First add the space to the LV Code:
lvextend -l +100%FREE VolGroup00/lv_rootCode:
resize2fs /dev/VolGroup00/lv_root--C |
Thanks custangro. Works like a charm!
Regards J |
| All times are GMT -5. The time now is 01:47 AM. |