On This Page
Uninstalling TOS
This procedure is for uninstalling TOS on the primary data node. After TOS is uninstalled, certain TOS directories, including data, backup files and log files will remain on the machine. These files and directories will be deleted if TOS is reinstalled.
-
If high availability is enabled, disable it.
-
On the primary data node:
--force
should be used only if the cluster status is not healthy - see sudo tos status. -
If your cluster contains nodes other than the primary data node, remove them:
- Identify the worker node you want to remove.
-
-
If the node is in a healthy state:
-
On the primary data node, run:
Parameters
Parameter
Description
Required/Optional
<node>
Hostname of the node to remove.
Required
On completion, a new command string appears, which you will need to run on the node you want to remove within 30 minutes. If the allocated time expires, you will need to repeat the current step.
-
Log in to the CLI of the node to be removed.
- On the node to be removed, run the command string displayed on completion of the command above. On completion, all TOS-related directories and data will be deleted from the node, therefore make sure you run it on the correct node. Running the command on the wrong node will destroy the cluster.
All TOS-related directories will be deleted from the node.
-
-
If the node you want to remove is not in a healthy state:
-
On the primary data node, run:
[<ADMIN> ~]$ sudo tos cluster node remove <node> --force
sudo tos cluster node remove <node> --forceParameters
Parameter
Description
Required/Optional
<node>
Hostname address of the node to remove.
Required
TOS directories will not be deleted from the node
-
If the machine is still serviceable, you can delete the TOS directories manually:
-
-
- Verify that the node has been removed by again running sudo tos cluster node list.
-
Uninstall TOS from your system. This removes the software components but not your data.
-
After the uninstall command has completed, a number of directories will remain on your primary data node. Run the commands below to remove all directories except backups and other data that you may need in the future:
[<ADMIN> ~]$ sudo rm -rf /opt/tufin/data/*
[<ADMIN> ~]$ sudo rm -rf /opt/tufin/logs/*
[<ADMIN> ~]$ sudo rm -rf /opt/tufin/migration/tmp
[<ADMIN> ~]$ sudo rm -rf /opt/tufin/migration/log
[<ADMIN> ~]$ sudo rm -rf /opt/tufin/migration/tos2-upgrade
[<ADMIN> ~]$ sudo rm -rf /opt/tos/.install
[<ADMIN> ~]$ sudo rm -rf /opt/tos/.update
[<ADMIN> ~]$ sudo rm -rf /tmp/tufinsudo rm -rf /opt/tufin/data/* \ sudo rm -rf /opt/tufin/logs/* \ sudo rm -rf /opt/tufin/migration/tmp \ sudo rm -rf /opt/tufin/migration/log \ sudo rm -rf /opt/tufin/migration/tos2-upgrade \ sudo rm -rf /opt/tos/.install \ sudo rm -rf /opt/tos/.update \ sudo rm -rf /tmp/tufinIn addition, if the SC module was enabled:
An alternative to deleting the sub-directories from /opt/tufin and /opt/tos is to delete /opt/tufin and /opt/tos entirely, however this will remove also data that you may need in the future, including backups and installation files:
Was this helpful?
Thank you!
We’d love your feedback
We really appreciate your feedback
Send this page to a colleague