[ClusterLabs] Pacemaker confirm that node was fenced successfully

FeldHost™ Admin admin at feldhost.cz
Mon Aug 13 12:13:36 EDT 2018


Hello, thanks for reply, so basiclly, can I leverage existing cli tools and do for ex. call crm node fence xyz?

S pozdravem Kristián Feldsam
Tel.: +420 773 303 353, +421 944 137 535
E-mail.: support at feldhost.cz

www.feldhost.cz - FeldHost™ – Hostingové služby prispôsobíme vám. Máte špecifické požiadavky? Poradíme si s nimi.

FELDSAM s.r.o.
V rohu 434/3
Praha 4 – Libuš, PSČ 142 00
IČ: 290 60 958, DIČ: CZ290 60 958
C 200350 vedená u Městského soudu v Praze

Banka: Fio banka a.s.
Číslo účtu: 2400330446/2010
BIC: FIOBCZPPXX
IBAN: CZ82 2010 0000 0024 0033 0446

> On 13 Aug 2018, at 17:15, Ken Gaillot <kgaillot at redhat.com> wrote:
> 
> On Sat, 2018-08-11 at 17:38 +0200, FeldHost™ Admin wrote:
>> Hi all, I have question:
>> 
>> We have Corosync/Pacemaker cluster running for KVM virtualisation. VM
>> Instances are managed by external software (Opennebula). To achieve
>> automatic migration of running VMs from failed node, external sw need
>> fence node and confirm that was fenced successfully. When node fail,
>> it will be fenced by cluster stack, so I don't want to do second
>> fencing by external sw, but instead I want to connect to alive nodes
>> and get fencing status. Is there some API in pacemaker to get it or I
>> need to somehow parse result from pcs/crmsh?
> 
> Hi,
> 
> You can call stonith_admin, or use the pacemaker fencing client API
> (used for example by DLM). The API documentation is rudimentary:
> 
> http://clusterlabs.org/pacemaker/doxygen/Pacemaker-1.1.18/stonith-ng_8h.html <http://clusterlabs.org/pacemaker/doxygen/Pacemaker-1.1.18/stonith-ng_8h.html>
> 
> Be sure you click on "stonith_api_operations_s" for descriptions of the
> API functions.
> 
> Whether you use the API or stonith_admin, pacemaker will not fence
> twice if a request arrives while another identical request is in
> progress.
> 
>> 
>> Thank you for reply.
>> 
>> S pozdravem Kristián Feldsam
>> Tel.: +420 773 303 353, +421 944 137 535
>> E-mail.: support at feldhost.cz
>> 
>> www.feldhost.cz - FeldHost™ – Hostingové služby
>> prispôsobíme vám. Máte špecifické požiadavky? Poradíme si s nimi.
>> 
>> FELDSAM s.r.o.
>> V rohu 434/3
>> Praha 4 – Libuš, PSČ 142 00
>> IČ: 290 60 958, DIČ: CZ290 60 958
>> C 200350 vedená u Městského soudu v Praze
>> 
>> Banka: Fio banka a.s.
>> Číslo účtu: 2400330446/2010
>> BIC: FIOBCZPPXX
>> IBAN: CZ82 2010 0000 0024 0033 0446
>> 
>> _______________________________________________
>> Users mailing list: Users at clusterlabs.org
>> https://lists.clusterlabs.org/mailman/listinfo/users
>> 
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.
>> pdf
>> Bugs: http://bugs.clusterlabs.org
> -- 
> Ken Gaillot <kgaillot at redhat.com <mailto:kgaillot at redhat.com>>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org <mailto:Users at clusterlabs.org>
> https://lists.clusterlabs.org/mailman/listinfo/users <https://lists.clusterlabs.org/mailman/listinfo/users>
> 
> Project Home: http://www.clusterlabs.org <http://www.clusterlabs.org/>
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
> Bugs: http://bugs.clusterlabs.org <http://bugs.clusterlabs.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20180813/59020e1c/attachment-0002.html>


More information about the Users mailing list