一、提问
CloudSAN服务器测试lic过期后无可用新lic解决办法?
二、回答
1、以root用户登录CloudSAN服务器底层,在命令行执行如下命令(红色字体部分):
[root@ubs ~]# / ubs/mongodb/bin/mongo 127.0.0.1:27017/test <<EOF 2>/dev/null
use admin
db.auth("admin","Macro3");
use ClusterDB;
db.clusterLicense.drop();
EOF
MongoDB shell version v3.4.15-58-g7240c4719f
connecting to: mongodb://127.0.0.1:27017/test
MongoDB server version: 3.4.15-58-g7240c4719f
switched to db admin
1
switched to db ClusterDB
true
bye
2、重启ubs服务
[root@ubs ~]# service ubs restart
Begin to restart UBS service...
Using CATALINA_BASE: /ubs/tomcat
Using CATALINA_HOME: /ubs/tomcat
Using CATALINA_TMPDIR: /ubs/tomcat/temp
Using JRE_HOME: /usr/local/java/jre-14.0.1
Using CLASSPATH: /ubs/tomcat/bin/bootstrap.jar:/ubs/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Tomcat stop...
more tomcat pids.8061
kill 8061: No such process
Stopping tomcat: [ OK ]
Mongodb has been startup!
Starting mongodb: [ OK ]
Tomcat start...
Using CATALINA_BASE: /ubs/tomcat
Using CATALINA_HOME: /ubs/tomcat
Using CATALINA_TMPDIR: /ubs/tomcat/temp
Using JRE_HOME: /usr/local/java/jre-14.0.1
Using CLASSPATH: /ubs/tomcat/bin/bootstrap.jar:/ubs/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
Waitting for ubs web start...
[INFO]ubs_html_web start
[INFO]waiting 8005 ...
[INFO]tomcat listen 8005
/etc/profile: line 106: /usr/share/bash-completion/bash_completion: No such file or directory
Starting tomcat: [ OK ]
[root@ubs ~]#
3、重新在Web界面登录CloudSAN管理服务器,根据提示输入之前使用过的license.