How do I create a snapshot of an Amazon EBS RAID array?
Last updated: 2020-12-14
I want to create snapshots of my Amazon Elastic Block Store (Amazon EBS) volumes that are configured in a RAID array. How can I take crash consistent snapshots across multiple Amazon EBS volumes on an Amazon Elastic Compute Cloud (Amazon EC2) instance?
To create snapshots for Amazon EBS volumes that are configured in a RAID array, use the multi-volume snapshot feature of your instance. The multi-volume snapshot feature is a one-click solution that takes individual, point-in-time backups of all Amazon EBS volumes attached to your instance. This process makes sure that the backup of your Amazon EBS volumes attached to the instance are in sync relative to each other, resulting in an accurate restore of the Amazon EBS volumes in RAID.
Note: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you’re using the most recent AWS CLI version.
Use the AWS Management Console or AWS CLI to create snapshots.
Note: After the snapshots are created, each snapshot is treated like an individual snapshot. It's a best practice that you tag your multiple volume snapshots to manage them together during operations such as restore, copy, or retention.
AWS Management Console
1. Open the Amazon EC2 console.
2. Under Elastic Block Store, select Snapshots.
3. Select Create Snapshot.
4. Choose Instance as the resource type.
5. Select the instance ID from the drop-down menu.
6. (Optional) Enter a Description of the snapshot.
7. (Optional) Select Copy Tags to automatically copy tags from the source volume to the corresponding snapshots.
8. Click Create Snapshot.
AWS Command Line Interface (AWS CLI)
Use the CreateSnapshots API.
create-snapshots [--description <value>] --instance-specification <value> [--tag-specifications <value>] [--dry-run | --no-dry-run] [--copy-tags-from-source <value>] [--cli-input-json <value>] [--generate-cli-skeleton <value>]
For parameter descriptions and example calls, refer to AWS CLI Command Reference - create-snapshots.