在当前版本中,只能使用 NSX CLI 升级 CSM

前提条件

  • 要查找应遵循的正确 CSM 升级顺序,请参见升级 NSX Cloud 组件
  • 您必须从 NSX Cloud 主升级包 (Main Upgrade Bundle, MUB) 中提取文件 VMware-NSX-unified-appliance-<version>.nub 并将其托管在可从 CSM 访问的 FTP 服务器上。

过程

  1. 使用 CSM admin 凭据登录到 NSX CLI:
    $ssh <csm-admin>@<NSX-CSM-IP>
     
    然后运行以下 NSX CLI 命令:
    nsxcsm> copy url scp://<username>@<ftp-server-ip>/<path-to-file>/VMware-NSX-unified-appliance-<version>.nub
  2. 提取并验证文件 VMware-NSX-unified-appliance-<version>.nub
    nsxcsm> verify upgrade-bundle VMware-NSX-unified-appliance-<version>
              
    示例输出:
    Checking upgrade bundle /var/vmware/nsx/file-store/VMware-NSX-unified-appliance-<version>.nub contents
    Verifying bundle VMware-NSX-unified-appliance-<version>.bundle with signature VMware-NSX-unified-appliance-<version>.bundle.sig
    Moving bundle to /image/VMware-NSX-unified-appliance-<version>.bundle
    Extracting bundle payload
    Successfully verified upgrade bundle
    Bundle manifest:
        appliance_type: 'nsx-unified-appliance'
        version: '<upgrade version>'
        os_image_path: 'files/nsx-root.fsa'
        os_image_md5_path: 'files/nsx-root.fsa.md5'
    Current upgrade info:
    {
      "info": "",
      "body": {
        "meta": {
          "from_version": "<current version>",
          "old_config_dev": "/dev/mapper/nsx-config",
          "to_version": "<post-upgrade version>",
          "new_config_dev": "/dev/mapper/nsx-config__bak",
          "old_os_dev": "/dev/xvda2",
          "bundle_path": "/image/VMware-NSX-unified-appliance-<version>",
          "new_os_dev": "/dev/xvda3"
        },
        "history": []
      },
      "state": 1,
      "state_text": "CMD_SUCCESS"
    }
    
  3. 开始升级:
    nsxcsm> start upgrade-bundle VMware-NSX-unified-appliance-<version> playbook VMware-NSX-cloud-service-manager-<version>-playbook
              
    示例输出:
    Validating playbook /var/vmware/nsx/file-store/VMware-NSX-cloud-service-manager-<version>-playbook.yml
    Running "shutdown_csm_svc" (step 1 of 6)
    Running "install_os" (step 2 of 6)
    Running "migrate_csm_config" (step 3 of 6)
     
    System will now reboot (step 4 of 6)
    After the system reboots, use "resume" to start the next step, "start_csm_svc".
    {
      "info": "",
      "body": null,
      "state": 1,
      "state_text": "CMD_SUCCESS"
    }
    Autoimport-nsx-cloud-service-manager-thin>
    Broadcast message from root@Autoimport-nsx-cloud-service-manager-thin (Fri 2017-08-25 21:11:36 UTC):
     
    The system is going down for reboot at Fri 2017-08-25 21:12:36 UTC!
    
  4. 等待升级完成。CSM 在升级期间会重新引导,当 CSM UI 在重新引导后重新启动时,升级即完成。
  5. 验证 CSM 的版本以确认它已完成升级:
    nsxcsm> get version
              

结果

将升级 CSM 设备,并且 PCG 的大小将自动调整为 191 GB。

下一步做什么

  • 如果要从 3.0.x 升级到更高版本,请按照升级后任务中的步骤进行操作,因为您已升级 NSX-T Data Center
  • 如果要从 2.5.0 升级到更高版本,请执行升级 NSX-T Data Center中的步骤。