Offline Restoration - Autoscaling
Locally create a new autoscaling volume from Datafy snapshots
The standard flow for restoring Datafy snapshots is through the Datafy create-from-snapshots and attach endpoints. In emergency cases when these endpoints are not available, you can use the manual attach tool to access data from volumes created directly from Datafy snapshots.
The tool does not require any permissions on your AWS account.
Manual Attachment of Restored Datafy Snapshots
Before you get started, make sure you meet the following conditions:
Access to snapshots in the AWS console
SSH access and root/sudo permissions on an instance with Datafy Autoscaler installed where the volumes will be attached
Create New Volumes from Snapshots
For a given source volume ID and desired timeframe, find all of the snapshots that have a matching
datafy:source-volume:idtag and timestamp. All the snapshots will have the samedatafy:snapshot:idtag, and you must use all of the snapshots carrying that tag.Create new volumes from these snapshots through AWS, and attach them to the desired instance.
Download and Run the Attach Tool
Download and run the attach tool using the following command. Provide the volume IDs and device names of your volumes.
curl -sSfL https://artifacts.datafy.io/attach_tool | sh -s -- vol-04d316aeec130176a /dev/nvme1n1 vol-07b9a47caa69e90e2 /dev/nvme2n1You will receive a new device path that can be used to access a single autoscaling volume with access to all of the data from the restored snapshots
Generated source volume id: vol-01afc3a269acebaf9 Volume attached successfully. New device path: /dev/dvol01afc3a269acebaf9You can also download and run the tool in 2 steps using:
curl -sSfL https://artifacts.datafy.io/attach_tool | shand then:
sudo ./attach_tool vol-04d316aeec130176a /dev/nvme1n1 vol-07b9a47caa69e90e2 /dev/nvme2n1
Limitations of Volumes That Were Manually Attached
Until your new volume is registered with Datafy, it will operate under the following limitations:
Appearance: The volume will not appear in the Datafy app.
Autoscaling: The volume will continue to grow, but will not automatically shrink
Additional Actions: API actions for the volume will not be supported
Last updated
Was this helpful?
