术语解释
        临时 license :或者称为评测用 license ,英文称为 evaluation key 。每个临时 license 规定了在某个时间之前必须输入,输入后一般 60 天有效。
        临时扩展 license :英文称为 extension key 。当临时 license 失效后,可以使用 extension key 延长 30 天的有效期。
        永久 license :经过正式商务流程和 license 申请流程后,取得的永久 license 没有使用时间的限制。
 
前言
        这里主要讲述如何在服务器上处理 license 的方法,适用该方法的产品包括在 Unix Linux 平台上的 Storage Foundation, Volume Replicator Cluster Server
 
       根据目前在使用 license 的情况,和将要使用的 license 的不同,有以下几种情况:
1、 临时 license 失效后延长使用时间
2、 用新的临时 license 替换已经失效的临时 license
3、 用永久 license 替换临时 license
 
1、 临时 license 延长使用时间
       临时 license 一般是 60 天内有效。 当临时 license 失效后,可以使用 extension key 延长 30 天的有效期。
1) vxlicrep 命令检查当前 license 情况,如果已经过期,按下一步;
2) vxlicinst 命令输入 extension key
3) 再用 vxlicrep 检查;
4 如果使用 Volume Manager 的话 # vxdctl enable 命令 重新启动配置进程
       5 如果使用 VCS 的话 ,重新启动 VCS ,按以下步骤:
   A)在某一台机器上保证配置文件是关闭的  # haconf –dump –makero  
   B)在某一台机器上关闭整个集群  # hastop –all –force
             C)在两台机器上分别启动 VCS   # hastart
 
2、 用新的临时 license 替换已经失效的临时 license
临时 license 经过 extension key 延长一次使用时间后,就无法再次延长。如果实际情况需要继续使用临时 license 的话,首先找一个在可用时间内的新的临时 license ,按以下处理:
1 )进入 /etc/vx/license 目录;
2 # tar cvf db.tar db 把该目录备份;
3 # tar cvf lic.tar lic 把该目录备份;
4 # cd /etc/vx/license/lic; rm *
5 vxlicrep 检查 发现没有有效 license
6 vxlicinst 重新输入 license
7 vxlicrep 检查
8 如果使用 Volume Manager 的话 vxdctl enable 重新启动配置进程
       9 如果使用 VCS 的话 ,重新启动 VCS ,按以下步骤:
   A)在某一台机器上保证集群配置文件是关闭的  # haconf –dump –makero  
   B)在某一台机器上关闭整个集群  # hastop –all –force
             C)在两台机器上分别启动 VCS   # hastart
3、 用永久 license 替换临时 license
       如果目前在使用当临时 license ,按以下方法换成永久 license
  注:永久 license 的使用期限将会自动覆盖临时 license ,不需要手工将临时 license 删   除。如果希望在输入永久 license 前先手工将临时 license 删除的话,请参考以上第2种情况的1到4步。
       1 vxlicrep 命令检查当前 license 情况;
2 vxlicinst 命令输入永久 license
       3 )再用 vxlicrep 检查;
4 )如果使用 Volume Manager 的话,用 # vxdctl enable 命令重新启动配置进程;
       5 )如果使用 VCS 的话, 重新启动 VCS ,按以下步骤:
   A)在某一台机器上保证集群配置文件是关闭的  # haconf –dump –makero  
   B)在某一台机器上关闭整个集群  # hastop –all –force
             C)在两台机器上分别启动 VCS   # hastart

 

注:在用永久license替换临时license时,最好先删掉临时license