<div dir="ltr">Thanks sac, I&#39;ll take a look at this.<div><br></div><div>-peter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 13, 2016 at 1:35 PM, Sachidananda URS <span dir="ltr">&lt;<a href="mailto:surs@redhat.com" target="_blank">surs@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>With the replace node operation being very tedious and elaborate process, it is<br>easy to commit mistakes. And it is much tedious process to roll back in case of<br>mistakes.<br><br>This is an effort to automate the entire process, the script replace_node.sh is<br>a wrapper script around gdeploy configuration file. It takes three parameters:<br>`Existing node name&#39;, `new node name&#39;, and `volume name&#39;. The script generates<br>a configuration file, and calls gdeploy with the configuration file as an<br>argument. This handles clusters with multiple hosts and just two hosts.<br><br>USAGE:<br><br>$ ./replace_node.sh NODE-1 NODE-2 VOLUMENAME<br><br>*******************************************************************************<br>Node NODE-2 will be replaced with configuration from NODE-1<br>It is very important to give the node names right. Review before continuing.<br>*******************************************************************************<br><br>Continue(y/N):<br><br><br>-------------------------<br><br>When continued NODE-2 will be added into the cluster and self-heal is triggered.<br><br>Prerequisites:<br>===========<br>1. Password less ssh from node-1 to node-2<br>2. Passwordless ssh from the laptop to node-1, node-2<br>3. Place the replace_prep.sh under /usr/share/ansible/gdeploy/scripts/<br><br>Configuration generation and additional script generation and invocation is<br>managed by gdeploy.<br><br>The step-3 in Prerequisite will be handled in the rpm once the code is merged<br>upstream and rpm generated. I&#39;ll post on -users list once I build rpms.<br><br>I&#39;ve done some initial tests and things work fine. Any suggestions and<br>contributions are welcome.<br><br>-sac<br><br></div>
</blockquote></div><br></div>