I have restored a MySQL EBS snapshot to a larger volume size and it shows as a larger volume in the Dashboard, but when I SSH into the instance and run the df command, it still shows the old size.
This is because the file system itself that was backed up in the EBS snapshot is still the same size it was when the snapshot was created. So, while the volume is larger, the file system itself is still the old size. MySQL EBS uses XFS—so, to grow the file system, you would issue the following command:
xfs_growfs -d /mnt/mysql
Running the xfs_growfs command with the -d option grows the file system to the maximum possible size.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.