cloud-slashOffline 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 volume created directly from Datafy snapshots,

The tool does not require any permissions on your AWS account.

circle-exclamation

Manual Attachment of Restored Datafy Snapshots

Before you get started, make sure you meet the following conditions:

  1. Access to snapshots in the AWS console

  2. SSH access and root/sudo permissions on an instance with Datafy Autoscaler installed where the volumes will be attached

1

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:id tag and timestamp. All the snapshots should have the same datafy:snapshot:id tag, and all of snapshots with this tag should be used.

  • Create new volumes from these snapshots through AWS, and attach them to the desired instance.

2

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/nvme2n1
    circle-info

    You can find the device name by running the lsblk command

    You 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/datafy-vol-01afc3a269acebaf9
    • You can also download and run the tool in 2 steps using:

      curl -sSfL https://artifacts.datafy.io/attach_tool | sh

      and then:

      sudo ./attach_tool vol-04d316aeec130176a /dev/nvme1n1 vol-07b9a47caa69e90e2 /dev/nvme2n1
3

Set up the Volume

Mount the volume using the device path provided by the attach tool output

mount /dev/datafy-vol-01afc3a269acebaf9 /mnt/data

Your volume is now set up and ready to use!

Limitations of Volumes That Were Manually Attached

circle-exclamation

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

circle-check

Last updated

Was this helpful?