Re: Replacing a host using gdeploy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks sac, I'll take a look at this.

-peter

On Mon, Jun 13, 2016 at 1:35 PM, Sachidananda URS <surs@xxxxxxxxxx> wrote:
Hi,

With the replace node operation being very tedious and elaborate process, it is
easy to commit mistakes. And it is much tedious process to roll back in case of
mistakes.

This is an effort to automate the entire process, the script replace_node.sh is
a wrapper script around gdeploy configuration file. It takes three parameters:
`Existing node name', `new node name', and `volume name'. The script generates
a configuration file, and calls gdeploy with the configuration file as an
argument. This handles clusters with multiple hosts and just two hosts.

USAGE:

$ ./replace_node.sh NODE-1 NODE-2 VOLUMENAME

*******************************************************************************
Node NODE-2 will be replaced with configuration from NODE-1
It is very important to give the node names right. Review before continuing.
*******************************************************************************

Continue(y/N):


-------------------------

When continued NODE-2 will be added into the cluster and self-heal is triggered.

Prerequisites:
===========
1. Password less ssh from node-1 to node-2
2. Passwordless ssh from the laptop to node-1, node-2
3. Place the replace_prep.sh under /usr/share/ansible/gdeploy/scripts/

Configuration generation and additional script generation and invocation is
managed by gdeploy.

The step-3 in Prerequisite will be handled in the rpm once the code is merged
upstream and rpm generated. I'll post on -users list once I build rpms.

I've done some initial tests and things work fine. Any suggestions and
contributions are welcome.

-sac


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux