Paul Tansom wrote:
Now comes the 'clever' bit:
o First you need to grow the RAID to use the extra space available in the partition with something like: mdadm --grow /dev/md5 --size=max o Next unmount the partition and use e2fsck -f to check it o Then you can resize the file system on the raid with something like: resize2fs /dev/md5 o Finally mount the drive again.
Ah, trivial then! Actually does sound fairly straightforward, and at this point I'll have two 500GB drives with full backups anyway!
Of course I was luck in that I didn't need to resize /var, but I did clash with doing this to /, and I think I used a boot CD to do this from, although my notes seem to be missing that bit for some reason!
There's nothing but data on these drives. All the O/S is on a separate (non-RAID) drive.
I would assume that the same process could be used with other RAID formats, but I've not played with migrating between RAID types, which I would suspect would be more complex given the differing nature of the layout of data on the disks used.
There is the additional problem of having sufficient capacity to install all the disks while I work on them. The server has a maximum capacity of 4 drives on SATA, and 2 on IDE (one of which is my O/S, the other a DVD-ROM).