Keywords: Drupal - Amazon Web Services - How to - Other
Description:
Hi,
I have installed Bitnami Drupal AMI on AWS EC2 instance. I have a need to expand its 10gb ebs volume to 20gb.
I have modified the volume using AWS console to 20GB. But now I need to tell to Ubuntu that the volume is larger. When I run lsblk command it shows that the "xvda" size is 20GB but the xvda1 is still old 10gb. I tried the command sudo resize2fs /dev/xvda1 but that says its already resized. Anyway the new amount of space is not in use, df -h command shows the /dev/xvda1 still has 10gb size. So which are the steps to expand the Bitnami AMI EBS volume size? Is there another way or is this the only way?
UPDATE:
These are the steps to increase EBS Volume size without any reboots or new instance launches:
- Modify volume to new size (for example from 10gb to 12gb)
- command "lsblk" shows that Ubuntu does not yet use the new 12gb size
- run command: sudo growpart /dev/xvda 1 (or what ever name you have instead xvda)
- run command: sudo resize2fs /dev/xvda1 allocates the new size for Ubuntu
- done, you have allocated more space to your EBS.
with command: df -h you can see that the new size is really in use 