Developers Forum for XinFin XDC Network

Yang Li
Yang Li

Posted on

A recovery drill for an XDC node running on EC2

A node backup is useful only if the operator can restore it and confirm that the node is following the intended network. This checklist describes an isolated recovery exercise for an XDC node whose data lives on an Amazon EBS volume. Adapt the steps to your client version and node role; it is not a validator failover procedure.

Before the exercise

Record the instance region and Availability Zone, the data volume ID, mount point, client version, configuration and snapshot timestamp. Check that the snapshot has completed, that the restore role can use the encryption key, and that the recovery environment has enough disk space. Record the expected recovery point and the time at which the drill begins.

Keep signing keys and credentials outside the drill notes. Never paste private keys into a ticket or send them to a public chat. For a validator, follow the current XDC operator guidance for signing and failover; do not start a second active signer with the same credentials.

Restore into an isolated environment

  1. Prepare a test EC2 instance with restricted access and no production traffic. Confirm the expected network and software version.
  2. Create an EBS volume from the chosen snapshot in the same Availability Zone as that test instance. AWS documents the volume creation and attachment requirements.
  3. Attach the restored volume as a secondary disk. Identify it by volume and filesystem identifiers before mounting; do not format it or overwrite the production disk.
  4. Inspect the restored configuration and data. Start only an appropriate non-signing node in the isolated environment after reviewing client-specific instructions. If a clean shutdown or application-consistent snapshot was not used, treat consistency as unproven and check client recovery logs.

A volume restored from a snapshot can experience increased I/O latency while blocks are initialized. Record that effect when measuring startup and synchronization; a volume becoming available is not the same as a ready node.

Verify the result

Compare the restored node's network identity and observed block height with a trusted independent endpoint for the same network. Watch the height advance and inspect logs for database, peer and disk errors. A successful process start alone is insufficient: note the snapshot time, time to mount, time to usable service, outstanding lag and any manual steps.

Test the API only from the restricted test network, and avoid exposing administrative RPC interfaces to the internet. Stop the drill if the restored node tries to use production signing credentials. Preserve the original snapshot and production volume until the team has reviewed the result.

Turn the result into a runbook

Write down the recovery point actually achieved and the elapsed time to a healthy, synchronized node. List missing permissions, stale configuration and dependencies discovered during the test. Repeat after a meaningful client or infrastructure change; a snapshot does not replace a separately tested key-recovery and failover procedure.

For general EC2 operations, see the EC2 resource site. For questions about the service, the Telegram contact is available. These are service links; neither is an official XDC or AWS support channel.

Discussion (0)