1

I have configure a 2 node (master/slave) cluster on HP GL360p servers with iLO 4. OS is centos 7 and I am using pcs with pacemaker and corosync. I want to implement fencing but I can't find any documents about how to get started with it. My requirement are simple: if one of the node becomes unavailable the other reboots it through its iLO interface. And I cant buy additional hardware for this test setup at this stage.

bakasan
  • 93
  • 1
  • 10
  • They're DL360p's by the way, not GL - also I'm not sure your understanding of fencing is right I'm sorry, you need to add more information - but essentially if you want one machine to control the power of another via iLO there are lots of options - read the instructions. – Chopper3 Mar 26 '18 at 12:37

1 Answers1

2

For ilo4 you can use fence_ipmilan:

Man page

An example

NoNoNo
  • 1,939
  • 14
  • 19
  • I have read this before and from what I can see the device mentioned in config is used to control multiple servers, I have no idea what kind of device thats supposed to be, all my searches have turned up to be about traditional iLO interface. Anyway as I mentioned I am not looking for any additional/external device, but to somehow manager the onboard iLO device. – bakasan Mar 26 '18 at 18:12
  • "IPMI device" is the generic term for ILO. In the specific example, it's referring to an ILO module in a blade chassis servicing multiple blades. But it could also refer to the builtin ILO on a standalone server such as yours. You might also investigate 'fence_ilo4_ssh' - IMHO, it's a little simpler to understand until you get used to ILO. – Brandon Xavier Mar 27 '18 at 08:24
  • @bakasan here an example used to control a single server using fence_ipmilan: pcs stonith create stonith- fence_ipmilan ipaddr= login= passwd= pcmk_host_list= pcmk_host_check=static-list fence_ipmilan use the protocol IPMI the udp port 623(check if your firewall can block it) – NoNoNo Mar 27 '18 at 08:33
  • thanks... I had tried this before but it was not working so I assumed there was something wrong about my understanding of the setup.. anyway tried again today and managed to make it work after adding `lanplus` option. – bakasan Mar 27 '18 at 09:32
  • @NoNoNo, is there way to add delay to slave stonith ? If you have any suggestion then please respond to this post https://serverfault.com/questions/906005/how-to-configure-fencing-delay-in-master-slave-cluster-with-drbd-and-pacemaker – bakasan Apr 05 '18 at 11:04