Operating System - Linux
1753543 Members
5719 Online
108795 Solutions
New Discussion юеВ

Re: How to increase the ext3 filesystem after lvextend command on RHEL 5.3 64Bit

 
WW288996
Frequent Advisor

How to increase the ext3 filesystem after lvextend command on RHEL 5.3 64Bit

Hi All,

I have extended my LV(root filesystem LV) and now I want to increase the root filesystem.

I came to know that I have to use ext2online command to increase the filesystem but I could not able to see that command in my machine.

[root@bhlbmw03 ~]# ext2online
-bash: ext2online: command not found


Is there any other way we can increase the root filesytem after extending LV.

I am using RHEL LVM.


[root@bhlbmw03 ~]# lvdisplay /dev/VolGroup00/LogVol00
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID SoAxkt-ZcDZ-kovq-0NpB-0odg-Y4gx-EYHzex
LV Write Access read/write
LV Status available
# open 1
LV Size 88.12 GB
Current LE 2820
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

[root@bhlbmw03 ~]# df -h /dev/VolGroup00/LogVol00
Filesystem Size Used Avail Use% Mounted on
- 3.9G 84K 3.9G 1% /dev






Found that the following packages are already there in my machine

[root@bhlbmw03 ~]# rpm -qa | grep e2fsprogs
e2fsprogs-libs-1.39-20.el5
e2fsprogs-devel-1.39-20.el5
e2fsprogs-1.39-20.el5
e2fsprogs-libs-1.39-20.el5


What package I have to install to get ext2online utility?


Please help in this regard?
4 REPLIES 4
WW288996
Frequent Advisor

Re: How to increase the ext3 filesystem after lvextend command on RHEL 5.3 64Bit

[root@bhlbmw03 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
37G 32G 3.6G 90% /


[root@bhlbmw03 ~]# lvdisplay /dev/VolGroup00/LogVol00
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID SoAxkt-ZcDZ-kovq-0NpB-0odg-Y4gx-EYHzex
LV Write Access read/write
LV Status available
# open 1
LV Size 88.12 GB
Current LE 2820
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
Taifur
Respected Contributor

Re: How to increase the ext3 filesystem after lvextend command on RHEL 5.3 64Bit

Hi,

Parted can do it. It has a number of GUI frontends: the most popular is Gparted.

Shrink the big partition, making sure the space you free is next to the rot partition, and then increase the size of the root partition.

TAKE BACK-UPS OF EVERYTHING UP FIRST

Check man pages of parted

Cheers//
Taifur
Taifur
Respected Contributor

Re: How to increase the ext3 filesystem after lvextend command on RHEL 5.3 64Bit

Hi ,

For ex2online , check below link,

http://www.rpmfind.net/linux/rpm2html/search.php?query=ext2online

Following 5 rpm required for ex2online ,
ext2resize-1.1.19-1.i386.rpm
ext2resize-1.1.19-1.x86_64.rpm
ext2resize-1.1.17-1.i386.rpm
ext2resize-1.1.16-1.i386.rpm
ext2resize-1.1.15-1.i386.rpm

Pls assign point, if it comes to ur help

Cheers/
Taifur
WW288996
Frequent Advisor

Re: How to increase the ext3 filesystem after lvextend command on RHEL 5.3 64Bit

I have got the command hence closing this thread.

command is resize2fs .

resize2fs /dev/mapper/VolGroup00-LogVol00