如果 NSX 應用裝置損毀或過期,則必須重新部署該應用裝置。由於 Azure 限制,您必須使用 Azure CLI 來啟動新虛擬機器。

若要在 Azure 上重新部署 NSX Manager 節點,請執行以下動作:

  1. 從 Azure 資源群組組中刪除無法運作的 NSX Manager,及其相關的 NIC 或磁碟實體。
  2. 透過 nsxcli 使用 get cluster status 命令,在任何剩餘 NSX Manager 節點上取得叢集狀態。
  3. NSX Manager 叢集中斷連結無法運作的 NSX Manager 節點。例如,
    detach node 8992e79f-219f-2c42-be57-c4d576792b78
    
    Node has been detached. Detached node must be deleted permanently.
  4. 按照 https://docs.vmware.com/tw/VMware-NSX-T-Data-Center/3.2/installation/GUID-71DDCE82-0F4F-4E75-A117-FB398A1FDFCB.html 主題的步驟 7,來建立自訂資料。
  5. 使用以下命令,建立新的管理程式節點。以下命令將新增 100 GB 的資料磁碟。可根據您的需求,變更資料磁碟和版本號碼。將公開金鑰儲存在您要執行以下命令的位置。
    az vm create --name <MP instance name> --resource-group <RG for MP deployment> --admin-username nsxadmin --public-ip-address-allocation static --size Standard_D4_v4 --subnet <subnet_path> --nsg <mgr_nsg_path>  --image vmware-inc:nsx-policy-manager:byol_release-3-1:3.5.0 --storage-sku Standard_LRS --data-disk-sizes-gb 100 --authentication-type ssh --ssh-key-values <publickey_path> --custom-data <userdata_txt_path>
  6. 等待大約 15 分鐘,讓服務和叢集在新的單一節點叢集上啟動。
  7. 透過 nsxcli 在新 NSX Manager 節點上執行以下命令,以將此新節點加入到現有叢集。
    join 192.168.1.11 cluster-id 95e888bf-d8fb-4974-8da7-13029d7be8f0 username nsxadmin password <password> thumbprint 32135bdbd14fe3cba11e1d91b106c2f1e28e0d464c23bbe3caf88fdf44b0eca2
    
    Data on this node will be lost. Are you sure? (yes/no): yes Join operation successful. Services are being restarted. Cluster may take some time to stabilize.

    等待大約 15 分鐘,讓具有三個節點的叢集啟動並執行。