Few days (a month) back I had faced a strange (amateur) problem in Linux with Amazon EBS volume. For some reason I had to increase the volume size say double the size of current volume attached to an instance.
As a normal (not an “advance” user of Linux) I did the following steps:
- Dismounted the device (EBS Volume) by “umount /dev/sdf“.
- Logged into AWS console and detached the attached volume from the instance.
- Took a snapshot of that EBS volume.
- Created another volume from above created snapshot with double the size of the current volume.
- Attached the above newly created volume back to the instance.
- SSH to the instance and mounted the volume (a handy – “mount /dev/sdf/mnt/ebs“).
- Just curious (being a naive Linuxian), I tried to see the size of the volume by running “df -h”.
- It shows the size of the volume as the old one.
- I confirmed it in the AWS console the size of the new EBS volume is double the size of the original.
- What the HECK is happening???