[ClusterLabs] Beginner with STONITH Problem

Ken Gaillot kgaillot at redhat.com
Wed Jun 24 09:51:32 EDT 2020


On Wed, 2020-06-24 at 15:47 +0300, Strahil Nikolov wrote:
> Hello Stefan,
> 
> There are multiple options for stonith, but it depends on the
> environment.
> Are the VMs in the same VLAN like the hosts? I am asking this , as
> the most popular candidate is 'fence_xvm' but it requires the VM to
> send fencing request to the KVM host (multicast) where the partner VM
> is hosted .

FYI a fence_xvm walk-through for the simple case is available on the
ClusterLabs wiki:

https://wiki.clusterlabs.org/wiki/Guest_Fencing

> Another approach is to use a shared disk (either over iSCSI or
> SAN)  and use sbd for power-based fencing,  or  use SCSI3 Persistent
> Reservations (which can also be converted into a power-based
> fencing).
> 
> 
> Best Regards,
> Strahil Nikolov
> 
> 
> На 24 юни 2020 г. 13:44:27 GMT+03:00, "
> stefan.schmitz at farmpartner-tec.com" <
> stefan.schmitz at farmpartner-tec.com> написа:
> > Hello,
> > 
> > I am an absolute beginner trying to setup our first HA Cluster.
> > So far I have been working with the "Pacemaker 1.1 Clusters from 
> > Scratch" Guide wich worked for me perfectly up to the Point where I
> > need 
> > to install and configure STONITH.
> > 
> > Curerent Situation is:2 Ubuntu Server as the cluster. Both of
> > those 
> > Servers are virtual machines running on 2 Centos KVM Hosts.
> > Those are the devices or ressources we can use for a STONITH 
> > implementation. In this and other guides I do read a lot about
> > external
> > 
> > devices and in the "pcs stonith list" there are some XEN but sadly
> > I 
> > cannot find anything about KVM. At this point I am stumped and have
> > no 
> > clue in how to proceed, I am not even sure what further inforamtion
> > I 
> > shopuld provide that would be useful for giving advise?
> > 
> > The current pcs status is:
> > 
> > # pcs status
> > Cluster name: pacemaker_cluster
> > WARNING: corosync and pacemaker node names do not match (IPs used
> > in
> > setup?)
> > Stack: corosync
> > Current DC: server2ubuntu1 (version 1.1.18-2b07d5c5a9) - partition
> > with
> > 
> > quorum
> > Last updated: Wed Jun 24 12:43:24 2020
> > Last change: Wed Jun 24 12:35:17 2020 by root via cibadmin on
> > server4ubuntu1
> > 
> > 2 nodes configured
> > 12 resources configured
> > 
> > Online: [ server2ubuntu1 server4ubuntu1 ]
> > 
> > Full list of resources:
> > 
> >  Master/Slave Set: r0_pacemaker_Clone [r0_pacemaker]
> >      Masters: [ server4ubuntu1 ]
> >      Slaves: [ server2ubuntu1 ]
> >  Clone Set: dlm-clone [dlm]
> >      Stopped: [ server2ubuntu1 server4ubuntu1 ]
> >  Clone Set: ClusterIP-clone [ClusterIP] (unique)
> >      ClusterIP:0        (ocf::heartbeat:IPaddr2):       Started 
> > server4ubuntu1
> >      ClusterIP:1        (ocf::heartbeat:IPaddr2):       Started 
> > server4ubuntu1
> >  Master/Slave Set: WebDataClone [WebData]
> >      Masters: [ server2ubuntu1 server4ubuntu1 ]
> >  Clone Set: WebFS-clone [WebFS]
> >      Stopped: [ server2ubuntu1 server4ubuntu1 ]
> >  Clone Set: WebSite-clone [WebSite]
> >      Stopped: [ server2ubuntu1 server4ubuntu1 ]
> > 
> > Failed Actions:
> > * dlm_start_0 on server2ubuntu1 'not configured' (6): call=437, 
> > status=complete, exitreason='',
> >     last-rc-change='Wed Jun 24 12:35:30 2020', queued=0ms,
> > exec=86ms
> > * r0_pacemaker_monitor_60000 on server2ubuntu1 'master' (8):
> > call=438, 
> > status=complete, exitreason='',
> >     last-rc-change='Wed Jun 24 12:36:30 2020', queued=0ms, exec=0ms
> > * dlm_start_0 on server4ubuntu1 'not configured' (6): call=441, 
> > status=complete, exitreason='',
> >     last-rc-change='Wed Jun 24 12:35:30 2020', queued=0ms,
> > exec=74ms
> > 
> > 
> > Daemon Status:
> >   corosync: active/disabled
> >   pacemaker: active/disabled
> >   pcsd: active/enabled
> > 
> > 
> > 
> > I have researched the shown dlm Problem but everything I have found
> > says 
> > that configuring STONITH would solve that issue.
> > Could please someone advise on how to proceed?
> > 
> > Thank you in advance!
> > 
> > Kind regards
> > Stefan Schmitz
> > 
> > 
> > _______________________________________________
> > Manage your subscription:
> > https://lists.clusterlabs.org/mailman/listinfo/users
> > 
> > ClusterLabs home: https://www.clusterlabs.org/
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
> 
> ClusterLabs home: https://www.clusterlabs.org/
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list