Tuesday, September 8, 2009
Monday, September 7, 2009
Implementing vCenter4.0 in Clustering Services
http://viops.vmware.com/home/docs/DOC-1541
Friday, September 4, 2009
VM gets hung or performance is very slow
To prevent multiple access to running VM’s and take ownership of the VM, the ESX host establishes a lock on the VM files. Sometimes the lock is not released by the ESX host after the VM is shutdown or powered off and therefore can cause issue with powering on the VM and also sometimes causes performance issues with the VM and the VM would get hung.
Some of the VM files locked by the ESX host are:
vmware.log
You may also face issues like:
· VM does not power- on
· VM gets hung or performance is very slow
Below are the steps to I followed to resolve the issue. Here the problematic VM is ‘sihai_test’
ssh to the ESX server on which the VM is hosted
Get the following information
1) get world ID
# vm-support -x
VMware ESX Server Support Script 1.29
Available worlds to debug:
vmid=1197 dev-jonima
vmid=1214 qa-jonima2
vmid=1226 qa-fix-monitor
vmid=1254 dev-sihai
vmid=1261 dev-genghis1
2) get parent ID
# less -S /proc/vmware/vm/1254/cpu/status
scroll and locate parent ID (under group)
3) Find path of vmx files
# vmware-cmd –l
/vmfs/volumes/6f7d5a9b-06fb5da8/qa-jonima2/qa-jonima2.vmx
/vmfs/volumes/6f7d5a9b-06fb5da8/dev-jonima/dev-jonima.vmx
/vmfs/volumes/e697b65b-132e3f77/sihai_test/sihai_test.vmx
/vmfs/volumes/6f7d5a9b-06fb5da8/demo-rfq/demo-rfq.vmx
/vmfs/volumes/6f7d5a9b-06fb5da8/dev-shahbaz/dev-shahbaz.vmx
/vmfs/volumes/6f7d5a9b-06fb5da8/qa-fix-monitor/qa-fix-monitor.vmx
4) remove lock files and rename *vswp file
# cd /vmfs/volumes/e697b65b-132e3f77/sihai_test/
# ls -latr
# rm .lck-*
# mv *.vswp to anything
5) kill parent process
# /usr/lib/vmware/bin/vmkload_app -k ####
or
# /usr/lib/vmware/bin/vmkload_app -k 9 ####
6) kill remaining processes associated with vm
# ps -auxwww | grep sihai
# kill 11934
7) restart vmware management
# service mgmt-vmware restart
8) power-on VM