Configure Pacemaker fencing and stonith with Hyper-V Driver

Notes

  • exlb1 => Cluster Node A on Host hyperv10
  • exlb2 => Cluster Node B on Host hyperv11
  • hyperv10 => Hyper-V Host
  • hyperv11 => Hyper-V Host

Requirements

Packages

Install requirements on the Debian nodes (exlb1 and exlb2)

WinRM

The Windows Remote Managment should be running on the Hyper-V host, recomanded is also a configured HTTPS transport, see KB2019527. Currently only Basic authentication is supported by libvirt. This method is disabled by default on the Hyper-V server and can be enabled via the WinRM commandline tool.

You need also to enable unencrypted authentication (only if HTTPS for WinRM is not enabled)

Installation




openwsman

Download openwsman from http://sourceforge.net/projects/openwsman/files/.
Extract tarball

Change into source directory

Prepare for building the libraries

Change into the build directory

Configure

Compile and install

Add openwsman to ldconfig

Reload ldconfig

libvirt

Download libvirt http://libvirt.org/sources/libvirt-1.1.1.tar.gz




Extract tarball

Change into source directory

Prepare configure

Configure

Compile and install

Configuration

Configure the credentials, on Debian node exlb2 for Hyper-V host hyperv10

Configure the credentials, on Debian node exlb1 for Hyper-V host hyperv11

Make auth.conf readonly by root

Check the libvirt auth page for more information.

Test

Show version of virsh

Test secure connection

Test insecure connection

Integration in Pacemaker

We need to change the “version” check in the stonith plugin of libvirt, the “version” parameter is not supported yet by libvirt:libvirt API support matrix. So we need to change “version” with another command, I am using “list”:

For some reason, the libvirt stonith plugin doesn’t find our libvirt binary in /usr/local/bin with the which command (I don’t know why). So quick and dirty, make a symbol link in /usr/bin

Now we can configure the stonith device in our cluster configuration

Go in the configure section

Use the command edit to add options with vi

Commit changes

Exit cluster resource manager

One response to Configure Pacemaker fencing and stonith with Hyper-V Driver

Comments are closed.