Simply put when i set up the server it wasn't intended to be used for what it is now, and root (/) has run out of diskspace, while /home has tonnes of the stuff floating around.
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 10157944 9600344 45656 100% /
/dev/root 10157944 9600344 45656 100% /
/dev 8183468 8 8183460 1% /dev
none 1636756 252 1636504 1% /run
none 5120 0 5120 0% /run/lock
none 8183772 0 8183772 0% /run/shm
/dev/md3 211225328 17996836 182583336 9% /home
LESSON LEARNED! (give / more room next time...)
Here's the output from parted showing the disks and their current sizes, and the RAID array.
Model: ATA INTEL SSDSA2CW12 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 2097kB 10.5GB 10.5GB primary ext4 boot, raid
2 10.5GB 11.0GB 535MB primary linux-swap(v1)
3 11.0GB 120GB 109GB primary raid
Model: ATA INTEL SSDSA2CW12 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 2097kB 10.5GB 10.5GB primary ext4 raid
2 10.5GB 11.0GB 535MB primary linux-swap(v1)
3 11.0GB 120GB 109GB primary raid
Model: Linux Software RAID Array (md)
Disk /dev/md3: 218GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 218GB 218GB ext4
Model: Linux Software RAID Array (md)
Disk /dev/md1: 10.5GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 10.5GB 10.5GB ext4
What i need to do is shrink the /home partition by 40GB and increase the / partition by 40GB. Parted told me when i used the resize command that:
"WARNING: you are attempting to use parted to operate on (resize) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs. We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release."
and looking up e2fsprogs tells me they are ext2 tools, which scares the hell out of me considering the disks are EXT4.
Is there a safe way to resize the partitions? I'm working on this 600miles away from the server by SSH with no direct access.
Thanks in Advance