Use the tfactl host
command to add hosts to, or remove hosts from, the TFA cluster.
Syntax
tfactl host [add host_name | remove host_name]
Specify a host name to add or remove, as in the following example:
# tfactl host add myhost.___domain.com
Usage Notes
Using the tfactl host
add command notifies the local TFA about other nodes on your network. When you add a host, TFA contacts that host and, if TFA is running on that host, then both hosts synchronize their host list. TFA authenticates that a host can be added using a cookie. If the host to be added does not have the correct cookie, then you must retrieve that cookie from an existing host in the cluster and set it on the host being added, similar to the following:
#tfactl host add node2 Failed to add host: node2 as the TFA cookies do not match. To add the host successfully, try the following steps: 1. Get the cookie in node1 using: ./tfa_home/bin/tfactl print cookie 2. Set the cookie from Step 1 in node2 using: ./tfa_home/bin/tfactl set cookie=<COOKIE> 3. After Step 2, add host again: ./tfa_home/bin/tfactl host add node2
After you successfully add the host, all clusterwide commands will activate on all nodes registered in the Berkeley database.