Resizing an EXT3 partition

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
I have a server that has an Adaptec RAID controller in it, running a RAID-5 array. It had 3 x 500GB disks in, and i've added a 4th disk to give 1.5TB of storage.

I've expanded the disk with the Adaptec Storage Manager, but now need to expand my partition within Ubuntu 7.04. My disk looks like this:
Code:
Disk /dev/sdb: 1499.8 GB, 1499872624640 bytes
255 heads, 63 sectors/track, 182349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121565   976470831   83  Linux

What do I need to do to safely resize the partition, without losing data? I know about resize2fs but i'm unclear as to what steps i should follow to make the process safe. Any help would be greatly appreciated.

Cheers,
Matt
 
Thanks for the advice. Couple more questions:

1) Is an LVM still useful when there is only 1 disk in use (well, 1 big array i mean)? I've used it to create a big blob of storage with 4 seperate drives and it was great

2) I'm guessing that my volume will need umount'ing before it is resized using Gparted. Any ideas on how long it might take to resize from 1TB to 1.5TB? Need to think how i schedule the job in

Cheers,
Matt
 
matja, thanks for your reply. That gives me all the info I need. I can't setup the LVM2 just yet, but will bear it in mind for the future. Thanks again.

Matt
 
Humm strange. I've installed and loaded GParted, but it only shows the disk as being 1TB - ie., it isn't recognising the extra space given by the Adaptec RAID card. Do I have to look at editing stuff in FDisk to get the space in there? If so, what do i need to change?

Thanks again for any help.

Matt
 
Back
Top Bottom