gbase8a中的license使用
license使用
一、老版license使用
1、解压集群安装包,进行指纹采集。需注意用root用户采集的指纹,导入license需用root导入;gbase用户采集的指纹,导入需用gbase用户
$ ./gethostsid -n192.168.29.90,192.168.29.91,192.168.29.92,192.168.29.93 -f test.txt -uroot -p111111
2. 申请license
3、安装集群时同时导入license文件
./gcinstall.py --silent=demo.options --license_file=/opt/gbase.lic
4、先安装集群后导入license
./gcinstall.py --silent=demo.options
$ ./License -n192.168.29.90,192.168.29.91,192.168.29.92,192.168.29.93 -ugbase -pgbase -f /opt/packages/license/license_generator-86219/gbase.lic
5、检查license
$ ./chkLicense -n192.168.29.90,192.168.29.91,192.168.29.92,192.168.29.93 -ugbase -pgbase
6、节点替换
./replace.py --host=192.168.29.92 --rootPwd=111111 --license_file=/opt/packages/license/license_generator-86219/gbase.lic --overwrite
7、集群扩容
./gcinstall.py --silent=demo.options --license_file=/opt/packages/license/license_generator-86219/gbase.lic
注意,上述操作中ip列表可以使用文件替代,如获取指纹可以写成
$ ./gethostsid -host=demo.hosts -f test.txt -uroot -p111111
[root@gc10383 gcinstall]# cat demo.hosts
Hosts = 192.168.29.90,192.168.29.91,192.168.29.92,192.168.29.93
二、新版本license使用
1、解压集群安装包,进行指纹采集,执行之前需要配置demo.options,并且集群各个节点存在gbase用户,安装目录有gbase用户的读写、执行权限
./getesn.py --silent=demo.options
2、申请license
3、安装集群时同时导入license文件
./gcinstall.py --silent=demo.options --license_file=/opt/gbase.lic
4、先安装集群后导入license
./gcinstall.py --silent=demo.options
./License -n 10.10.4.3,10.10.4.29,10.10.3.74 -f /opt/license_generator_95327/gbase.lic -u gbase -p gbase
导入license后需重启各个节点gcware才能生效
* 注意,通过./importLicense 仅能导入当前节点的license。
5、扩容安装
./gcinstall.py --silent=demo.options --license_file=/opt/gbase.lic
6、节点替换
./replace.py --host=10.10.12.85 --type=coor --dbaUser=gbase --dbaUserPwd=gbase --generalDBUser=root --generalDBPwd= --overwrite --license_file=gbase.lic
7、检查license
*注意,license最终状态以登录到数据库中执行的 show license 命令返回结果为准
其他方法
./chkLicense.py --silent=demo.options
评论
热门帖子
- 12025-12-01浏览数:182764
- 22023-05-09浏览数:25062
- 42023-09-25浏览数:18526
- 52020-05-11浏览数:17529