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.
To attach an EBS volume to an instance using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Volumes. Select the volume to attach and choose Actions, Attach volume. You can attach only volumes that are in the Available state.
I have a need to keep EBS snapshots for 7 years for regulatory purposes. AWS documentation says: You can retain snapshots based on either the total count of snapshots or the age of each snapshot. However, it does not give a maximum of age.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With