cray
command line interface (CLI) is authenticated and configured to talk to system management services.
(ncn-mw#
) Run the following script to create a backup of the current CFS components, configurations, options, sessions, and sources.
/usr/share/doc/csm/scripts/operations/configuration/export_cfs_data.sh
Expected output ends in a line resembling the following:
SUCCESS: CFS data stored in file: /tmp/cfs-export-20230410170613-Tg0nap.tgz
Copy the archive file it outputs to a safe location.
Back up Vault data, if any CFS sources are defined.
CFS sources store their credentials in Vault. If any CFS sources are defined, then a CFS export is not complete without also backing up the Vault data.
(ncn-mw#
) Check if any CFS sources are defined.
cray cfs v3 sources list --limit 1
If any sources are defined, backup the Vault data.
For information on Vault backup and restore, see Backup and recovery: Vault.
An automated tool is provided to import data from the archive file created by the export_cfs_data.sh
script.
This tool does the following things:
--clear-cfs
option is specified, then before deciding which changes need to be imported, the tool will delete all
configurations in CFS and will clear the state, desired configuration, and error counts of all components in CFS.The script takes a snapshot of the live system CFS data before it makes any changes, and after all changes have been made. The output of the script lists all of the updates it is making, as well as any updates that it is not performing because of the criteria listed above.
Restore Vault data, if necessary.
For information on Vault backup and restore, see Backup and recovery: Vault.
Copy the file generated by the export script on the node where the import procedure is being performed.
(ncn-mw#
) Run the following script to import the data from the archive file.
Modify the following example commands to specify the path to the output file from the automated export script.
If this import is not happening after a reinstall of CSM, OR if VCS data was not imported from a previous CSM install, then invoke the tool as follows:
/usr/share/doc/csm/scripts/operations/configuration/import_cfs_data.sh /tmp/cfs-export-20230410170613-Tg0nap.tgz
If the CFS import is being done after a reinstall of CSM AND if VCS data from a prior CSM install has been imported, then
invoke the tool with the --clear-cfs
option. This is because the CFS data created during the reinstall of
CSM will not match the re-imported VCS data.
/usr/share/doc/csm/scripts/operations/configuration/import_cfs_data.sh --clear-cfs /tmp/cfs-export-20230410170613-Tg0nap.tgz