Is there a way to get linux to recognize new free space on a Raid 5 array without unmounting the disk or rebooting the system?
If I unmount the file system and remount it, will it automatically recognize the new free space?
Server Specs:
Dell PowerEdge 4400
Perc 2? raid controller
Slackware 10.2
I have an old Dell PowerEdge 4400 server running a Raid 5 array. Originally it had 6 disks in this array, but it had 2 empty slots in the enclosure. So, naturally we wanted to make the array bigger. I was able to get another disk added to the system, got the raid controller to recognize it, initialize it, add it to the Raid 5 container, and then rebuild the array.
In the raid controller it recognizes the new drive as part of the array, it sees the new size and everything seems to be A OK.
Now, I know I need to extend the partition and file system to include the new free space. For the life of me I cannot figure out how to get slackware to see the new free space.
I don't think I have to reboot the system, it is not the primary file system, it is a data drive.
I'd like to do it without unmounting the existing file system, but I don't think that is possible.
PERC showing 7th disk in a Valid Raid 5 array (101 GB):
Code:
AFA0> container list
Executing: container list
Num Total Oth Chunk Scsi Partition
Label Type Size Ctr Size Usage B:ID:L Offset:Size
----- ------ ------ --- ------ ------- ------ -------------
0 Legacy 8.47GB Valid 0:01:0 0.00 B:8.47GB
/dev/sda
1 RAID-5 101GB 64KB Valid 1:00:0 64.0KB:16.8GB
/dev/sdb DataPart 1:01:0 64.0KB:16.8GB
1:02:0 64.0KB:16.8GB
1:03:0 64.0KB:16.8GB
1:04:0 64.0KB:16.8GB
1:05:0 64.0KB:16.8GB
1:08:0 64.0KB:16.8GB
df -h output:
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.4G 4.5G 1.6G 74% /
/dev/sdb1 83G 58G 21G 74% /home
fdisk -l output:
Code:
Disk /dev/sda: 9105 MB, 9105018368 bytes
255 heads, 63 sectors/track, 1106 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 851 6835626 83 Linux
/dev/sda2 852 1106 2048287+ 82 Linux swap
Disk /dev/sdb: 90.9 GB, 90994114560 bytes
255 heads, 63 sectors/track, 11062 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 11062 88855483+ 83 Linux
parted /dev/sdb print output:
Code:
Disk geometry for /dev/sdb: 0.000-86778.750 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 86772.963 primary ext3
Information: Don't forget to update /etc/fstab, if necessary.
*
I am not exactly sure why fdisk sees /dev/sdb as 90.9 GB either
Let me know if you need more information.
Thanks for your help!