Appendix - UFM Factory Reset
This section provides a comprehensive guide on resetting UFM to its original factory settings.
WARNING!!! this operation will remove all user data and configuration and will restore UFM to its factory defaults.
The UFM Factory-Reset will exclusively revert UFM to its original factory settings, leaving HA configurations unaffected. To remove HA, it is essential to execute ufm_ha_cluster cleanup before initiating the factory reset.
To reset UFM to its factory defaults when using UFM on a Docker container, follow these steps.
Ensure that UFM is not up and running. If UFM is running, stop it.
For Stand-alone (SA) installations:
systemctl stop ufm-enterprise # validate that ufm is not running systemctl status ufm-enterprise
For High-Availability setups (perform the following on the master node only):
ufm_ha_cluster stop
# validate that ufm is not runningufm_ha_cluster statusRun
mellanox/ufm-enterpriseDocker Container with the following flags:NoteWARNING: This operation will erase all user data and configurations, resetting UFM to its factory defaults.
CAUTION: This step does not require user confirmation, meaning UFM will be restored to factory defaults immediately once initiated.
docker run -it --name=ufm_installer --
rm\ -v/var/run/docker.sock:/var/run/docker.sock \ -v/tmp:/tmp \ -v/opt/ufm/files/:/opt/ufm/shared_config_files/ \ mellanox/ufm-enterprise:latest \ --factory-resetFlag
Type
Description
--name=ufm_installerMandatory
The container name must be called ufm_installer.
-v /var/run/docker.sock:/var/run/docker.sockMandatory
The docker socket must be mounted on the docker container.
-v /tmp:/tmpOptional
Logs of the operation can be viewed in
/tmpon the host in case it is mounted.-v /opt/ufm/files/:/opt/ufm/shared_config_ufm/Mandatory
For the factory reset to persist, it is essential to have the /opt/ufm/files directory mounted from the host.
mellanox/ufm-enterprise:latestMandatory
The docker image name.
--factory-resetMandatory
This action will signal the UFM container to initiate the factory reset process.
UFM Factory Reset in HA Configuration
The UFM Factory-Reset will exclusively revert UFM to its original factory settings, including the HA configurations.
On the Master node, stop the UFM cluster. Run:
ufmapl (config) # no ufm start
On both Master and Standby nodes, reset the UFM cluster configuration to factory settings. Run:
ufmapl (config) # no ufm ha
NoteAfter the factory reset procedure is completed, both UFM nodes are configured as Standalone mode.
UFM Factory Reset in Standalone Configuration
The UFM Factory-Reset will exclusively revert UFM to its original factory settings.
Stop the UFM service. Run:
ufmapl (config) # no ufm start
Reset the UFM data to factory settings. Run:
ufmapl (config) # ufm data reset