I'm looking to resize a number of partitions, but I'm unsure how to go about doing this.
I want to increase the partition size of the
/var partition, that is in the middle of all the other partitions... I know that in order to keep data intact, the partition needs to start on the same block number as it was originally.
So my question is, even if there are partitions after
/var, can I resize it without disrupting the other partitions? Will it take more space from a different place? Or would it be best to create a new partition altogether, something like
/var/log down at the bottom? And if so, how do I do that?
Here's the current partition layout (I'm hoping I can just increase the size of
/var/lib/mysql easily enough since it's down at the bottom).
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/dm-0 19G 1.6G 16G 9% / udev 10M 0 10M 0% /dev tmpfs 7.9G 807M 7.1G 11% /run tmpfs 20G 0 20G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 20G 0 20G 0% /sys/fs/cgroup /dev/md0 291M 33M 243M 12% /boot /dev/mapper/base-var 19G 11G 7.5G 59% /var /dev/mapper/base-tmp 1.8G 3.0M 1.7G 1% /tmp /dev/mapper/base-home 86G 35G 47G 43% /home /dev/mapper/base-cyrus 75G 60G 12G 85% /var/spool/cyrus /dev/mapper/base-www 20G 13G 5.6G 71% /var/www /dev/mapper/base-mysql 60G 55G 2.3G 97% /var/lib/mysql