I have a new server running CentOS that I just got from 1and1. It has what strikes me as a very odd (ie, stupid) partitioning scheme for CentOS (at least for a web server, which is presumably what these servers are by far most often being used for) in that the bulk of the drive is allocated to the /home dir while the / dir and (most notably) the /var dir are rather small:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 950M 148M 755M 17% /
/dev/md5 4.7G 454M 4.3G 10% /usr
/dev/md6 4.7G 33M 4.7G 1% /var
/dev/md7 221G 4.6M 221G 1% /home
none 990M 0 990M 0% /tmp
Now, there is a recovery tool which lets me boot the server into a rescue mode in which the server is running Debian (not CentOS). My hope is to be able to use parted to resize these partitions to something more reasonable for a CentOS-based web server.
However, maybe I should not do this, but rather create symlinks and keep the partioning scheme as is, but unless someone can explain to me that such is the better way to go (versus repartioning), I'm trying to go with repartitioning.
Here's what a parted print shows me in the recovery mode:
Disk geometry for /dev/sda: 0.000-238475.179 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 964.841 primary ext3 raid
2 964.841 2878.835 primary linux-swap
4 2878.835 238472.688 extended
5 2878.866 7655.976 logical xfs raid
6 7656.007 12433.117 logical xfs raid
7 12433.148 238472.688 logical xfs raid
What I want to do is make 5 (/var) much bigger and 7 (/home) much smaller while also maybe increasing 1 (/) a bit as well. Since we are dealing with partitioning here and I've never done this sort of resizing using parted, I'm rather gunshy. Any advice or instructions are much appreciated.