Skip to main content

Disaster recovery

Total disaster recovery

This procedure targets a global TPE cluster recovery in the following scenarios:

  • Loss of all TPE nodes (or one node in standalone mode).
  • Docker swarm cluster quorum loss when more than one node failed.

Before starting the recovery procedure, make sure to have a valid TPE Backup archive to be able to restore your data.

  1. Install the Operating System on the needed server(s).

  2. Redo the ThingPark Enterprise Cluster creation

    WARNING

    A limitation in the restore process causes the cluster configuration to be restored but not applied. Make sure to configure the new cluster like the old one.

    You can recover the saved configuration with the following command:

    tar -axf config.archive.tgz ./infra.yml -O
  3. Redo the Configuration and Deployment.

  4. Connect to Cockpit.

  5. Go to the TPE Backup module.

  6. Click on Restore.

  7. In "Restore source path", set the path where is mounted your TPE Backup archive

  8. Click on Next.

  9. Select the Backup you want to restore and click on Next.

  10. Wait until restoration is done.

    Here is the expected final output:

  11. Click on Close.

  12. Go to the TPE Configuration Cockpit module, click Save & Apply to apply the configuration restored.

  13. To finish, go to the TPE Services Cockpit module and check that all services are running and the TPE node(s) are ready.

High Availability node recovery

This procedure targets the recovery of one node of a ThingPark Enterprise HA cluster (hardware failure).

  1. Install the Operating System.

  2. Connect to one of the running TPE nodes. Execute an ssh command to connect to the server:

    ssh support@${IP_OR_HOSTNAME_OF_TPE} -p 2222
  3. Remove the node lost from Docker Swarm (old node reference) by running the 2 following commands:

    docker node demote <node_name>
    docker node rm <node_name>

    Where <node_name> must be replaced by "tpe-node1", "tpe-node2" or "tpe-node3" following the node lost.

  4. Do the TPE Cluster Discover by running the following script:

    tpe-cluster-discover -i -c '{"hosts": [ {"ip": "<IP address node1>", "hostname":"tpe-node1", "sup_pass": "<support_password>" }, {"ip": "<IP address node2>", "hostname":"tpe-node2", "sup_pass": "<support_password>" }, {"ip": "<IP address node3>", "hostname":"tpe-node3", "sup_pass": "<support_password>" }]}'

    Where:

    • <IP address node> must be replaced by the IP address of each node.
    • <support_password> must be replaced by the support user password.
  5. Connect to Cockpit (via a running node, not the node under re-installation).

  6. Go to the TPE Services module, under TPE cluster operations click on Redeploy cluster:

  7. You are prompted to confirm the cluster redeploy:

  8. Click on Confirm.

  9. Once the Cluster redeploy is done, go to the TPE Configuration module.

  10. Click on Save & Apply.

  11. To finish, go to the TPE Services module and check that all services are running and the three nodes are ready state.