How to increase EBS volume size - EBSのディスクサイズを増やす方法
This article is written about that in detail.
この記事がわかりやすいです。
- Create snapshot of existing (old) volume
- Then create new volume from created snapshot with new size
- Put new size there
- Stop running instance
- Detach current volume
- Attach newly created volume in step 2 with Device as /dev/sda1 (It works only with /dev/sda1)
- Then check with elastic IP address
- Then start instance.If you are not able to log-in, there release IP and attach again and then start instance
- Finally after you gets connected through putty using either ec2-user for fedora/Amazon AMI and root for centOS
- Run following commands
sudo su
sudo resize2fs /dev/sda1