views:

311

answers:

2

Hi All,

I created a EBS volume, attached and mounted it on a EC2 instance. Created few sample text files in the mounted directory and took a snapshot from 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 in snapshot? Or newly created volume having any issue?

Thanks in adavnce, Sunil

A: 

This should normally work. The only explication could be a mistake during the execution of the commands, e.g. that you created a file-system on the newly created volume instead simply mounting it (happened once to me).

elasticsecurity
I order to mount EBS, attached with a instance, followed following steps:yes | mkfs -t ext3 /dev/sdfmkdir /mnt/ebs-storemount /dev/sdf /mnt/esb-storeAnd then created text files in "/mnt/esb-store" and created a snapshot using AWS Console.I think if I mount original EBS and snapshot EBS on same EC2 instance, it's not different from mounting both EBS on different EC2 instances.
+1  A: 

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.