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, and sessions.
/usr/share/doc/csm/scripts/operations/configuration/export_cfs_data.sh
Expected output resembles the following:
Exporting CFS components...
Exporting CFS configurations...
Exporting CFS options...
Exporting CFS sessions...
Creating compressed archive of exported data...
SUCCESS: CFS data stored in file: /tmp/cfs-export-20230410170613-Tg0nap.tgz
Copy the archive file it outputs to a safe location.
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.
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