Restore an AIO-SX Subcloud On-Site¶
Use this procedure to restore a factory-installed AIO-SX subcloud locally. The following on-site restore scenarios are supported:
Restore from a local backup stored on the subcloud.
Restore from a backup stored on the System Controller.
Restore the system to its factory-installed state.
Restore from a Local Backup¶
Use this scenario when the subcloud has failed but can be booted and a recent backup is available on the subcloud.
Prerequisites
A backup archive is available in
/opt/platform-backup/.The subcloud is unmanaged on the System Controller.
The subcloud is in its factory default state.
The factory system must be configured with Rook-ceph or LVM CSI (baremetal ceph is not supported).
The backup and the factory system must use the same persistent volume storage solution. You cannot restore a Rook-ceph backup onto an LVM CSI factory system or vice versa.
Procedure
Prepare the seed ISO as described in Prepare the Seed ISO for On-Site Enrollment, with the following changes:
Set
MODEinuser-datatoonsite-restore.Set a new unique value for
instance-idinmeta-data.Add a
config/restore-values.yamlfile containing:local_only: true restore_timeout: 5400
Insert the seed ISO using one of the methods described in Insert the Seed ISO for On-Site Enrollment.
Results
After the system detects the seed ISO:
Cloud-init configures the network and vCSR.
The restore script sends a restore request to the System Controller. StarlingX does not transfer backup data for local restore.
The restore process runs locally using the backup stored on the subcloud.
After the restore completes, the vCSR re-establishes the IPsec tunnel and the System Controller detects the subcloud is back online.
To monitor restore progress, see Monitor Subcloud Restore Progress.
Restore from Remote Backup¶
Use this scenario when the subcloud hardware has been replaced and factory-installed to its default state, and a recent backup of the subcloud exists on the System Controller.
Prerequisites
A backup archive exists on the System Controller.
The
/opt/platform-backuppartition on the subcloud has sufficient disk space for the backup archive transfer.The subcloud is unmanaged on the System Controller.
The subcloud is in its factory default state.
The factory system must be configured with Rook-ceph or LVM CSI (baremetal ceph is not supported).
The backup and the factory system must use the same persistent volume storage solution. You cannot restore a Rook-ceph backup onto an LVM CSI factory system or vice versa.
Procedure
Prepare the seed ISO as described in Prepare the Seed ISO for On-Site Enrollment, and set
local_only: falseinrestore-values.yaml.Insert the seed ISO using one of the methods described in Insert the Seed ISO for On-Site Enrollment.
Results
After the system detects the seed ISO:
Cloud-init configures the network and vCSR.
The restore script sends a restore request to the System Controller.
The System Controller transfers the backup archive to the subcloud.
The restore playbook runs locally using the transferred backup.
To monitor restore progress, see Monitor Subcloud Restore Progress.
Restore from Factory Backup¶
Use this scenario to restore the system to its factory-installed state. The restore runs fully autonomously and requires no communication with the System Controller. Start a factory restore using a seed ISO or the GRUB boot menu.
Prerequisites
Factory backup data is available in
/opt/platform-backup/factory/(created automatically during the original factory install).Prestaged software is available on the protected partition.
Restore Using the Seed ISO¶
Use when the system is operational and cloud-init is running. This follows a similar process to the local and remote backup restore procedures: a seed ISO is inserted, which triggers a reinstall from prestaged data followed by the factory restore.
Procedure
Prepare the seed ISO as described in Prepare the Seed ISO for On-Site Enrollment, with the following changes:
Set
MODEinuser-datatoonsite-factory-restore.Set a new unique value for
instance-idinmeta-data.
Insert the seed ISO using the same methods described in Insert the Seed ISO for On-Site Enrollment.
Results
After the system detects the seed ISO and processes the user-data:
The
10-trigger-reinstallscript initiates a reinstall from prestaged software on the protected partition.The system restores from the factory backup.
The system returns to its factory-installed state.
Monitor Subcloud Restore Progress¶
On-site Restore:
Monitor the following log files on the subcloud:
/var/log/cloud-init-output.log (for the trigger phase) /var/log/auto-restore.log (for the restore playbook)
Factory Restore:
Monitor restore progress by using either the BMC serial console or through IPMI system event logs:
$ ipmitool sel list
After the system becomes accessible, monitor detailed restore progress in:
/var/log/auto-restore.log
Verify and Manage the Subcloud After Restore¶
After the subcloud restore completes, perform the following steps:
Procedure
Verify the subcloud is operational:
$ source /etc/platform/openrc ~(keystone_admin)]$ system host-list ~(keystone_admin)]$ fm alarm-list
From the System Controller, manage the subcloud:
~(keystone_admin)]$ dcmanager subcloud manage <subcloud-name>
If you performed a factory restore, delete the subcloud from the System Controller and re-enroll it:
Warning
Deleting the subcloud removes all audit and configuration data from the System Controller. Ensure you have the required bootstrap values and deployment configuration before proceeding.
~(keystone_admin)]$ dcmanager subcloud delete <subcloud-name> ~(keystone_admin)]$ dcmanager subcloud add --enroll --bootstrap-address <address> \ --bootstrap-values <file> --deployment-config <file> \ --install-values <file> --sysadmin-password <password> \ --bmc-password <password>For more information, see Enroll a Factory Installed Non Distributed Standalone System as a Subcloud.
Related Information