Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-19-2012, 08:26 PM   #1
John King
LQ Newbie
Registered: Aug 2012
Posts: 9

Rep: Reputation: Disabled
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
ext3 3.3G 3.1G 0 100% /
ext3 5.4G 1.8G 3.3G 36% /usr
ext3 4.3G 144M 4.0G 4% /home
ext3 5.4G 1.3G 3.8G 26% /var
ext3 7.2G 525M 6.3G 8% /opt
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!

Old 11-20-2012, 01:53 PM   #2
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
It looks like you have about 3G available on your VG


First add the space to the LV

lvextend -l +100%FREE VolGroup00/lv_root
Next resize it

resize2fs /dev/VolGroup00/lv_root
You can resize while the system is online.

1 members found this post helpful.
Old 11-20-2012, 01:56 PM   #3
John King
LQ Newbie
Registered: Aug 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks custangro. Works like a charm!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lvcreate says "Path required for Logical Volume" mahmoodn Linux - Server 2 10-20-2012 08:12 PM
VmWare Guest Install Fedora 9 "Format partition sd0" Spiritual Warrior Linux - Software 10 06-06-2008 11:59 AM
2 logical Volumes in volume group "VolGroup00" now active shivaraj.shetty Linux - Kernel 4 04-15-2008 02:11 AM
Logical Volume Management "pvmove" Question jamida Linux - Software 1 02-23-2008 09:56 AM
(URGENT) Fedora Core 6 - Could not find logical volume "VolGroup00" linxnoob Linux - General 3 07-07-2007 05:36 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration