Removing a Worker Node

This procedure is for removing a worker node from a TOS cluster. For more information on worker nodes, seeWorker Nodes

Procedure

  1. Identify the worker node you want to remove.
    • If the node is in a healthy state:

      1. On the primary data node, run:

        [<ADMIN> ~]$ sudo tos cluster node remove <node>
        sudo tos cluster node remove <node>

        Parameters

        Parameter

        Description

        Required/Optional

        <node>

        Hostname of the node to remove.

        Required

        On completion, a new command string is displayed, 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.

      2. Log in to the CLI of the node to be removed.

      3. 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:

      1. On the primary data node, run:

        [<ADMIN> ~]$ sudo tos cluster node remove <node> --force
        sudo tos cluster node remove <node> --force

        Parameters

        Parameter

        Description

        Required/Optional

        <node>

        Hostname address of the node to remove.

        Required

        TOS directories will not be deleted from the node

      2. If the machine is still serviceable, you can delete the TOS directories manually:

        [<ADMIN> ~]$ sudo rm -rf /opt/tufin/data/*
        sudo rm -rf /opt/tufin/data/*
        [<ADMIN> ~]$ sudo rm -rf /opt/tufin/logs/*
        sudo rm -rf /opt/tufin/logs/*
        [<ADMIN> ~]$ sudo rm -rf /opt/tufin/migration/*
        sudo rm -rf /opt/tufin/migration/*
        [<ADMIN> ~]$ sudo rm -rf /opt/tufin/dumps/*
        sudo rm -rf /opt/tufin/dumps/*
  2. Verify that the node has been removed by again running sudo tos cluster node list.