how to resize /usr on RHEL ES3 wit LVM1

Stephen Carville stephen at totalflood.com
Thu Mar 22 17:24:50 UTC 2007


Linux Linux wrote:
> hi,
> I am running out of space on /usr. It's  a logical volume (LogVol00) under
> LVM (Volume00). I do have free space on Volume00
> I did Lvextend -L +500MB /dev/Volume00/LogVol00
> Now how do I extend actual filesystem?
> It's RHEL ES release 3. Filesystem is EXT3. LVM 1.0.3 Kernal 2.4.21
> 
> I tried resize2fs and but that is not working because I am unable unmount
> /usr
> 
> Thanks
> Patel

You have to unmount the volume in RHEL 3.

It may be necessary to log in as root (no sudo!) or reboot into single 
user mode to unmount a volume.

   # umount /dev/Vol01/<vol>

Do a forced filesystem check

   # e2fsck -f /dev/Vol01/<vol>

Extend the file system to new size

   # sudo resize2fs /dev/Vol01/<vol>

Remount the volume

   # mount /mount/point

Resizing a volume while still mounted requires a 2.6 kernel, lvm2-2.02 
and above, e2fsprogs 1.39 and above

-- 
Stephen Carville <stephen at totalflood.com>
Systems Engineer
Land America




More information about the redhat-list mailing list