[Pacemaker] crm node delete

Maros Timko timkom at gmail.com
Fri Jun 11 14:45:19 UTC 2010


Hi all,

using heartbeat stack. I have a system with one node offline:
 ============
 Last updated: Fri Jun 11 13:52:40 2010
 Stack: Heartbeat
 Current DC: vsp7.example.com (ba6d6332-71dd-465b-a030-227bcd31a25f) -
partition with quorum
 Version: 1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782
 2 Nodes configured, 2 expected votes
 3 Resources configured.
 ============

 Online: [ vsp7.example.com ]
 OFFLINE: [ vsp8.example.com ]

If I try to remove this offline node, I get:
 [root at vsp7 ~]# crm node delete vsp8.example.com
 WARNING: crm_node bad format:
 ERROR: node vsp8.example.com/state "lost" not found in the id list
 INFO: check output of crm_node -l
 [root at vsp7 ~]# crm_node -l
 [root at vsp7 ~]# echo $?
 0
 [root at vsp7 ~]# crm_node --list
 [root at vsp7 ~]# echo $?
 0
 [root at vsp7 ~]# crm configure show
 node $id="ba6d6332-71dd-465b-a030-227bcd31a25f" vsp7.example.com
 node $id="edc0ba6f-017f-424e-9dbf-302021a2cbce" vsp8.example.com

Pacemaker explained suggests to use lower level commands for both HA and AIS:
 cibadmin --delete --obj_type nodes --crm_xml '<node uname="pcmk-1"/>'
 cibadmin --delete --obj_type status --crm_xml '<node_state uname="pcmk-1"/>'

 [root at vsp7 ~]# crm_node --help | grep list
  -l, --list 	(AIS-Only) Display all known members (past and present)
of this cluster

So what is the truth of "crm node delete", is it supported for heartbeat or not?

Thanks,
Tino




More information about the Pacemaker mailing list