Latest link: https://medium.com/@rahulian/how-to-reduce-volume-of-an-aws-ec2-instance-d493ec891698
copy commands:
attach two volume and issue below commands:
copy commands:
-aAxXSH
-aHAXxSP
attach two volume and issue below commands:
Block Device Name Big Volume = /dev/sda1
Block Device Name Big Volume Snapshot = /dev/sdg
Block Device Name Small Volume = /dev/sdf
Restart the Instance and SSH in
Login:
Create a file system for the 2 volumes you have created (Note: In Ubuntu I had to do a cat/proc/partitions to work out which device was which).
Create two mount directories and mount the new volumes.
Sync the files.
Unmount the smaller volume.
Stop the instance
link from:
http://cloudacademy.com/blog/amazon-ebs-shink-volume/