vCenter Client突然不能访问
因为是Appliance,所以先访问5480端口
重启服务并不成功
一直处于Wating for vpxd to initalize状态,于是重启服务器
结果失败,再手工重启一下,仍然不成功
查看日志,/var/log/vmare/vpx/vpxd.log,内容如下:
Section for VMware VirtualCenter, pid=9708, version=5.1.0, build=880146, option=Release—— In-memory logs start ——–mem> 2014-08-28T00:05:14.838+08:00 [7F463CC77720 verbose ‘vpxdvpxdSignal’] Signal handler for signal 1 is installedmem> 2014-08-28T00:05:14.838+08:00 [7F463CC77720 verbose ‘vpxdvpxdSignal’] Signal handler for signal 2 is installedmem> 2014-08-28T00:05:14.838+08:00 [7F463CC77720 verbose ‘vpxdvpxdSignal’] Signal handler for signal 15 is installedmem> 2014-08-28T00:05:14.838+08:00 [7F463CC77720 verbose ‘vpxdvpxdSignal’] Signal handler for signal 10 is installedmem> 2014-08-28T00:05:14.838+08:00 [7F463CC77720 info ‘Hooks’] Hooks Initialized—— In-memory logs end ——–2014-08-28T00:05:14.852+08:00 [7F463CC77720 info ‘Default’] Logging uses fast path: true2014-08-28T00:05:14.852+08:00 [7F463CC77720 info ‘Default’] Handling bora/lib logs with VmaCore facilities2014-08-28T00:05:14.852+08:00 [7F463CC77720 info ‘Default’] Initialized channel manager2014-08-28T00:05:14.864+08:00 [7F463CC77720 info ‘Default’] Current working directory: /storage/log/vmware/vpx2014-08-28T00:05:14.868+08:00 [7F463CC77720 info ‘Default’] Log path: /var/log/vmware/vpx2014-08-28T00:05:14.869+08:00 [7F463CC77720 info ‘Default’] Initializing SSL2014-08-28T00:05:14.871+08:00 [7F463CC77720 info ‘Default’] Vmacore::InitSSL: handshakeTimeoutUs = 1200000002014-08-28T00:05:14.873+08:00 [7F463CC77720 info ‘vpxdvpxdDaemon’] Changed working directory to /var/log/vmware/vpx2014-08-28T00:05:14.886+08:00 [7F463CC77720 info ‘Default’] Starting VMware VirtualCenter 5.1.0 build-8801462014-08-28T00:05:14.886+08:00 [7F463CC77720 info ‘Default’] Log directory: /var/log/vmware/vpx.2014-08-28T00:05:14.886+08:00 [7F463CC77720 info ‘vpxdvpxdMain’] Account name: root2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 640 max LROs2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 12 reserved internal LROs2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 12 reserved blocker LROs2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 12 reserved short LROs2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 8 reserved long LROs2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 600-second completed task lifetime2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 60-second minimum completed task lifetime2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 200 maximum completed tasks2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘commonvpxLro’] [VpxLRO] 600-second unregistered task lifetime2014-08-28T00:05:14.887+08:00 [7F463CC77720 info ‘ThreadPool’] [SetConfig] Thread info: IoMin: 2, IoMax: 1990, TaskMin: 59, TaskMax: 1990, Max Thread: 3980, Keepalive: 61, thread kill: 600, max fds: -12014-08-28T00:05:14.888+08:00 [7F463CC77720 info ‘utilvpxdVdb’] Registry Item DB 5 value is ”2014-08-28T00:05:14.888+08:00 [7F463CC77720 info ‘utilvpxdVdb’] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username VPXADMIN
看起来是数据库的问题了,我的数据库是Oracle,于是转到数据库服务器,Reboot一下,都连不上了。登录到Oracle服务器上,先切换到oracle用户
[oracle@vcdb ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 – Production on 28-AUG-2014 00:43:52
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /usr/local/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait…
TNSLSNR for Linux: Version 11.2.0.1.0 – Production
System parameter file is /usr/local/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /usr/local/oracle/diag/tnslsnr/vcdb/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 – Production
Start Date 28-AUG-2014 00:43:54
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /usr/local/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /usr/local/oracle/diag/tnslsnr/vcdb/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@vcdb ~]$
$emctl start dbconsole
成功后恢复正常。