On Thu, Dec 6, 2012 at 7:26 PM, Lars Marowsky-Bree <[email protected]> wrote: > On 2012-12-06T00:02:28, Hermes Flying <[email protected]> wrote: > >> Hi, >> I was wondering how does fencing/STONITH work in a VM environment? Obviously >> the nodes running inside a VM should run in separate machines but can we >> STONITH a node that is running inside a VM? > > I'd suggest to use something like SBD or fence_sanlock (depending on > which distribution you run, we have multiple implementations of the > wheel). > >> Also what is the best practice in regards to VMs and HA? > > If you're running HA *within* the VMs, just treat them like you'd treat > physical nodes. Except for choosing an appropriate fencing mechanism, > nothing special.
fence_xvm is a good one if you have virsh around. http://clusterlabs.org/wiki/Guest_Fencing I recently wrote fence_openstack but the way they do networking isn't very suitable for clustering. fence_ec2 is also kicking around somewhere. > > Oh - if your hypervisor does something like live migrations, make sure > the timeouts of the cluster don't trigger during one. But normally > that's not a problem. > > > Regards, > Lars > > -- > Architect Storage/HA > SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, > HRB 21284 (AG Nürnberg) > "Experience is the name everyone gives to their mistakes." -- Oscar Wilde > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
