[Pacemaker] Stonith external/vmware

Denny Schierz linuxmail at 4lin.net
Thu Nov 15 14:52:00 UTC 2012


hi,

Am 13.11.2012 um 12:45 schrieb Dejan Muhamedagic <dejanmm at fastmail.fm>:

>> stonith -t external/vmware -p esxserver -T reset sqlnode02

it takes more time, than I thought ... 

primitive sqlnode-stonith stonith:external/vmware \
        op monitor interval="1s" timeout="5s" \
        params device_host="esxserver" host_map="sqlnode-02"

I can't get it working. Neverless what I submitting:

 params device_host="esxserver" host_map="SQLNODE-02=sqlnode-02"

 params device_host="esxserver" host_map="SQLNODE-02=SQLNODE-02"

 params device_host="esxserver" host_map="SQLNODE-02=/vmfs/disk/sqlnode-02/sqlnode-02.vmx"

 params device_host="esxserver" host_map="SQLNODE-02=/vmfs/disk/sqlnode-02"

 params device_host="esxserver" host_map="SQLNODE-02"

 params device_host="esxserver" host_map="host01=/vmfs/volumes/4c528367-19e3e2c9-9871-0021288ea4ad/sqlnode-02/sqlnode-02.vmx"

 params device_host="esxserver" host_map="SQLNODE-02=/vmfs/volumes/4c528367-19e3e2c9-9871-0021288ea4ad/sqlnode-02/sqlnode-02.vmx"

 params device_host="esxserver" host_map="SQLNODE-02=sqlnode-02=/vmfs/volumes/4c528367-19e3e2c9-9871-0021288ea4ad/sqlnode-02/sqlnode-02.vmx"

[...]

I always get:

 st_output="Performing: stonith -t external/vmware -T reset SQLNODE-02#012vim.fault.NotFound: No virtual machine found with name: #012success: SQLNODE-02 0#012" src="SQLNODE-01" seq="492" state="2" />

If I look to the processes on the ESX server, I see:

13717 ?        Ss     0:00 python /usr/bin/vmware-cmd  getstate
14359 pts/0    R+     0:00 grep cmd
13717 ?        Ss     0:00 python /usr/bin/vmware-cmd  getstate
[...]

13717 ?        Ss     0:00 python /usr/bin/vmware-cmd  "" getstate
14359 pts/0    R+     0:00 grep cmd
13717 ?        Ss     0:00 python /usr/bin/vmware-cmd  "" getstate

and also something like:

 python /usr/bin/vmware-cmd  "" reset hard
[...]

so, the vmx/host disappears 

but, it works on the shell:

stonith -t external/vmware -p esxserver -T reset sqlnode-02

and the process on the ESX:

20818 pts/0    R+     0:00 grep cmd
19782 ?        Ss     0:00 python /usr/bin/vmware-cmd /vmfs/volumes/4c528367-19e3e2c9-9871-0021288ea4ad/sqlnode-02/sqlnode-02.vmx reset hard
20820 pts/0    R+     0:00 grep cmd
19782 ?        Ss     0:00 python /usr/bin/vmware-cmd /vmfs/volumes/4c528367-19e3e2c9-9871-0021288ea4ad/sqlnode-02/sqlnode-02.vmx reset hard
20822 pts/0    R+     0:00 grep cmd
19782 ?        Ss     0:00 python /usr/bin/vmware-cmd /vmfs/volumes/4c528367-19e3e2c9-9871-0021288ea4ad/sqlnode-02/sqlnode-02.vmx reset hard
[...]

is that a bug, or missed I the correct line?

cu denny



More information about the Pacemaker mailing list