# Attaching a Volume to a New Amazon EC2 Instance

From an Amazon EC2 instance backup, you can restore an instance volume and attach the volume to a new instance that is created by the restore operation.

As part of the restore, you can specify a connection to the Amazon EC2 web service or to an Amazon Virtual Private Cloud (VPC).

Important

- The Commvault software does not restore Amazon EBS gp3 IOPS values or throughput values. Default values are set by the restore operation. You can modify the default values after the restore is complete. The default IOPS value is 3000. The default throughput value is 125MB/s.

- When restoring a snapshot copy across regions or accounts, an additional snapshot is created in the destination region. If the snapshot is encrypted with AWS managed default keys, two temporary copies are created (one in the source region in same account and one in the destination region). All temporary copies are deleted after the restore completes.

## Prerequisites

If a passkey is configured for restores, you must have the passkey.

## Procedure

1. From the Command Center navigation pane, go to Protect > Virtual machines.

   The Overview page appears.

2. On the VM groups tab, in the row for the VM group, click the action button , and then click Restore.

   The Select restore type page appears.

3. Click Attach volume.

   The Attach volume page appears.

4. To select a specific source copy and/or MediaAgent for the restore, in the upper-right area of the page, click Change source.

   By default, the software automatically selects the MediaAgent and source copy as follows:

   - MediaAgent: The software uses the MediaAgent that performed the backup.

   - Source copy: By default, the software searches for the requested data in the primary copy. If the data is not found in the primary copy, the software selects a secondary or auxiliary copy.

   Potential for egress charges

   Restoring from a copy that is outside the destination Region incurs egress charges. For more information, see Data Transfer on the Amazon EC2 On-Demand Pricing page in the AWS documentation.

   For more information, see MediaAgent and Copy Precedence Considerations for Virtualization Restores.

5. Select the volumes to attach, and then click Restore.

   The Restore options dialog box appears.

6. Click the New instance tab.

7. For Restore as, select Amazon Web Services.

8. From the Destination list, select the AWS account to create the new instance in.

9. For Access node, leave Automatic (the default value) selected, or select an access node or an access node group.

   - For the best results, use the Automatic option because it does the following:

     - Selects the most appropriate access nodes.

       Potential for egress charges

       The Commvault software assigns the workload to access nodes as follows:

       1. To access nodes in the same AZ.

       2. If no access nodes in the same AZ are available, to access nodes in the same Region.

       3. If no access nodes in the same Region are available, to any available access node (which incurs egress charges).

     - Provides resiliency against access node failure (that is, if an access node fails during a restore, the software restarts the restore on other, available access nodes).

     - Distributes the workload across the access nodes that are assigned for the destination AWS account.

   - If you select a specific access node or access node group, consider the following:

     - If you select an access node that is outside of AWS, the software uploads volume information to Amazon S3 and uses the volumes to create the EC2 instance.

     - If you select an access node group, the software distributes the workload across the access nodes that are available in the access node group.

   Potential for egress charges

   When you restore EC2 instances from an Amazon S3 library in one AWS Region to another Region, consider Amazon Virtual Private Cloud (VPC) egress costs. For more information, see Data Transfer on the Amazon EC2 On-Demand Pricing page in the AWS documentation.

10. For Name, enter a name for the new instance.

11. For Availability zone, select the availability zone to create the new instance in.

12. For Amazon Machine Image (AMI), select the AMI to use to specify the software configuration for the new instance.

    Only Private AMIs are listed. To restore using a Marketplace AMI, enter the AMI ID.

13. For Instance type, select the Amazon EC2 instance type for the new instance.

14. For Key pair, select the Amazon EC2 key pair to access the new instance.

15. For Network, select an existing Amazon EC2 or Amazon VPC network connection or create a new network connection, and then click OK.

    - To select an existing network connection for the new instance, click Browse, and in the Select network settings dialog box, select the network you want to use for the new instance.

    - To create a new network connection, click Browse, and in the Select network settings dialog box, select New Network Interface.

      The Auto Select Security Group toggle key becomes available.

    - To turn off auto selection, specify a security group, disable the Auto select security group toggle key, and from the Security groups list, select a security group for the specified network.

16. For Volume options, modify the settings for the EBS volumes as follows:

    - You can select one or more volumes to modify.

      If you select multiple volumes, and the volumes have different values for either Volume type or KMS key, then Leave value unchanged is displayed for that setting. Consider the following points:

      - Leave value unchanged indicates that the restored volumes will be restored with the same value as the source volumes.

      - You can select a different value, and the value that you select applies to all the volumes that you are modifying.

    - For backups from Commvault Platform Release 2024 (11.34) and previous releases, in Volume type and KMS key, Original is displayed. Original indicates the type of the source volume.

    - For Volume type, the options are limited to only those that are supported for the volume size.

      Volume types that are not supported for the volume size are visible, but not available to select.

      To view the minimum and maximum volume sizes for a volume type that is not available, hover over that volume type.

    - If IOPS applies, given the volume type, then you can modify the value.

      After you click Save, the Commvault software validates the value you enter. If the value is not in the supported range for the EBS volume type, the software displays the minimum and maximum values.

    - If Throughput applies, given the volume type, then you can modify the value.

      After you click Save, the Commvault software validates the value you enter. If the value is not in the supported range for the EBS volume type, the software displays the minimum, maximum, and baseline values.

      Note

      Some Amazon EBS volumes require a specific IOPS and throughput ratio. Verify both that your IOPS and throughput values are within the supported ranges for those values and that the ratio between your values is supported.

    - For KMS key, select an encryption key or option:

      Important

      - Commvault recommends that you enable default encryption of EBS volumes in each AWS account that creates EBS volumes. For information, see Enable encryption by default in the AWS documentation.

      - The following key types are supported:

        - AWS managed keys

        - AWS owned keys

        - Customer managed keys, including multi-region keys

      - Automatic (default value): This option is available for restores to a different AWS Region.

        If the identity that performs the restore has the ec2:GetEbsDefaultKmsKeyId action, then the default KMS key for EBS encryption will have "Default EBS Key" tag. The ec2:GetEbsDefaultKmsKeyId action is included in amazon_restricted_role_permissions.json.

      - No encryption: This option is not recommended. The AWS Well-Architected Framework (SEC08-BP02) recommends enforcing encryption at rest for sensitive data.

17. For Tags, you can add, modify, and delete AWS resource tags.

    If the source EBS volumes have AWS resource tags, then those tags are displayed (excluding the Name tag and the AWS reserved tags).

    For information about AWS resource tags, see Tagging your AWS resources in the AWS documentation.

18. To start the instance automatically after the restore operation completes, select the Power on instance after restore check box.

19. To delete an existing file and replace it with the restored file, enable the Unconditionally overwrite if it already exists toggle key.

20. Click Submit.

×

Loading...