System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Resize ext3 filesystem in RHEL AS 4.0

Gulam Mohiuddin
Regular Advisor

Resize ext3 filesystem in RHEL AS 4.0

I would like to increase logical Volume "LogVol07" and filesystem "/u07" by 2GB on Red Hat Ent Linux AS 4.0.

/u07 mounted on /dev/VolGroup01/LogVol07

Do I need to unmount the filesystem first?

I guess RHEL 4.0 uses LVM2

Thanks,

Gulam.
Everyday Learning.
5 REPLIES
Heironimus
Honored Contributor

Re: Resize ext3 filesystem in RHEL AS 4.0

You can extend a logical volume while it's in use, and you should be able to use ext2online to expand the filesystem while it's mounted. There are some limitations and warnings, you should review the man page carefully and make sure you're comfortable with it.
Ivan Ferreira
Honored Contributor

Re: Resize ext3 filesystem in RHEL AS 4.0

The LV expansion with lvextend can be done online.

The file system expansion, you can do it online if you have ext2online, available for RHEL4 in the e2fsprogs package.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Gulam Mohiuddin
Regular Advisor

Re: Resize ext3 filesystem in RHEL AS 4.0

Thanks for your response.

Can you provide me example commands how to do this properly.

Thanks,

Gulam.
Everyday Learning.
Ivan Ferreira
Honored Contributor

Re: Resize ext3 filesystem in RHEL AS 4.0

lvextend -L +2048M /dev/vg/lv
ext2online /dev/vg/lv
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: Resize ext3 filesystem in RHEL AS 4.0

e2fsadm -L 56G /dev/vg01/lvol9

work in single step(e2fsadm takes care of extend too;man e2fsadm)


you can do the onine extend if you have ext2online(whereis ext2online)