[Pacemaker] Stonith external/vmware

Dejan Muhamedagic dejanmm at fastmail.fm
Thu Nov 15 16:02:11 UTC 2012


Hi,

On Thu, Nov 15, 2012 at 03:52:00PM +0100, Denny Schierz wrote:
> 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"

Hmm, perhaps another case of this bug:

http://marc.info/?l=linux-ha-dev&m=135298603602508&w=2

Can you fix that and then try again. Please report if it worked
or not.

Otherwise, sorry, I never used the external/vmware thing. Did
you try to search the linux-ha and linux-ha-dev ML? Would
external/libvirt also work with vmware?

Thanks,

Dejan

>  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
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list