Pacemaker : supprimer un node en doublon

Boris HUISGEN December 11, 2013

administration système linux ha pacemaker cibadmin crm_node

root@node0:~# crm configure show

node $id="87979dd9-bb33-42ad-acb5-31d6023e0079" node0
node $id="8a34568b-d09f-457c-8cf0-22675d243342" node1
node $id="fabb197c-87f9-46d9-bb9e-27517a9717a4" node1

root@node0:~# cibadmin --query --local

<nodes>
  <node id="87979dd9-bb33-42ad-acb5-31d6023e0079" uname="node0" type="normal"/>
  <node id="fabb197c-87f9-46d9-bb9e-27517a9717a4" uname="node1" type="normal"/>
  <node id="8a34568b-d09f-457c-8cf0-22675d243342" uname="node1" type="normal"/>
</nodes>

root@node0:~# crm_node -i

87979dd9-bb33-42ad-acb5-31d6023e0079

root@node1:~# crm_node -i

8a34568b-d09f-457c-8cf0-22675d243342

root@node0:~# /etc/init.d/pacemaker stop
root@node1:~# /etc/init.d/pacemaker stop

root@node0:~# crm_node --force -R fabb197c-87f9-46d9-bb9e-27517a9717a4
root@node0:~# cibadmin --delete --obj_type nodes --crm_xml '<node id="fabb197c-87f9-46d9-bb9e-27517a9717a4" uname="node1" type="normal"/>'

root@node0:~# /etc/init.d/pacemaker start
root@node1:~# /etc/init.d/pacemaker start

See also

Heartbeat : wrapper pour exécution conditionnelle en crontab
Read more
Csync2 : synchronisation de fichiers pour cluster
Read more
DRBD : configuration master/master + cluster filesystem OCFS2
Read more