使用Azure 入口網站來管理 Azure Stack Edge Pro GPU 上 VM 上的磁片

適用于: Yes for Pro GPU SKU Azure Stack Edge Pro - GPU Yes for Pro 2 SKU Azure Stack Edge Pro 2 Yes for Pro R SKU Azure Stack Edge Pro R Yes for Mini R SKU Azure Stack Edge Mini R

您可以使用 Azure 入口網站,在 Azure Stack Edge Pro 裝置上部署的虛擬機器上布建磁片。 磁片會透過本機 Azure Resource Manager 布建在裝置上,並取用裝置容量。 新增、卸離和刪除磁片等作業可以透過Azure 入口網站來完成,進而呼叫本機 Azure Resource Manager 來布建儲存體。

本文說明如何新增、中斷連結或移除現有 VM 中的資料磁片,以及透過 調整 VM 本身的大小,Azure 入口網站。

關於 VM 上的磁片

您的 VM 可以有 OS 磁片和資料磁片。 部署在裝置上的每部虛擬機器都有一個連結的作業系統磁片。 此 OS 磁片具有預先安裝的 OS,這是在建立 VM 時選取的。 此磁碟包含開機磁碟區。

注意

您無法變更部署在裝置上之 VM 的 OS 磁片大小。 OS 磁片大小取決於您選取的 VM 大小。

另一方面,資料磁片是連接至裝置上執行之 VM 的受控磁片。 資料磁片用來儲存應用程式資料。 資料磁片通常是 SCSI 磁片磁碟機。 VM 的大小會決定您可以連結至 VM 的資料磁片數目。 根據預設,進階儲存體會用來裝載磁片。

部署在裝置上的 VM 有時可能包含暫存磁片。 暫存磁碟為應用程式和處理序提供短期儲存空間,僅用於儲存分頁檔或交換檔之類的資料。 暫存磁碟上的資料可能會在維護事件期間或當您重新佈署虛擬機器時遺失。 在 VM 的標準重新開機成功期間,暫存磁片上的資料將會保存。

必要條件

在您透過Azure 入口網站開始管理裝置上執行之 VM 上的磁片之前,請確定:

  1. 您可以存取已啟用的 Azure Stack Edge Pro GPU 裝置。 您也已啟用在裝置上計算的網路介面。 此動作會在 VM 上的網路介面上建立虛擬交換器。

    1. 在裝置的本機 UI 中,移至 [計算 ]。 選取您將用來建立虛擬交換器的網路介面。

      重要

      您只能設定一個用於計算的埠。

    2. 在網路介面上啟用計算。 Azure Stack Edge Pro GPU 會建立和管理對應至該網路介面的虛擬交換器。

  2. 您至少有一部 VM 部署在裝置上。 若要建立此 VM,請參閱透過 Azure 入口網站 在 Azure Stack Edge Pro 上部署 VM 中的 指示。

新增資料磁碟

請遵循下列步驟,將磁片新增至部署在裝置上的虛擬機器。

  1. 移至您要新增資料磁片的虛擬機器,然後選取 [虛擬機器 詳細 資料] 中的 [磁片 ]。

    Screenshot of Disks settings on the Details tab of an Azure Stack Edge virtual machine. The Disks label is highlighted.

  2. 在 [磁片 ] 刀鋒視窗的 [資料磁片 ] 底下 ,選取 [ 建立並連結新磁片 ]。

    Screenshot of the Disks blade in Overview view for Virtual Machines. The Create and attach a new disk option, under Data disks, is highlighted.

  3. 在 [ 建立新的磁片 ] 刀鋒視窗中,輸入下列參數:

    欄位 描述:
    Name 資源群組內的唯一名稱。 建立資料磁片之後,就無法變更名稱。
    Edge 資源群組 輸入用來儲存新磁片的 Edge 資源群組。
    大小 GiB 中的資料磁片大小。 資料磁片的大小上限取決於您選取的 VM 大小。 布建磁片時,您也應該考慮裝置上的實際空間,以及其他正在執行且耗用容量的 VM 工作負載。

    Screenshot of the Create a new disk blade for a virtual machine. The OK button is highlighted.

    選取 [ 確定 ],然後繼續進行。

  4. 在 [ 磁片 ] 顯示中,您會看到對應至新磁片的專案。 接受預設值或將有效的邏輯單元號碼 (LUN) 指派給磁片,然後選取 [ 儲存 ]。 LUN 是 SCSI 磁片的唯一識別碼。 如需詳細資訊,請參閱 什麼是 LUN?

    Screenshot of the Disks display for Virtual machines after adding a new disk. The disk number for the new disk and the Save button are highlighted.

  5. 您會看到磁片建立正在進行中的通知。 成功建立磁片之後,就會更新虛擬機器。

    Screenshot showing the notification that disk creation is in progress.

  6. 流覽回虛擬機器 [詳細資料 ] 頁面。 磁片清單會更新以顯示新建立的資料磁片。

    Screenshot of the Details tab for a virtual machine. A newly created virtual machine disk is highlighted in the Disks area.

變更資料磁片

請遵循下列步驟來變更與您裝置上部署之虛擬機器相關聯的磁片。

  1. 移至具有要變更資料磁片的虛擬機器,然後選取 虛擬機器 [詳細 資料] 中的 [磁片 ]。

  2. 在資料磁片清單中,選取您想要變更的磁片。 在選取的磁片最右邊,選取編輯圖示(鉛筆)。

    Screenshot of Disks on a virtual machine. The Data disks section, and the pencil icon, which is used to edit a data disk, are highlighted.

  3. 在 [ 變更磁片 ] 刀鋒視窗中,您只能變更磁片的大小。 建立磁片之後,您無法變更磁片的名稱。 變更磁片的大小 ,並儲存變更。

    Screenshot of the Change Disk blade for a virtual machine. The Size option and the OK button are highlighted.

    注意

    您只能展開資料磁片。 您無法壓縮磁片。

  4. 在 [ 磁片 ] 顯示中,磁片清單會重新整理以顯示更新的磁片。

連結現有的磁碟

請遵循下列步驟,將現有的磁片連結至部署在裝置上的虛擬機器。

  1. 移至您要連結現有磁片的虛擬機器,然後選取 [虛擬機器 詳細資料 ] 中的 [磁片 ]。

  2. 在 [磁片 ] 刀鋒視窗的 [資料磁片 ] 下 ,選取 [ 連結現有的磁片 ]。

    Screenshot of the Disks blade for an Azure Stack Edge virtual machine. The

  3. 接受預設 LUN 或指派有效的 LUN。 從下拉式清單中選擇現有的資料磁片。 選取 [儲存]。

    Screenshot of the Disks blade for an Azure Stack Edge virtual machine after an existing disk is added. The LUN number and name of the disk are highlighted, as is the Save button.

    選取 [ 儲存 ],然後繼續進行。

  4. 您會看到虛擬機器已更新的通知。 更新 VM 之後,流覽回虛擬機器 [詳細資料 ] 頁面。 重新整理頁面,以在資料磁片清單中檢視新連結的磁片。

    Screenshot showing the Data disks section of the Details pane for a virtual machine. A data disk entry is highlighted.

卸離資料磁碟

請遵循下列步驟,中斷連結或移除與您裝置上部署之虛擬機器相關聯的資料磁片。

注意

  • 您可以在 VM 執行時移除資料磁片。 在將磁片與 VM 中斷連結之前,請確定沒有任何主動使用磁片。
  • 如果您中斷連結磁片,則不會自動刪除它。 請遵循下列刪除磁片 中的 步驟。
  1. 移至您要卸離資料磁片的虛擬機器,然後選取 虛擬機器 [詳細 資料] 中的 [磁片 ]。

    Screenshot showing the Data disks section of the Details pane for a virtual machine. The disk entries under Data disks are highlighted.

  2. 在磁片清單中,選取您想要卸離的磁片。 在選取的磁片最右邊,選取卸離圖示 (「X」 )。 選取的磁片將會中斷連結。 選取 [儲存]。

    Screenshot of the Disks display for a virtual machine. The X icon for an unattached disk that can be detached, and the Save button, are highlighted.

  3. 卸離磁片之後,虛擬機器就會更新。 重新整理頁面以檢視資料磁片的更新清單。

    Screenshot of the refreshed Disks display for a virtual machine after a data disk is detached. The Data disks list is highlighted.

刪除資料磁片

請遵循下列步驟,刪除未連結至裝置上部署之 VM 的資料磁片。

注意

刪除資料磁片之前,如果磁片正在使用中,您必須 將資料磁片與 VM 中斷連結。

  1. 移至 裝置上的虛擬機器 ,然後移至 [ 資源 ] 窗格。 選取 [磁碟]

    Screenshot showing the Disks tab on the Resources blade for virtual machines. The Resources label and Disks tab are highlighted.

  2. 在磁片清單中,選取您想要刪除的磁片。 在選取的磁片最右邊,選取刪除圖示 (垃圾桶)。

    Screenshot showing the Disks tab on the Resources blade for virtual machines. A data disk with a trashcan icon, indicating it can be deleted, is highlighted.

    如果您沒有看到刪除圖示,您可以在 [連結的 VM ] 資料行中 選取 VM 名稱,並從 VM 中斷連結磁片。

  3. 您會看到一則訊息,要求您確認要刪除磁片。 無法反轉作業。 選取

    Screenshot showing the notification asking you to confirm you want to delete a data disk.

    刪除完成時,會從清單中移除磁片。

下一步

若要瞭解如何在 Azure Stack Edge Pro 裝置上部署虛擬機器,請參閱 透過Azure 入口網站 部署虛擬機器。