cannot replace a permanently down node. update_vertica fails with host is unreachable
skeswani
- Select Field - Employee
update_vertica/install_vertica --remove-host/--add-host fails because host is unreachable. I cannot replace a permanently down node.
Yikes! a node went down permanently
And I want to replace that node with a new node (which has a different IP).
When this happens, I first tried to add a node to the cluster.
I run update_vertica --add-host new_host It fails saying a old_node is down
However, if I try
update_vertica --remove-host old_host It fails saying a old_node is part of the test2 database.
I am stuck, i cannot replace the node !
can someone help me
0
Answers
You want to replace a old/dead node with a new node (which has a different IP).
First of all, do NOT re-balance, that is not required here and is the wrong solution to the problem.
Here is a step by step example on how to go about replacing a permanently down node
consider a cluster where one node is down and you want to replace this node 10.11.12.24 (dead/old node) with 10.11.12.30 (new node) that you just setup.
take a new node with new IP 10.11.12.30 and set it up as a single node cluster
Make sure passwordless ssh is setup correctly between this new node and all nodes of the existing cluster for user dbadmin
Edit the admintools.conf on all nodes of the existing cluster to make a reference to the new node
node (10.11.12.24) is dead and gone.
modify the admintools.conf file to add the new node as shown below
original
new = now this file has the extra node IP address added and a reference to the new node you have setup (10.11.12.30)
distribute this newly modified admintools.conf file to all nodes
check to make sure admintools.conf was distributed correctly. Notice the new node here
force a recovery and a node replacement
voila !
Finally Clean up the admintools conf
Distribute the admintools conf
Thanks Sumeet this is great Solution. I request we should have an option in admintools to replace a un-reachable node to a new node.
Thanks Sumeet for sharing!