Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Clouds > AWS > AWS FAQs > When I restore an EBS snapshot to a larger size, why does df not reflect this?

When I restore an EBS snapshot to a larger size, why does df not reflect this?

Table of Contents
Background Information

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.


Answer

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.

You must to post a comment.
Last modified
21:26, 16 May 2013

Tags

EBS

Classifications

This page has no classifications.

Announcements

None


© 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.