[Linux-cluster] fence_ipmilan

Johannes Mäulen Maeulen at awp-shop.de
Wed Jul 31 13:57:33 UTC 2013


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

 

Johannes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20130731/98732a65/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/20130731/98732a65/attachment.p7s>


More information about the Linux-cluster mailing list