How to retire a node via curl

How to retire a node via curl

If you do not have access to a UI, you can retire a whole node using curl.

 Instructions

SSH as root user to any machine with curl access to the storage nodes and then do the following.

  1. Collect the IP address of the storage node you want to retire. Also collect the admin password for the Swarm cluster (may be different from any Content Gateway passwords).

  2. Verify this IP address twice! Once you retire a node, you will have to reformat the disks to bring the node’s disks back online.

  3. Run the following command. You will be prompted for the admin password

    curl -s -XPOST 'http://<IP address of the storage node to retire>:91/api/storage/nodes/_self/retire' -u'admin'

Only do this if you know what you are doing. This is potentially dangerous and destructive. This is best done via the Swarm UI where you will get warnings.