I created an EBS volume, attached and mounted it on an EC2 instance. Created few sample text files in the mounted directory and took a snapshot from the AWS console.
Problem is, when I create a new EBS volume using this snapshot and mount this new volume, I am not seeing the stored content (in snapshot).
What can be the issue? Is my data not going into the snapshot? Or is the newly created volume having any issue?
Thanks in advance.
Found the issue. Not a system admin, else I should have know this thing. Following command is flushing the data from the EBS volume.
yes | mkfs -t ext3 /dev/sdf
On an EBS volume, started using snapshot, don’t run above command. Hope it this thread will help someone in future.