Important: Before you start any operation
mentioned below do a proper file system backup of your XFS file
system you want to resize. If MySQL is running on this mount
point do this with a stopped mysqld
. Alternatively
you can also use mysqldump
to do the MySQL backup
but test the restore time before continuing to not experience
ugly surprises...
All these operations have to be performed as the
root
user. First we want to see what mount points
are available:
shell> df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 485M 77M 383M 17% / /dev/sdb1 496M 314M 157M 67% /var/lib/mysql
Our MySQL data are located on /dev/sdb1
.
After the file system backup unmount /dev/sdb1
and
resize the disk, partition or volume (works for VMware, NetApp
filer and similar equipment, for LVM …