Recently I’ve had to rename a node on a production cluster – however, I did not have an experience on this yet so I decided to try on a sandbox and establish a known procedure. Without further ado, assuming we have 3 nodes and we want to rename ha3’s hostname to ha03.
[root@ha01 ~]# crm status Last updated: Wed Jun 4 21:55:01 2014 Last change: Wed Jun 4 21:53:35 2014 via crm_attribute on ha01.localdomain Stack: classic openais (with plugin) Current DC: ha01.localdomain - partition with quorum Version: 1.1.10-14.el6_5.2-368c726 3 Nodes configured, 3 expected votes 6 Resources configured Online: [ ha01.localdomain ha02.localdomain ha3.localdomain ] Master/Slave Set: ms_MySQL [p_mysql] Masters: [ ha01.localdomain ] Slaves: [ ha02.localdomain ha3.localdomain ] Clone Set: ping_gw_clone [ping_gw] Started: [ ha01.localdomain ha02.localdomain ha3.localdomain ]
Here we go:
- Put ha3 on standby: