开发者
我要评分
获取效率
正确性
完整性
易理解
在线提单
论坛求助

升级

本章节以鲲鹏平台openEuler 20.03 LTS SP1(以下简称openEuler)环境下升级鲲鹏DevKit全量安装包为例,其它硬件平台及操作系统环境下升级方法相同。

  • 支持23.0.0升级到23.0.T30版本。
  • 支持23.0.0升级到24.0.RC1版本。
  • 支持24.0.RC1升级到24.0.RC2版本。
  • 支持24.0.RC2升级到24.0.RC3版本。
  • 支持24.0.RC3升级到24.0.0版本。
  • 支持24.0.0升级到25.0.0版本。
  • 支持25.0.0升级到25.1.RC1版本。
  • 支持25.1.RC1升级到25.1.0版本。
  • 支持25.1.RC1、25.1.0升级到25.2.RC1版本。
  • 支持25.3.0升级到26.0.RC1版本。

不支持跨版本升级。

前提条件

  • 已将所需升级的鲲鹏DevKit软件包下载到本地,并确认软件包与服务器硬件平台一致。
  • 获取软件包后,需要校验软件包,确保与网站上的原始软件包一致。
  • 升级前请确认鲲鹏DevKit可以正常使用,且umask设置为0022。
  • 工具默认安装在“/opt/DevKit”目录,升级前请确认安装空间至少保留15GB。
  • 不支持在分析任务执行过程中升级,请确保升级时没有任务在运行。
  • 升级过程中请勿执行Ctrl+Z、Ctrl+C和重启操作系统。
  • 如果出现端口冲突,在系统端口足够情况下,会自动分配可用的端口。

升级操作

  1. 使用升级前安装DevKit使用的用户SSH远程登录工具,进入Linux操作系统命令行界面。
  2. 鲲鹏DevKit软件包拷贝到服务器自定义目录下,执行以下命令进行升级。
    1
    2
    cd /opt/DevKit/tools
    ./upgrade.sh /home/DevKit-All-x.x.x-Linux-kunpeng.tar.gz
    

    其中,“/opt/DevKit/tools”为升级前版本安装路径;“/home”为用户上传待升级软件包的自定义目录,且目录权限满足755。

  3. 升级鲲鹏DevKit过程。
    回显信息如下:
      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
    100
    101
    102
    103
    104
    105
    106
    107
    108
      Start upgrading, please wait ...
      Decompressing files ...
      Decompressing files success.
      Start upgrading Kunpeng DevKit, please wait ...
      Do not press Ctrl+Z or Ctrl+C or restart the system during the upgrade.
      The system uses yum to manage packages.
      Start upgrading the DevKit Framework, please wait ...
      The system uses yum to manage packages.
      Entry parameter mode
      Selected install_path: /opt
    
    
    Checking install path permission...
      The permission check of the installation path is successful.
    
    
    Checking install path space...
      The space check of the installation path is successful.
      The access mode with the user name and password will be used for the installation.
    ...
    ...
    ...
    Please enter the installation port (default: 8086):
      Selected Nginx port: 8086
      Selected HTTP server port: 8002
      Selected RPC cluster server port: 50051
      Selected the internal port of the tool: 7996
    
    
    
    
    The following parameters will be used for deployment:
      ++++++++++++++++++++++++++++++++++++++++++++++++
      OS_TYPE                       : OpenEulerOS
      TOOL_VERSION                  : 25.3.0
      INSTALL_TOOL                  : porting,affinity,devtools,debugger,sys_perf,java_perf,sys_diagnosis
      INSTALL_PATH                  : /opt
      NGINX_IP                      : xx.xx.xx.xx
      NGINX_PORT                    : 8086
      PLUGIN_GUNICORN_PORT          : 7996
      GRPC_SERVER_IP                : xx.xx.xx.xx
      GRPC_LISTEN_PORT              : 50051
      HTTP_LISTEN_PORT              : 8002
      ++++++++++++++++++++++++++++++++++++++++++++++++
    
    
    DevKit Configuration Generation
    
    
    Decompressing files ...
      Decompressing files success
    
    
    Install python environment
      Install python3
      Install python_venv
    
    
    Config libffi path
      The libffi path is configured successfully.
    
    
    Configure venv packages path
      Configure venv packages path success
    no crontab for root
    
    
    Install third-party tools.
      Configure nginx... please wait
      Make nginx... please wait
      Make install nginx... please wait
      Install nginx success
    
    
    It may take a few minutes to generate the certificate. Please wait...
      Encrypting passphase success!
      Generate the certificate success
      Certificate generated successfully. You can import the root certificate to the browser to mask security alarms when you access the tool. The root certificate is stored in opt/DevKit/rsa/ca.crt.
    ...
    ...
    ...
      Applying diagnostic_importexporttasks.0001_initial... OK
      Applying diagnostic_nodemanager.0001_initial... OK
      Applying diagnostic_sysconfig.0001_initial... OK
      Applying diagnostic_taskmanager.0001_initial... OK
      Applying storageio_diagnostic_task.0001_initial... OK
      Run sys_diagnosis install script
      Check disk space
      Check install path disk space Success
      Install iperf3 Success
      Install trace_net_flow Success
      Load database success
      Copy doctor files to devkit success
      Generate plugins agent package success
      Run sys_diagnosis install script success
      install sys_diagnosis success
      Generate agent package success
      The porting plugin is successfully installed in the /opt/DevKit/devkitplugins/porting directory.
      The affinity plugin is successfully installed in the /opt/DevKit/devkitplugins/affinity directory.
      The devtools plugin is successfully installed in the /opt/DevKit/devkitplugins/devtools directory.
      The debugger plugin is successfully installed in the /opt/DevKit/devkitplugins/debugger directory.
      The sys_perf plugin is successfully installed in the /opt/DevKit/devkitplugins/sys_perf directory.
      The java_perf plugin is successfully installed in the /opt/DevKit/devkitplugins/java_perf directory.
      The sys_diagnosis plugin is successfully installed in the /opt/DevKit/devkitplugins/sys_diagnosis directory.
      To ensure that the DevKit runs properly, you need to grant the OS permissions of the user account used to install the DevKit to the devadmin user.
      The Kunpeng DevKit Advisor is successfully installed in the /opt/DevKit directory.
      The DevKit Web console is running. Log in at https://xx.xx.xx.xx:8086 and set a password to ensure your account security.
      If xx.xx.xx.xx:8086 has mapping IP, please use the mapping IP.
    

    升级失败的情况下,升级脚本会自动将工具回退到升级前的版本。