[Linux-cluster] fence_ipmilan

Johannes Mäulen Maeulen at awp-shop.de
Thu Aug 1 11:35:59 UTC 2013


Hi there,

thanks for your reply. 

This version is in the debian stable repositories, I’ve installed from
there.

http://packages.debian.org/search?keywords=fence-agents

 

Next time I know better


Kind regards

 

 

Von: linux-cluster-bounces at redhat.com
[mailto:linux-cluster-bounces at redhat.com] Im Auftrag von Marek Grac
Gesendet: Donnerstag, 1. August 2013 09:40
An: linux-cluster at redhat.com
Betreff: Re: [Linux-cluster] fence_ipmilan

 

On 07/31/2013 03:57 PM, Johannes Mäulen wrote:

Hi there,

I’m trying to setup a cluster and had issues with ‘fence_ipmilan’ from the
package fence-agents.

I’m running debian 7.1 with a 3.2.0-4-amd64 kernel.

‘fence_ipmilan –V’ gives ‘fence_ipmilan 3.1.5’

My Cluster nodes are running on Supermicro Motherboards with IPMI on-board.
(To be exact:
http://www.supermicro.nl/products/motherboard/Xeon/C202_C204/X9SCA-F.cfm )

I’ve experienced the following behavior:

 

fence_ipmilan -a xxx.xxx.xxx.xxx -l USER-p PASS -v -o off; echo $?

Powering off machine @ IPMI:xxx.xxx.xxx.xxx...Spawning: '/usr/bin/ipmitool
-I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS' -v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

ipmilan: Power still on

Failed

1

 

More or less in the same moment when I got this message the machine went
down. So all the commands were working, but not in the expected time.

( Using Supermicro Mainboards with IPMI onboard,
http://www.supermicro.nl/products/motherboard/Xeon/C202_C204/X9SCA-F.cfm )

I’ve played around with available parameters and wasn’t able to fix this
behavior.

So I went into the source
code(fence-agents-3.1.5/fence/agents/ipmilan/ipmilan.c) and had a look at
the ipmi_off function. 

There was a fixed value of 2 seconds to sleep.

I modified this to use the same parameter like ipmi_on: ipmi-> i_power_wait
instead of 2, so that I can modify this value and test if it has effect on
my problem.

Now when I use the modified version of fence_ipmilan the output looks like:

 

./fence_ipmilan -a xxx.xxx.xxx.xxx -l USER -p PASS -T 10 -v -o off ; echo $?

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power off'...

Spawning: '/usr/bin/ipmitool -I lan -H 'xxx.xxx.xxx.xxx' -U 'USER' -P 'PASS'
-v chassis power status'...

Done

0

 

So I think this fixed my problem, and I think it might help other users
experiencing the same issues.

Kind regards

 

Thanks for reporting, I'm quite suprised that you use such old version. This
issue was fixed in 3.1.8 (26 Mar 2012) 

m,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20130801/cc19406f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6310 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20130801/cc19406f/attachment.p7s>


More information about the Linux-cluster mailing list