Initially i had EBS boot
as AMI
image with 10GB EBS
volume.
Then i created new 20Gb EBS volume and then attached that to old instance and booted
Then i see that i still have 10GB mounted as /dev/xvda1
Then i follow this tut
http://blog.linuxacademy.com/linux/resizing-root-partition-on-linux-in-amazon-ec2/
i did this
sudo resize2fs /dev/xvda1
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 2620603 blocks long. Nothing to do!
$ sudo su
[root@ip-]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/xvda1 10077 7096 2470 75% /
none 828 1 828 1% /dev/shm
/dev/xvdb2 144578 33 144545 1% /mnt/ephemeral
what to do next
This is my lsblk
output
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
`-xvda1 202:1 0 10G 0 part /
xvdb 202:16 0 149.1G 0 disk
|-xvdb1 202:17 0 7.9G 0 part [SWAP]
`-xvdb2 202:18 0 141.3G 0 part /mnt/ephemeral