Operating System - Linux
1828402 Members
4030 Online
109977 Solutions
New Discussion

Extend Filesystem on Red Hat Linux 9 system

 
SOLVED
Go to solution
Jason Berendsen
Regular Advisor

Extend Filesystem on Red Hat Linux 9 system

Hopefully this is a fairly easy question.

I am new to the Red Hat realm and have the need to increase the size of my /usr filesystem. As you probably have figured I have LVM running. I extended the logical volume without a problem. I then unmounted /usr and ran
resize_reiserfs -s +200M -f /usr
I got the following error:
bread: Cannot read the block (2)

I then tried
resize_reiserfs -s +200M /dev/vg00/lvol7
I got the following error:
reiserfs_open: neither new nor old reiserfs format found on /dev/vg00/lvol7
resize_reiserfs: cannot open '/dev/vg00/lvol4': Success Aborted

Any idea what I am doing wrong?

Thanks,

Jason
5 REPLIES 5
Jerome Henry
Honored Contributor
Solution

Re: Extend Filesystem on Red Hat Linux 9 system

Why do you use reiserfs ?
RH9 is usually using ext3. The command would rather be
resize2fs /usr with all the arguments you wish... did I miss sth ?
J
You can lean only on what resists you...
Jason Berendsen
Regular Advisor

Re: Extend Filesystem on Red Hat Linux 9 system

Thanks Jerome,

I figured I was off base with the command I was using. One more question, do you know an equivalent command to HP-UX's fsadm, where you can resize FS on line?
Jerome Henry
Honored Contributor

Re: Extend Filesystem on Red Hat Linux 9 system

I don't think there is one. All Unix is not implemented in Linux, and as it's usally small systems on x86, one do not touch system settings quite often after creation.
Do you know this translation table ? Quite usefull sometimes :
http://www.opennet.ru/soft/linux2unix.html
Tks fr yr assignments.
J (leaving for w.e. in my time zone).
You can lean only on what resists you...
Jarle Bjorgeengen
Trusted Contributor

Re: Extend Filesystem on Red Hat Linux 9 system

Reiserfs can be grown while mounted. Ref:

http://www.namesys.com/

Look at the man pages , and then mount options. Last option has the opportunity to resize online, and there is a link to an online resizer.

Rgds Jarle


Jerome Henry
Honored Contributor

Re: Extend Filesystem on Red Hat Linux 9 system

Unfortunately RH is on ext3 filesystem.
It cans still be resized (but unmounted) with parted command. If you do not know it, check at :
http://www.gnu.org/software/parted/
hth
J
You can lean only on what resists you...