1828060 Members
2040 Online
109974 Solutions
New Discussion

ext2resize

 
GnanaShekar
Regular Advisor

ext2resize

Hi,

We have a RHELAS 3 server in the lab.
I need to resize the logical volumes in this server (increase the size of a 100G volume to 200G).
I have increased the logical volume (using lvextend) size to 200GB. But the issue is increasing the filesystem size.
The resizefs command when used starts the e2fsck which takes a lot of time.

I downloaded the ext2resize rpm from the GNU.
However this seems to be throwing an error message:

#ext2resize /dev/vg00/LV01
ext2resize v1.1.17 - 2001/03/18 for EXT2FS 0.5b
ext2resize: ext2_open: fs has unsupported feature(s) enabled: ro compat 2ext2resize: can't open /dev/vg00/LV01

The filesystem on the logical volume is an ext3 filesystem.
I need to increase the filesystem size as soon as possible. Please suggest.

Thanks & Regards,
2 REPLIES 2
Van den Broeck Tijl
Valued Contributor

Re: ext2resize

Are you trying to resize the volume while its mounted? "ro" would suggest to you having the volume mounted in read-only mode (probably the "ro" flag is set in /etc/fstab). Don't resize while having the volume mounted (RHEL/RHAS 3 does not support that on ext3 that afaik).

For resizing don't use ext2resize, it is a deprecated program and you should use resize2fs (from the e2fsprogs package).

RHEL/RHAS 3 does not have a >2.6.12 kernel offline resizing is required. This means stopping every process using the disk. If it is a data partition stopping all services using that data will be probably sufficient. If not, use the "fuser" program to check which processes are still holding the volume.

Fully umount it with "umount /dev/vg00/LV01" and then running "resize2fs /dev/vg00/LV01". Without options resize2fs will try to go for the maximum size available in the logical volume.
skt_skt
Honored Contributor

Re: ext2resize

check if you have ext2online; "whereis ext2online"

if not
umount /mnt
e2fsadm -L 20G lvname