Operating System - HP-UX
1827844 Members
1280 Online
109969 Solutions
New Discussion

Re: Remove a node from a 3 node SG cluster

 
SOLVED
Go to solution
Adam Garsha
Valued Contributor

Remove a node from a 3 node SG cluster

I want to remove "db2" from a three node cluster made up of (db1,db2,db3). I plan to then re-cluster db2 to an independent cluster with db4 .

Would this work (and not upset packages running on db1 and db3); we use quorum server that is aware of db1, db2, db3, db4 and manages quorum for these two clusters (db1,db2,db3 and db4):

From db1 with both db1 and db3 running production packages:

cmhaltnode db2
cmgetconf cmclconfig.ascii
cp cmclconfig.ascii cmclconfig.just-in-case
# edit cmclconfig.ascii, remove meantion of db2 and its network interfaces
cmcheckconf -v -C cmclconfig.ascii
cmapplyconf -v -C cmclconfig.ascii
# adjust storage presentations so that db1,db3 LUNs are not visible to db2


Do I then also need to "cmdeleteconf" on db2? before I wed it to db4?

Next, on db4:

cmgetconf cmclconfig.ascii
cmgetconf cmclconfig.just-in-case
# edit cmclconfig.ascii to include db2 networking stuff
cmcheckconf -v -C cmclconfig.ascii
cmapplyconf -v -C cmclconfig.ascii
# adjust storage presentations and make sure db2 is in packages as a candidate for failover
2 REPLIES 2
Hasan  Atasoy
Honored Contributor
Solution

Re: Remove a node from a 3 node SG cluster

hi ,
after deleting db2 from orijinal cluster also delete
db2 related lines from
/etc/cmcluster/cmclnodelist
and
/.rhosts

Hasan.
skt_skt
Honored Contributor

Re: Remove a node from a 3 node SG cluster

Do I then also need to "cmdeleteconf" on db2? before I wed it to db4?

Not required. The earlier steps mentioned is sufficient enough. You may verify the nodes active in the cluster by "cmviewcl -l node"