ESX server无故挂掉,开机进入硬盘配置发现某块硬盘失效,重新插拔了一下可以找到并能够启动,却停到了一步vsd-mount !!
/bin/sh: can't access tty; job control turned off
搜了一下,说是找不到 esxconsole.vmdk 文件,解决方法如下:
一 找到service console的vmdk- # grep "/boot/cosvmdk" /etc/vmware/esx.conf
- The output is similar to:
- /boot/cosvmdk = "/vmfs/volumes///esxconsole.vmdk"
- For example:
- /boot/cosvmdk = "/vmfs/volumes/4a14d968-88bf7161-700f-00145ef48f76/esxconsole-4a14d906-2f96-7956-7284-00145ef48f74/esxconsole.vmdk"
二 查看/目录下面的vmdk文件- # ls -al /vmfs/volumes/<uuid>/<dir>/*.vmdk
- total 7906560
- drwxr-xr-x 1 root root 840 May 21 00:45 .
- drwxr-xr-t 1 root root 2660 Oct 21 09:10 ..
- -rw------- 1 root root 8095006720 Oct 26 15:37 esxconsole-flat.vmdk
- -rw------- 1 root root 475 May 21 00:32 esxconsole.vmdk <<这个文件不见了>>
- drwxr-xr-x 1 root root 980 May 21 00:45 logs
三 重建esxconsole.vmdk文件- # vmkfstools -c 4294967296 -a lsilogic -d thin temp.vmdk
- # rm temp-flat.vmdk
- # mv temp.vmdk esxconsole.vmdk
- # vi esxconsole.vmdk
- 更改文件中的这一行
- RW 15572992 VMFS "esxconsole-flat.vmdk"
四 重启成功详细信息参考:
阅读(3447) | 评论(0) | 转发(0) |