Hi,

On Fri, Jun 11, 2010 at 03:45:19PM +0100, Maros Timko wrote:
> 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:
>  [r...@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
>  [r...@vsp7 ~]# crm_node -l
>  [r...@vsp7 ~]# echo $?
>  0
>  [r...@vsp7 ~]# crm_node --list
>  [r...@vsp7 ~]# echo $?
>  0
>  [r...@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"/>'
> 
>  [r...@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?

Yes it is, but it looks like the stack wasn't recognized
correctly, i.e. crm thought it was running on openais. This is
the command for the check:

        ps -e -o pid,command | grep -qs 'heartbeat:.[m]aster'

Thanks,

Dejan

> Thanks,
> Tino
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: 
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to