Operating System - Linux
1828456 Members
4275 Online
109978 Solutions
New Discussion

Re: Extend Filesystem REL3

 
someone_4
Honored Contributor

Extend Filesystem REL3

Hi

I was wondering if anyone can tell me how I can extend a filesystem on REL3?


Thanks
Richard
5 REPLIES 5
Rick Garland
Honored Contributor

Re: Extend Filesystem REL3

Was this filesystem created as a LVM filesystem? If so, use the commands that are common to HPUX.

If the filesystem was not created with LVM, you will have to backup data, resize the filesystem, then reload the data.



SAKET_5
Honored Contributor

Re: Extend Filesystem REL3

Hi Richard,

I am assuming you are interested in extending FS on RHEL 3 (Red Hat Linux) and not HP-UX.

We have used ext2fs utility to resize your filesystem without any problems.

Hope, this helps.

Regards,
Saket.


Hugo_14
Occasional Contributor

Re: Extend Filesystem REL3

There is lvm also under RHEL. More information under:

http://www.tldp.org/HOWTO/LVM-HOWTO/
dirk dierickx
Honored Contributor

Re: Extend Filesystem REL3

if you are not using lvm, it gets tricky, because you will have to examine your disk layout first. if you can not extend your partitions on the disk itself, there is no way to increase that filesystem (but create a new one which is larger somewhere else on the disk).
lvm will allow you to span filesystems across partitions so you do not have that limitation. ofcourse if you are not using it, you're stuck with solution 1.
SAKET_5
Honored Contributor

Re: Extend Filesystem REL3

Hi Richard,

I was in a rush last time and hence the typos in my last post and also, I perhaps did not phrase my statements well.

We have recently extended the capacity of a disk and the filesystem on top of it on RHEL 3 with no LVM. The host is attached to EVA 5000 using SAN storage, hence expansion of the Vdisk on EVA was straightforward. Now at the OS end, we had to reboot the host to scan the disk geometry - no filesystem growth occurs so far.

Once it has been established that the disk as seen by the OS has grown in size, we then used ext2fs utility to extend the fileystem size. No probs experienced.

Note: we did try a couple of the tools from hp_fibrechannel_utilities.rpm called probe-luns and hp_rescan to prevent the reboot for scanning the disk geometry online- it didnt quite work and hence the reboot step.

Hope, this helps.