Specifications
<vm_id>
/opt/LifeKeeper/config/stonith.conf
# LifeKeeper STONITH configuration
#
# Each system in the cluster is listed below. To enable STONITH for a
# given system,
# remove the '#' on that line and insert the STONITH command line to power
off
# that system.
# Example1: ipmi command
# node-1 ipmitool -I lanplus -H 10.0.0.1 -U root -P secret power off
# Example2: vCLI-esxcli command
# node-2 esxcli --server=10.0.0.1 --username=root --password=secret vms vm
kill --type='hard' --world-id=1234567
# Example3: vCLI-vmware_cmd command
# node-3 vmware-cmd -H 10.0.0.1 -U root -P secret <vm_id>ξstop hard
minute-maid ipmitool -I lanplus -H 192.168.0.1 -U root -P secret power off
kool-aid ipmitool -I lanplus -H 192.168.0.2 -U root -P secret power off
vm1 esxcli --server=10.0.0.1 --username=root --password=secret vms vm kill
--type='hard' --world-id=1234567
vm2 vmware-cmd -H 10.0.0.1 -U root -P secret <vm_id> stop hard
<vm_id>
vSphere CLI commands run on top of vSphere SDK for Perl. <vm_id>ξis used as an identifier of the
VM. This variable should point to the VM's configuration file for the VM being configured.
Toξfind the configuration file path:
1. Type the following command:
vmware-cmd -H <vmware host> -l
2. This will return a list of VMware hosts.
Example output from vmware-cmd -l with three vms listed:
/vmfs/volumes/4e08c1b9-d741c09c-1d3e-0019b9cb28be/lampserver/lampserver.vmx
/vmfs/volumes/4e1e1386-0b862fae-a859-0019b9cb28bc/oracle10/oracle.vmx
/vmfs/volumes/4e08c1b9-d741c09c-1d3e-
0019b9cb28be/lampserver02/lampserver02.vmx
Find the VM being configured in the resulting list.
3.
Paste the path name into the <vm_id> variable. The example above would then become:
SteelEye Protection Suite for Linux117