I am increasing the size of a root EBS volume for EC2's t2.medium instance. The instance is ruled by Ubuntu 14.04 AMI. I have read an official guide and found that to increase root partition size one needs to stop the instance and detach the EBS volume.
However, I was able to resize the volume without instance stop, just because I scheduled changes to be applied on reboot(and scheduled fsck
on reboot too). Changes were done by parted
program and included the destruction of existing volume and creation of the bigger one.
My question: was it a correct way to resize root partition? Could this way bring issues I haven't thought of?
Edit: lsblk
output
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 128G 0 disk └─xvda1 202:1 0 8G 0 part /