歡迎您光臨本站 註冊首頁

FENCE_IPMILAN執行REBOOT操作,機器確下電

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

FENCE_IPMILAN執行REBOOT操作,機器確下電

Hi,guys;

    兩台刀片伺服器,系統rhel5.2(64bits)做CLUSTER集群,想驗證fence的功能,如下,在某台主機上執行:
# fence_ipmilan -i 139.122.10.202 -p ericsson -P -l fence02 -o reboot -v
出現如下錯誤:
Rebooting machine @ IPMI:139.122.10.202...Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power off'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
ipmilan: Power still on
Failed


而我用RHEL5.2自帶的IPMITOOL工具卻可以隨意將某台主機RESET,以下是各工具的版本:
伺服器用的IPMI 2.0協議
# fence_ipmilan -V
fence_ipmilan 2.0.84 (built Apr 15 2008 16:19:29)
Copyright (C) Red Hat, Inc.  2004  All rights reserved.
#
#
# ipmitool -V
ipmitool version 1.8.9

REDHAT工程師說fence_ipmilan這個腳本和我的設備的IPMI的版本不匹配,這怎麼整,能重新下一個fence_ipmilan的包?重新安裝?


求方法啊,急
《解決方案》

我要這條命令的執行結果:
fence_ipmilan -a 139.122.10.202 -p ericsson -l fence02 -o reboot -v

以及cluster.conf的內容。
《解決方案》

Rebooting machine @ IPMI:139.122.10.202...Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power off'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
Spawning: '/usr/bin/ipmitool -I lanplus -H 139.122.10.202 -U fence02 -P ericsson -v chassis power status'...
ipmilan: Power still on
Failed


CLUSTER文件內容:
# more cluster.conf
<?xml version="1.0" ?>
<cluster alias="gtc_test" config_version="10" name="gtc_test">
        <fence_daemon post_fail_delay="0" post_join_delay="15"/>
        <clusternodes>
                <clusternode name="fsommfe01_pri1" nodeid="1" votes="1">
                        <multicast addr="239.0.0.1" interface="eth2"/>
                        <fence>
                                <method name="1">
                                        <device lanplus="1" name="fence01"/>
                                </method>
                        </fence>
                </clusternode>
                <clusternode name="fsommfe02_pri1" nodeid="2" votes="1">
                        <multicast addr="239.0.0.1" interface="eth2"/>
                        <fence>
                                <method name="1">
                                        <device lanplus="1" name="fence02"/>
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman expected_votes="1" two_node="1">
                <multicast addr="239.0.0.1"/>
        </cman>
        <fencedevices>
                <fencedevice agent="fence_ipmilan" auth="password" ipaddr="139.122.10.201" login="fence01" name="fence01" passwd="er
icsson"/>
                <fencedevice agent="fence_ipmilan" auth="password" ipaddr="139.122.10.202" login="fence02" name="fence02" passwd="er
icsson"/>
        </fencedevices>
        <rm>
                <failoverdomains/>
                <resources/>
        </rm>
</cluster>
是不是BUG呢?

[火星人 ] FENCE_IPMILAN執行REBOOT操作,機器確下電已經有1240次圍觀

http://coctec.com/docs/service/show-post-5494.html