ProLiant Servers (ML,DL,SL)
1753977 Members
7713 Online
108811 Solutions
New Discussion

Extending ext3 filesystem RHEL5

 
Yanick Quirion
Regular Advisor

Extending ext3 filesystem RHEL5

Dear all,

I would like to resize a sile system in linux. My system is a HP DL380G5 with SmartArray P400 (SAS) controller.

I'm going to HP System Management Homepage and start Array Configuration Utility to extend my LUN. I resize it from 100GB to 150GB. Until then, everything is working fine.

Once the controller has finished its resising operation, I can see that the LUN is now 150GB, but Linux RHEL 5 doesn't see it. I still the old (original) size of it. Why?

To see the correct disk size, I have to reboot the system. Why? I would like to be able to resize filesystem online without having to reboot.

After rebooting, the size is now fine:
Disk /dev/cciss/c0d3: 157.2 GB

At this time, I'm unable to resize the filesystem. When I try resize2fs I have this message:

# resize2fs /dev/cciss/c0d3p1
resize2fs 1.39 (29-May-2006)
The filesystem is already 25599956 blocks long. Nothing to do!

Even I I try ext2online I have this:

# ext2online /dev/cciss/c0d3p1
ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b
ext2online: new size is same as current (25599956)

When I use parted, I can see the free space at the end of the disk:

Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d3: 157GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File
system
1 16.4kB 105GB 105GB primary ext3
105GB 157GB 52.4GB Free
Space

So my question is simple: is it possible to extend a filesystem in Redhat Enterprise 5 without having to restart the system like major OS are supporting? If yes, could you kindly let me know how?

Best regards,
Yanick Quirion