EC2: Restore a Volume (Instant Restore)
Who can use this feature
Anyone with these permissions: Restore resources
This article explains how to restore an EBS volume using instant restore.
Instant restore makes the volume available in minutes by serving data on demand while the volume hydrates in the background. For the standard restore method that fully restores the volume before it becomes available, see EC2: Restore a Volume.
This article walks you through:
- Restoring the volume in the Eon console
- Attaching it to a Linux instance in your AWS account
- Installing Eon’s agent software to make the volume usable
Restore the volume with instant restore
Before you start
Before you restore a volume with instant restore, make sure:
-
A restore account has been connected to your Eon account.
-
The AWS restore account meets these requirements:
- The restore account has a KMS key that grants access to
EonRestoreAccountRoleandEonRestoreNodeRole. - The restore account has a VPC and subnet that meet restore server connectivity requirements. By default, Eon uses the default VPC and subnet, but you can customize the restore server connectivity if needed.
- The restore account has a KMS key that grants access to
-
The source EBS volume is partitioned. Instant restore doesn’t support raw (unpartitioned) volumes.
Find the snapshot you want to restore
-
In your inventory, select the EC2 resource you want to restore. The Resource Details drawer opens.
-
Click the Eon snapshots tab. You’ll see a calendar view with colored dots on the days when snapshots were taken. There can be more than one snapshot per day.
When you click a day, a list of Eon snapshots taken that day is displayed below the calendar.
-
Expand the snapshot you want to restore. Click Specific volume, select the volume you want to restore, and then click Restore. The Restore Volume wizard opens.
Choose the restore account and enable instant restore
In the Restore Volume wizard, you’re taken through a two-step process. The first step is to choose a restore account and configure instant restore.
-
Choose the cloud account you want to restore the volume in.
-
Turn Use instant restore on.
When instant restore is enabled, the volume restores to the same region as your vault. Region selection isn’t available because instant restore requires the vault and restored volume to be in the same region.
-
Click Next.
Set the restored volume details
In the Configuration step, you’ll set the restored volume details.
-
Choose an Availability zone to deploy the restored volume to.
-
Choose whether to turn Keep original settings on or off.
-
If you leave Keep original settings on, the restored volume retains the same settings as the original volume.
-
If you turn it off, you can customize the volume’s Type, Size, and IOPS.
-
-
In Encrypt this resource, select a KMS key that grants access to
EonRestoreAccountRoleandEonRestoreNodeRole. You can either select a key from the Encryption key list or enter a Key ARN. -
If you want to retain the tags that were present when the snapshot was taken, turn Keep original tags on. Otherwise, turn Keep original tags off.
In both cases, the new volume is tagged with
eon:restore=true. Tags with theeon:prefix aren’t included in the original tags because Eon uses this prefix for internal operations.
Start the restore job
Click Start to start the asynchronous restore job.
You can monitor the restore job on the Restore jobs tab in the Jobs page.
After the job completes, the volume becomes available in your AWS account.
Attach the volume to a Linux instance
You’ll need an Amazon Linux 2023 or Red Hat Enterprise Linux 8+ instance (x86_64 architecture) in the same availability zone where you restored the volume. The instance performs the hydration, so it needs network connectivity to Eon’s vault and control plane. See restore server connectivity requirements for details.
Find or create a Linux instance that meets these requirements in the same availability zone where you restored the volume, and attach the volume to it.
Install the eon-blockdev agent
The eon-blockdev agent exposes the volume as a usable block device while simultaneously hydrating it.
The agent uses the instance’s IAM role credentials to access Eon’s vault (S3) and report progress to Eon’s control plane (DynamoDB).
-
Connect to the Linux instance.
-
Run these commands to download and install the agent:
-
After installation, the agent verifies the instance can access Eon’s vault and control plane, then detects the restored volume and exposes it as
/dev/nbdN(for example,/dev/nbd0). -
Confirm the volume is available:
Look for an
nbdNdevice whose size matches the restored volume, with a partition under it (for example,nbd0withnbd0p1). You can ignore anynbdNentries with a size of 0B; they’re unused device slots created by the nbd kernel module.
Mount the volume
-
Create a directory where you want to mount the volume:
For these instructions, we’ll use
/data, but you can use any name you want. -
Mount the volume’s partition to the directory you created. Replace
$NBD_PARTITIONwith the partition name from thelsblkoutput (for example,nbd0p1): -
Confirm the volume is mounted:
If you want the volume to mount to the instance on every boot, see Making an Amazon EBS volume available for use from AWS.
The volume is now usable and continues hydrating data in the background. You can access your data immediately while the full restore completes.
Monitor hydration progress
To monitor the volume’s hydration progress, run:
When the output shows "success": true, the hydration process is finished.
Confirm the volume is the correct size by comparing reported size from AWS with the snapshot size in Eon.