zstack 版本升级

作者: bboysoul | 来源:发表于2018-03-26 14:35 被阅读16次

    概述

    今天看了下官网的zstack的安装镜像,发现2018-3-24有一次发布,因为本地是测试环境,而且我没有尝试过升级zstack,所以就打算升级一下zstack

    升级前要知道的事情

    首先官网上说zstack是支持两种升级方式,一种是增量升级一种是离线升级,增量方便,虽然不知道两种方式区别是什么,但是我选择了增量升级,可能就是软件源一个用线上,一个就是直接用本地的iso了吧,而且在升级前要对数据库做一个备份。还要知道一点的是,你只需要升级你的管理节点就好了,计算节点会自动升级的

    备份数据库

    ssh进管理节点输入下面命令dump出数据库
    zstack-ctl dump_mysql

    [root@MiWiFi-R1CM-srv ~]# zstack-ctl dump_mysql 
    Backup mysql successfully! You can check the file at /var/lib/zstack/mysql-backup/zstack-backup-db-2018-03-26_14-22-38.gz
    

    升级

    接着wget下安装包
    wget http://cdn.zstack.io/product_downloads/zstack-enterprise/enterprise2.3/ZStack-installer-2.3.0.495.bin
    下载完成输入下面命令直接升级
    bash ZStack-installer-2.3.0.495.bin -u
    记住全程要可以连上互联网,不然使用离线升级,整个升级过程很流畅,速度也挺快,可能是因为版本之间变化不大的缘故吧

    [root@MiWiFi-R1CM-srv ~]# bash ZStack-installer-2.3.0.495.bin -u
     _________ _____  _    ____ _  __
    |__  / ___|_   _|/ \  / ___| |/ /
      / /\___ \ | | / _ \| |   | ' / 
     / /_ ___) || |/ ___ \ |___| . \ 
    /____|____/ |_/_/   \_\____|_|\_\
                                     
             ____    _____  ___  _  _   ___  ____  
    __   __ |___ \  |___ / / _ \| || | / _ \| ___| 
    \ \ / /   __) |   |_ \| | | | || || (_) |___ \ 
     \ V /   / __/ _ ___) | |_| |__   _\__, |___) |
      \_/   |_____(_)____(_)___(_) |_|   /_/|____/ 
                                                   
     ___ _   _ ____ _____  _    _     _        _  _____ ___ ___  _   _ 
    |_ _| \ | / ___|_   _|/ \  | |   | |      / \|_   _|_ _/ _ \| \ | |
     | ||  \| \___ \ | | / _ \ | |   | |     / _ \ | |  | | | | |  \| |
     | || |\  |___) || |/ ___ \| |___| |___ / ___ \| |  | | |_| | |\  |
    |___|_| \_|____/ |_/_/   \_\_____|_____/_/   \_\_| |___\___/|_| \_|
                                                                       
    
     1. Check Repo Version:
        Check local repo version: ... PASS
    
     2. Check System:
        Pre-Checking: ... PASS
        Check System: ... PASS
        Update Package Repository: ... PASS
    
     3. Get ZStack:
        Download ZStack package: ... PASS
        Unpack ZStack package: ... PASS
    
     4. Upgrade ZStack:
        Upgrade apache-tomcat: ... PASS
        Upgrade zstack-ctl: ... PASS
        Install General Libraries (takes a couple of minutes): ... PASS
        Stop ZStack: ... PASS
        Upgrade ZStack: ... PASS
        Add cronjob to clean logs: ... PASS
        Enable ZStack bootstrap service: ... PASS
        Enable NTP: ... PASS
        Config zstack.properties: ... PASS
        Append iptables: ... PASS
        Install ZStack Web UI (takes a couple of minutes): ... PASS
        Start ZStack management node (takes a couple of minutes): ... PASS
        Start ZStack Web UI: ... PASS
    
    ______________________________________________________________________________________________________________________________________________________________________________________________
    ZStack in /usr/local/zstack has been successfully upgraded to version: 2.3.0.495
    
     Management node has been started up again. You can use `zstack-ctl status` to check its status.
    
     zstack-ui has been upgraded.
    
     zstack-ui has been started up again.
    
     Your old zstack was saved in /usr/local/zstack/upgrade/2018-03-26-14-28-22
    ______________________________________________________________________________________________________________________________________________________________________________________________
    

    而且升级的时候我还开着一些虚拟机,也没有出现一些异常

    欢迎关注Bboysoul的博客www.bboysoul.com
    Have Fun

    相关文章

      网友评论

        本文标题:zstack 版本升级

        本文链接:https://www.haomeiwen.com/subject/mvkrcftx.html