How do I go about shrinking a RAID-1 array and its' underlying partitions so I can use spare space for something else?
I have a box I've recently rebuilt with 12.04 for use in various home-server roles such as file store, backup, etc and also as a playpen for me to mess around with various things like web servers, dbs etc.
At the moment it has:
- 2 x 250GB HDDs in RAID-1 mounted at /
- 2 x 1 TB HDDs in RAID-1 mounted at /home
I'd like to use some of that space on the 1 TB disks for other RAID-1 partitions for things like an LVM partition for a Windows 7 VM (running under KVM) and perhaps for storage for some OpenVZ / VServer / LXC containers.
So I need to shrink the underlying partitions without killing the RAID array then partition the newly-spare space for other uses (including other RAID arrays).
I'd prefer a visual solution such as GParted or some other gui tool but a command-line solution is fine.