1、x2CTyunOS工具基本布置图
x2CTyunOS工具升级有自己搭建的本地YUM源,包括x2源以及CentOS7.x源,以及server端和被升级节点组成。于此同时x2CTyunOS工具默认支持CentOS7.2,CentOS7.4,CentOS7.6,CentOS7.9四种操作系统,其他的需要单独安装数据库安装文件。
2、升级详细过程
x2CTyunOS工具的升级有四个阶段:连通性测试,升级前检查,升级以及环境清理
2.1、连通性测试
- 复制web上的CTyunOS的源migrate-xxx.repo到被升级节点
- 检查名字和版本 uname -m ,uname -r
- 检查空间 df |grep dev
- 检查migrate-xxx.repo的连通性 yum clean all && yum makecache
- 检查CentOS的源连通性:yum clean all && yum makecache
- 检查目录是否存在:/usr,/run,/boot,/var,/etc
- 删除migrate-xxx.repo
2.2 升级前检查
- 复制x2openEuler-client-2.0.0-2.noarch.rpm 到被升级节点
- 安装x2openEuler-client-2.0.0-2.noarch.rpm
- 收集软件信息:x2openEuler-client upgrade-check-collect
- 收集硬件信息:x2openEuler-client hardware-collect
- 建立目录 /opt/x2openEuler-client
2.3 升级
- 建立目录/opt/x2openEuler-upgrade
- 复制文件到被升级节点:x2openEuler-upgrade-1.1.3-33.gp.06.x86_64.rpm
- 安装文件:sh /opt/x2openEuler-upgrade/centos2openEuler.sh install /opt/x2openEuler-upgrade/x2openEuler-upgrade-1.1.3-33.gp.06.x86_64.rpm
- 升级:sh /opt/x2openEuler-upgrade/centos2openEuler.sh upgrade /opt/x2openEuler-upgrade/upgrade/upgrade-pkg.json /opt/x2openEuler-upgrade/upgrade/migrate-ctyun.repo /usr,/run,/boot,/var,/etc empty_dir /.osbak empty_value
2.4 清理
sh /opt/x2openEuler-upgrade/centos2openEuler.sh reboot