在Vmware server上安装Clusterware时,一个节点总在安装中途无征兆自动断电关闭。这真是奇怪了,是什么原因导致了这个诡异的Vmware虚拟机自动关机故障呢?
为了解决这个Vmware虚拟机自动关机故障,笔者检查了vmware server的日志文件/var/log/vmware/vmware-serverd.log,里面记录了这样一段信息。
Aug 29 12:48:55: app| VmsdRegister: Config file has changed: /opt/VmwareMachine/rac02/rac02.vmx
Aug 29 12:54:17: app| OvlHostStartIo: errno 104
Aug 29 12:54:17: app| vmdbPipe_Streams: Couldn't read
Aug 29 12:54:17: app| VM suddenly changed state: poweredOff.
Aug 29 12:54:17: app| Removing from running vm list: /opt/VmwareMachine/rac02/rac02.vmx
Aug 29 12:54:17: app| VMServerd IPC closed the connection with thread /opt/VmwareMachine/rac02/rac02.vmx (0x830224c)
Aug 29 12:54:17: app| Lost connection to /opt/VmwareMachine/rac02/rac02.vmx (/opt/VmwareMachine/rac02/rac02.vmx) unexpectedly.
Aug 29 12:54:17: app| VM suddenly changed state: poweredOff.
Aug 29 12:54:17: app| VM suddenly changed state: poweredOff.
Aug 29 12:54:17: app| VM suddenly changed state: poweredOff.
经过对日志的分析,笔者判断这样的Vmware虚拟机自动关机故障通常由2种状况引起:
1、虚拟机不能正确定位及使用swap文件
2、虚拟机没有正确注册到Vmware server中
由于Vmware虚拟机自动关机故障节点是由另一节点复制出的,所以猜测可能是注册上的问题,对其重新注册
#vmware-cmd -s unregister /path-to-.vmx-file
#vmware-cmd -s register /path-to-.vmx-file
至此,这次的Vmware虚拟机自动关机故障得到了解决。
【编辑推荐】