- Newest
- Most votes
- Most comments
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.
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 :)
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.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
