Skip to content

Deleted Snapshots

0

I have many volumes created with a snapshot, however when I try to identify the snapshot, it is not present in the snapshots section under Owned by me or Private Snapshots. Does this mean it has been deleted? If so, how are the volumes being created continuously with a deleted snapshot ID associated with it?

Thanks in advance :)

asked a year ago258 views
3 Answers
0

If you see the volumes being created with its ID, the snapshot was likely deleted, and the volumes are referencing metadata from before its deletion.

If you want to verify this, us AWS CLI and runs aws ec2 describe-snapshots --snapshot-ids <snapshot-id> to check the snapshot status. If it returns an error or no results, the snapshot is likely deleted.

Check volume data with a similar command.

answered a year ago
0

Hello,

• Use this command to fetch the snapshot ID from which your volume was created:

$ aws ec2 describe-volumes --volume-id vol-xxxxxxxx --query 'Volumes[*].SnapshotId' --output text

• Confirm if the snapshot is present or not using:

$ aws ec2 describe-snapshots --snapshot-ids snap-yyyyyyyyy

If the snapshot is deleted, it doesn't affect volumes already created from it.

If required, you can create a new snapshot using the existing volume.

Thanks :)

answered a year ago
0

Hi, You can list all the snapshots of your account by using cli. for example "aws ec2 describe-snapshots --owner-ids self --query 'Snapshots[].[SnapshotId,VolumeId,StartTime,Description]' --output table"

When creating a new volume from a snapshot, it will create new EBS volume based on the data from the snapshot. The new volume is completely independent from the original snapshot.

If you no longer need the snapshot, deletion operation is irreversible. If you might need to create more volumes from the same snapshot or use it as a backup in the future, you should not delete it.

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.