VCenter服务无法启动
(2013-11-19 13:34:09)分类: VMware |
现象:VCenter5.1 服务无法启动
到log查看VPXD文件
2013-11-19T10:36:57.937+08:00 [04672 error 'vpxdvpxdMain']
[Vpxd::ServerApp::Init] Init failed: Unexpected exception
--> Backtrace:
--> backtrace[00] rip 0000000180100c98
--> backtrace[01] rip 0000000180101fae
--> backtrace[02] rip 000000018008aeab
--> backtrace[03] rip 0000000000584971
--> backtrace[04] rip 0000000000521298
--> backtrace[05] rip 00000000005216c9
--> backtrace[06] rip 0000000000490fae
--> backtrace[07] rip 000000014112bfb8
--> backtrace[08] rip 0000000140020078
--> backtrace[09] rip 000000014002016a
--> backtrace[10] rip 0000000140020279
--> backtrace[11] rip 0000000140020609
--> backtrace[12] rip 0000000140362903
--> backtrace[13] rip 0000000140b0e4b9
--> backtrace[14] rip 0000000140b0835c
--> backtrace[15] rip 0000000140d28a3b
--> backtrace[16] rip 000007ff7fed4dc6
--> backtrace[17] rip 0000000078d3b70a
--> backtrace[18] rip 0000000000000000
-->
2013-11-19T10:36:57.937+08:00 [04672 warning 'VpxProfiler']
ServerApp::Init [TotalTime] took 4250 ms
2013-11-19T10:36:57.937+08:00 [04672 error 'Default'] Failed to
intialize VMware VirtualCenter. Shutting down...
2013-11-19T10:36:57.937+08:00 [04672 info 'vpxdvpxdSupportManager']
Wrote uptime information
2013-11-19T10:37:05.687+08:00 [01572 warning 'VpxProfiler'
opID=SWI-22545730] VpxUtil_InvokeWithOpId [TotalTime] took 12000
ms
2013-11-19T10:37:17.687+08:00 [04636 warning 'VpxProfiler'
opID=SWI-b8822e55] VpxUtil_InvokeWithOpId [TotalTime] took 12000
ms
2013-11-19T10:37:29.687+08:00 [04904 warning 'VpxProfiler'
opID=SWI-73e8350a] VpxUtil_InvokeWithOpId [TotalTime] took 12000
ms
2013-11-19T10:37:41.687+08:00 [04464 warning 'VpxProfiler'
opID=SWI-83953f27] VpxUtil_InvokeWithOpId [TotalTime] took 12000
ms
2013-11-19T10:37:53.687+08:00 [01572 warning 'VpxProfiler'
opID=SWI-8441138f] VpxUtil_InvokeWithOpId [TotalTime] took 12000
ms
2013-11-19T10:37:54.187+08:00 [04672 info 'Default'] Forcing
shutdown of VMware VirtualCenter now
查看SSO log文件:
Caused by: java.sql.SQLException: ORA-28001: the password has expired
分析:
原因是账户密码已过期,数据库采用的是oracle 11g,新增加了账户安全性,密码有效期为180天,之前的oracle 9i/10g都没有这个问题,VCenter安装时vc数据库用户vpxadmin,另外SSO的数据库用户RSA_DBA和RSA_USER,总共三个账号。
查看数据库账户配置:
$sqlplus / as sysdba
select * from dba_profiles WHERE dba_profiles.profile='DEFAULT';
1、查看用户的proifle是哪个,一般是default:
sql>SELECT username,PROFILE FROM dba_users;
2、查看指定概要文件(如default)的密码有效期设置:
sql>SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
3、可以将密码有效期由默认的180天修改成“无限制”:
sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
4、解除账户锁定:
sql> alter
user
修改完成后虽然是立即生效,但是VC不一定能启动,我的是这样,可能跟VC的某些服务有关,重启系统就好了。