aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
aws |
public |
2019-08-20 03:59:10 -0700 |
2019-08-20 03:59:10 -0700 |
false |
20190820105910 |
false |
false |
|
Resize an EC2 Linux File System on AWS |
tech-note |
If you need to resize an EC2 instance, or an additional mounted volume in AWS.
To unmount the drive, you may need to comment out the entry for it in /etc/fstab
otherwise it'll be in use when it starts up. Do this, then restart, check it's not mounted and run sudo e2fsck -f /dev/xvdh
then if all clean sudo resize2fs /dev/xvdh
you can then check it's extended with df -h