现象描述:
SUSE10SP2系统下部署VCS双机,开局时正式license还未申请下来,先使用临时license进行双机搭建。
正式license申请下来进行替换报错: Duplicate License key detected。
处理步骤:
1,执行vxlicrep命令查看license 是否替换成功:
若“License Type”显示为“PERMANENT”则表示License是正式的永久的,说明加载成功。 若“License Type”显示为“DEMO”则表示License是临时的,加载失败;
执行命令后显示为demo,说明正式license加载失败,临时license仍然存在未删除而导致新license替换失败;
License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
Product Name = VERITAS Cluster Server
Key = Invalid, Key EXPIRED -435 days ago
License Type = DEMO
OEM ID = 4095
Demo End Date = Mon JULY 4 00:00:00 2011
2. 备份License相关目录。
# cd /etc/vx/licenses
# tar cvf db.tar db
# tar cvf lic.tar lic
3. 进入license目录cd /etc/vx/licenses/lic,该目录下存放license 文件,将*.vxlic文件删除
rm /etc/vx/licenses/lic/*.vxlic
3.再次输入正式license:
# vxlicinst
显示如下信息:
VERITAS License Manager vxlicinst utility version 3.02.010
Copyright (C) 1996-2005 VERITAS Software Corp. All Rights reserved.
Enter your license key : XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
在Enter your license key后输入正式License即可。
4.查看正式license是否已经起效
#/vxlicrep
VERITAS License Manager vxlicrep utility version 3.02.010
Copyright (C) 1996-2005 VERITAS Software Corp. All Rights reserved.
Creating a report on all VERITAS products installed on this system
-----------------***********************-----------------
License Key = PZZE-YN6E-7VPI-JPP3-4UFJ-7P
Product Name = VERITAS Cluster Server
Serial Number = 32196
License Type = PERMANENT
OEM ID = 2006
5,重启VCS双机。
# hastart