在 VMM 存放網狀架構中設定 Hyper-V 虛擬光纖通道Set up Hyper-V virtual fibre channel in the VMM storage fabric

重要

已不再支援此版本的 Virtual Machine Manager (VMM),建議升級至 VMM 2019This version of Virtual Machine Manager (VMM) has reached the end of support, we recommend you to upgrade to VMM 2019.

若要在 System Center - Virtual Machine Manager (VMM) 存放網狀架構中設定 Hyper-V 虛擬光纖通道,請閱讀本文。Read this article to set up Hyper-V virtual fibre channel in the System Center - Virtual Machine Manager (VMM) storage fabric.

虛擬光纖通道能讓 HYPER-V VM 直接連線到光纖通道型的存放裝置。Virtual fibre channel provides Hyper-V VMs with direct connectivity to fibre channel-based storage. HYPER-V 在客體作業系統內提供光纖通道連接埠,讓您可以虛擬化對光纖通道存放裝置具有相依性的應用程式和工作負載。Hyper-V provides fibre channel ports within guest operating systems, so that you can virtualize applications and workloads that have dependencies on fibre channel storage. 您也可以透過光纖通道建立客體作業系統叢集。You can also cluster guest operating systems over fibre channel.

在您開始使用 Intune 之前Before you start

  • VMM 支援下列虛擬光纖通道部署:VMM supports the following virtual fibre channel deployments:
    • 單一存放裝置陣列連線至單一光纖 (由單一或多個交換器組成),且該光纖僅連線至單一虛擬 SAN (vSAN)。Single storage array connected to a single fabric (comprised of single or multiple switches) connected to a single virtual SAN (vSAN). vSAN 是主機電腦上實體光纖通道主機匯流排介面卡 (HBA) 連接埠的具名群組,VM 會連線到這個主機電腦來存取光纖通道存放裝置。A vSAN is a named group of physical fibre channel Host Bus Adapter (HBA) ports on a host computer that VMs connect to access fibre channel storage devices.
    • 單一存放裝置陣列連線至多個光纖 (每個光纖由單一或多個交換器組成),且這些光纖僅連線至單一 vSAN。Single storage array connected to multiple fabrics (comprised of single or multiple switches per fabric) that are connected to a single vSAN.
    • 多個存放裝置陣列連線至單一光纖 (由單一或多個交換器組成),且該光纖僅連線至單一 vSAN。Multiple storage arrays connected to a single fabric (comprised of single or multiple switches) that is connected to a single vSAN.
    • 多個存放裝置陣列連線至多個光纖 (每個光纖由單一或多個交換器組成),且這些光纖連線至多個 vSAN。Multiple storage arrays connected to multiple fabrics (comprised of single or multiple switches per fabric) that are connected to multiple vSANs. 此組態提供連接存放裝置陣列的雙重備援路徑。This configuration provides dual-redundant paths to storage arrays.

您需要:Here's what you need:

  • 您可以為每部主機電腦建立一或多個 vSAN。One or more vSANs can be created for each host computer. vSAN 只能包含單一光纖中的 HBA。A vSAN can only contain HBAs from a single fabric.
  • 存放裝置陣列、交換器和 HBA 必須安裝最新的韌體和驅動程式。Storage arrays, switches, and HBAs must have the latest firmware and drivers installed.
  • 確定存放裝置陣列可顯示邏輯單元 (LU)。Make sure that storage arrays can present logical units (LUs).
  • 啟用光纖通道交換器和 HBA 上的 NPIV。Enable NPIV on fibre channel switches and HBAs.
  • Hyper-V 主機必須至少執行 Windows Server 2012。Hyper-V hosts must be running at least Windows Server 2012.
  • 確認已安裝 SMI-S 提供者。Ensure that an SMI-S provider is installed. VMM 會使用 SMI-S 提供者管理光纖通道結構和 SAN 裝置。VMM manages fibre channel fabrics and SAN devices using the SMI-S provider. 請記得不要在 VMM 伺服器上,而是在 VMM 伺服器可使用 FQDN 或 IP 位址連線的伺服器上安裝 SMI-S 提供者。Remember not to install the SMI-S provider on the VMM server, but on a server that the VMM server can connect to with an FQDN or IP address.

部署虛擬光纖通道Deploy virtual fibre channel

必要的步驟列舉如下:Here's what you need to do:

  1. 探索和分類光纖通道結構。Discover and classify fibre channel fabrics.
  2. 依主機 HBA 連接埠分組,為每部主機電腦建立 vSAN。Create vSANs for each host computer by grouping host HBA ports.
  3. 建立可存取虛擬光纖通道存放裝置的 VM。Create a VM that can access the virtual fibre channel storage.
  4. 建立區域,將每部主機或 VM vHBA 連線至存放裝置陣列。Create zones that connect each host or VM vHBA to a storage array. 光纖通道陣列與主機電腦 VM 連線需使用區域。Zones are used to connect a fibre channel array to a host computer VM.
  5. 建立 LUN 並登錄給主機、VM 或服務層使用。Create LUNs and register them for a host, VM, or service tier.
  6. 建立服務範本,並將 VM 範本新增至此範本。Create a service template, add VM templates to it. 針對每個 vHBA,指定動態或靜態 WWPN 指派,然後選取分類。For each vHBA, specify dynamic or static WWN assignments and select the classification. 建立並部署以服務範本為基礎的服務層,以存取虛擬光纖通道存放裝置。Create and deploy a service tier based on the service template, to access Virtual Fibre Channel storage. 您可以將光纖通道陣列分區供該層使用、新增磁碟、建立 LUN,然後將 LUN 登錄至該層。You zone a fibre channel array to the tier, add a disk, create a LUN, and register the LUN to the tier.

探索和分類光纖通道結構Discover and classify fibre channel fabrics

  1. 按一下 [光纖] > [存放裝置] > [新增資源] > [存放裝置] 。Click Fabric > Storage > Add Resources > Storage Devices.
  2. 在 [新增存放裝置精靈] > [選取提供者類型] 中,選取 [由 SMI-S 提供者探索到及管理的光纖通道結構] 。In Add Storage Devices Wizard > Select Provider Type select Fibre Channel fabric discovered and managed by an SMI-S provider.
  3. 在 [指定探索範圍] 中,指定 IP 位址或 FQDN,以及提供者的連接埠號碼。In Specify Discovery Scope specify the IP address or FQDN, and the port number of the provider.
  4. 如果您使用 SMI-S,請指定提供者使用 SMI-S CIMXMLSMI-S WMI,並新增用來連線至遠端伺服器上之提供者的 IP 位址/FQDN 和連接埠。If you're using SMI-S specify whether the provider uses SMI-S CIMXML or SMI-S WMI and add the IP address/FQDN and port used to connect to the provider on the remote server. 如果使用的是 CIMXML,則您可以啟用 SSL。If you're using CIMXML, you can enable SSL.
  5. 指定用於連線至提供者的帳戶。Specify an account for connecting to the provider.
  6. 在 [收集資訊] 中,VMM 會自動探索並匯入光纖通道結構資訊。In Gather Information, VMM automatically discovers and imports the fibre channel fabric information. 如果探索程序成功完成,探索到的網狀架構名稱、交換器和網狀架構全球節點名稱 (WWNN) 就會列在頁面上。If the discovery process succeeds, the discovered fabric name, switches, and fabric World Wide Node Names (WWNN) are listed on the page. 當程序成功完成時,請按一下 [下一步] 。When the process successfully completes, click Next. 若要在嘗試失敗的情況下重試探索程序,請按一下 [掃描提供者] 。To retry the discovery process for an unsuccessful attempt, click Scan Provider.
  7. 如果您針對 SMI-S 提供者選取了使用 SSL 連線的選項,請注意:If you selected the option to use an SSL connection for an SMI-S provider note that:
    • 探索期間會出現 [匯入憑證] 對話方塊。During discovery, the Import Certificate dialog box appears. 檢查設定,然後按一下 [匯入] 。Check settings and click Import. 預設會驗證憑證通用名稱 (CN)。By default, the certificate's common name (CN) is verified. 如果沒有 CN 或 CN 不符,存放裝置探索可能失敗。Storage discovery may fail if there's no CN or it doesn't match.
    • 如果由於 CN 而導致探索失敗,請在 VMM 伺服器的登錄中停用 CN 驗證。If discovery fails because the CN disable CN verification in the registry on the VMM server. 在登錄中,移至 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Storage Management/ ,然後建立新的 DWORD 值 - DisableHttpsCommonNameCheckIn the registry, go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Storage Management/ and create a new DWORD value - DisableHttpsCommonNameCheck. 將值設定為 1。Set the value to 1.
  8. 在 [光纖通道網狀架構] 頁面上,針對需要分類的每個存放網狀架構執行下列步驟:On the Fibre Channel Fabrics page, do the following for each storage fabric that requires a classification:
    1. 在 [存放裝置] 欄位中,選取要讓 VMM 管理的光纖通道網狀架構旁的核取方塊。In the Storage Device column, select the check box next to a fibre channel fabric that you want VMM to manage.
    2. 在 [分類] 欄中,選取要指派給網狀架構的分類。In the Classification column, select the classification that you want to assign to the fabric. 網狀架構分類工作不同於存放裝置分類的工作,不過兩者的概念類似。The fabric classification task is separate from that for storage classification, although the concept is similar.
  9. 在 [摘要] 頁面上確認設定,然後按一下 [完成] 。On the Summary page, confirm the settings, and then click Finish.

建立 vSAN 並指派 HBACreate vSANs and assign HBAs

您可以建立 vSAN 並將 HBA 指派給它。You can create vSANs and assign HBAs to it. 您可以為每部主機電腦建立一或多個 vSAN。One or more vSANs can be created for each host computer. 每個 vSAN 只能包含來自相同網狀架構的 HBA。Each vSAN can only contain HBAs that are from the same fabric.

虛擬主機匯流排介面卡 (vHBA) 代表光纖通道 HBA 虛擬化,可讓 VM 用來與 vSAN 連線。Virtual Host Bus Adapters (vHBAs) represent the virtualization of fibre channel HBAs, and are used by VMs to connect with vSANs. 每個 vHBA 都具有全球節點名稱 (WWNN),其與主機 HBA WWNN 不同。Each vHBA has a World Wide Node Name (WWNN), which is different than the host HBA WWNN. 主機電腦 HBA 可以使用 N_Port ID Virtualization (NPIV) 對應至多個 vHBA。Using N_Port ID Virtualization (NPIV), a host computer HBA can map to multiple vHBAs. 指派給 vSAN 的 HBA 通訊埠可視需要新增或移除。HBA ports assigned to a vSAN can be added or removed as needed.

  1. 按一下 [光纖] ,以滑鼠右鍵按一下適用的主機 > [內容] > [硬體] > [新增虛擬 SAN] 。Click Fabric right-click the applicable host > Properties > Hardware > New Virtual SAN.
  2. 在 [新增虛擬 SAN] 中,指定名稱和選擇性描述。In New Virtual SAN specify a name and optional describes. 在 [光纖通道介面卡] 中,選取您要指派給 vSAN 的光纖通道介面卡 (HBA) 旁的核取方塊。In Fibre Channel adapters, select the check boxes next to the fibre channel adapters (HBAs) that you want to assign to the vSAN. 按一下 [確定] 。Click OK.
  3. 如果您想要編輯 vSAN 連接埠指派,請在 [內容] > [硬體] > [FC 虛擬 SAN] > [光纖通道介面卡詳細資料] 中,選取或取消選取 HBA 連接埠。If you want to edit vSAN port assignments, in Properties > Hardware > FC Virtual SAN > Fibre Channel adapter details select or unselect the HBA ports.
  4. 如果您想要新增 vHBA 並將它指派給 vSAN,請按一下 [內容] > [硬體設定] > [新增] > [光纖通道介面卡] 。If you want to add a new vHBA and assign it to a vSAN, click Properties > Hardware Configuration > New > Fibre Channel Adapter. 在 [虛擬 SAN 名稱] 中,選取要指派給它的 vSAN。In Virtual SAN name select a vSAN to assign it. 指定您要靜態或動態指派 vHBA 的連接埠設定。Specify whether you want to assign port settings for the vHBA statically or dynamically.
  5. 如果您想要變更 vHBA 的通用預設連接埠設定,請按一下 [內容] > [硬體] > [通用設定] ,然後修改 [光纖通道介面卡詳細資料] 中的設定。If you want to change the global default port settings for vHBA click Properties > Hardware > Global Settings and modify settings in Fibre Channel adapter details. 請注意,變更這些設定並不會影響已建立的 vHBA 連接埠。Note that changing these settings does not affect vHBA ports that have already been created. 若要將新設定套用到現有 vHBA 通訊埠,請移除通訊埠後再次新增,以重新建立通訊埠。To apply a new setting to an existing vHBA port, recreate the port by removing it and then adding it again.

建立 VM 範本Create a VM template

VM 使用 vHBA 來與 vSAN 連線。vHBAs are used by VMs to connect with vSANs. vHBA 必須先新增到 VM 範本的硬體設定檔才能連接 vSAN。In order for vHBAs to connect to vSANs, they first must be added to the hardware profile of a VM template.

  1. 使用 [建立虛擬機器精靈] 建立新的 VM,然後新增光纖通道介面卡 (vHBA) 至 VM 範本的 [設定硬體] 頁面。Use the Create Virtual Machine Wizard to create a new VM, and then add a new fibre channel adapter (vHBA) to the Configure Hardware page of the VM template. 針對您所建立的每個 vHBA,指定動態或靜態 WWPN 指派,然後選取網狀架構分類。For each vHBA that you create, specify dynamic or static WWPN assignments and select the fabric classification.
  2. 同樣使用 [建立虛擬機器精靈] ,將 VM 放置與部署至目的地主機。Still using the Create Virtual Machine Wizard, place and deploy the VM to a destination host. 確認主機包含符合存放網狀架構的虛擬 SAN。Make sure the host contains a virtual SAN that matches the storage fabric.

將 VM 部署至主機之後,您可以將虛擬光纖通道存放裝置陣列分區供 VM 使用。After you deploy the VM to a host, you can zone a virtual fibre channel storage array to the VM. 然後,您要建立 LUN 並將其登錄 (開放) 至 VM。Then, you create a LUN and register (unmask) it to the VM.

建立區域Create zones

光纖通道陣列與主機或虛擬機器 (VM) 連線需使用區域。Zones are used to connect a fibre channel array to a host or virtual machine (VM). 存放裝置陣列的目標連接埠會對應到主機上的 HBA 連接埠或 VM 上的虛擬 HBA (vHBA) 連接埠。The storage array target ports are mapped to the HBA ports on the host or to the virtual HBA (vHBA) ports for the VM. 您可為主機、VM 或兩者建立區域。You can create zones for a host, a VM, or both. 針對 Hyper-V 容錯移轉叢集,叢集中的每部主機皆需要區域。For Hyper-V failover clusters, a zone is needed for each host in the cluster. 請注意:Note that:

  • 區域會分組為區域集合,這些區域集合使用通用光纖通道網狀架構裝置。Zones are grouped into zonesets, which use common fibre channel fabric devices. 當區域集合中的所有區域均已依需求加入、修改或移除,區域集合就必須啟用。When all zones in a zone set have been added, modified, or removed as needed, the zoneset must be activated. 區域集合啟用後,各區域的資訊將往下推播至選定之網狀架構中的光纖通道交換器。Zoneset activation pushes information for each zone down to the fibre channel switches in the selected fabric.
  • 只有同一區域內的成員才能彼此通訊。Only members of the same zone can communicate with each other.
  • 您必須建立新的區域,再啟用區域集合。You'll need to create new zones and then activate the zoneset. 啟用區域集合時,可能會造成網狀架構停止運作一段時間,以將資訊傳播至所有交換器。Activating a zoneset may cause some downtime in the fabric as information is propagated to all the switches.
  • 如果您要將存放裝置陣列新增到 Hyper-V 叢集,就必須先將陣列分區供各主機電腦使用。If you want to add a storage array to a Hyper-V cluster, you need to zone the array to each host computer first. 同樣地,如果您要將陣列新增到客體叢集,亦需先將陣列分區供各 VM 使用。Similarly, if you want to add an array to a guest cluster, you need to zone the array to each VM first.

請依照下列方式設定區域:Set up zones as follows:

  1. 按一下 [VM 和服務] > [服務] ,以滑鼠右鍵按一下適用的 VM > [內容] > [存放裝置] > [新增] > [新增光纖通道陣列] 。Click VMs and Services > Services, right-click the applicable VM, > Properties > Storage > Add > Add Fibre Channel Array.
  2. 在 [新增光纖通道陣列] > [內容] 頁面 > [建立新區域] 中,指定區域名稱,選取存放裝置陣列,然後在 [光纖] 中選取交換器。In Add Fibre Channel Array > Properties page > Create New Zone specify a zone name, select a storage array, and in Fabric select a switch. 「Storage array target ports」 (存放裝置陣列目標連接埠) 中,選取一或多個適用的 WWPM 連接埠。In Storage array target ports, select the applicable WWPM port or ports. 在 [虛擬機器啟動器] 中,選取一或多個適用的 WWPM 連接埠。In Virtual machine initiator, select the applicable WWPM port or ports. 然後按一下 [建立] 。Then click Create. 按一下 [顯示別名] 以檢視可用的區域別名。Click Show aliases to view the available zone aliases.
  3. 若要啟用區域集合,請按一下 [網狀架構] > [名稱] ,然後選取非作用中的區域集合 > [啟用區域集合] 。To activate the zoneset, click Fabric > Name, select the inactive zoneset > Activate Zoneset.
  4. 您可以在 [光纖] > [光纖通道結構] > [名稱] 中,檢視光纖的區域集合,然後以滑鼠右鍵按一下適用的光纖 > [內容] > [區域集合] 。You can view the zonesets for a fabric in Fabric > Fibre Channel Fabric > Name, right-click the applicable fabric > Properties > Zonesets.
  5. 如果您想要修改存放裝置陣列的分區,請按一下 [VM 和服務] > 適用的主機 > [內容] > [存放裝置] > [光纖通道陣列] > [編輯] > 適用的陣列,然後修改分區設定。If you want to modify zoning for a storage array click VMs and Services > applicable host > Properties > Storage > Fibre Channel Arrays > Edit > applicable array and modify the zoning settings.

建立並登錄 LUNCreate and register LUNs

若要讓主機電腦、VM 或電腦服務層存取存放裝置陣列資源,必須建立 LUN,然後登錄 (開放) 至主機、VM 或階層。For a host computer, VM, or computer service tier to access storage array resources, LUNs must be created and then registered (unmasked) to the host, VM, or tier.

  1. 按一下 [光纖] > [存放裝置] > [分類和集區] 。Click Fabric > Storage > Classifications and Pools. 在 [名稱] 下方,按一下適用的存放裝置 > [建立邏輯單元] 。Under Name, click the applicable storage device > Create Logical Unit.
  2. 在 [建立邏輯單元] 中,選取存放集區,並指定名稱、描述和 LUN 大小。In the Create Logical Unit select a storage pool, specify a name and description, and LUN size. 指定您想要建立精簡或固定大小的 LUN。Specify whether you want to crate a thin or fixed size LUN.
  3. 若要登錄 LUN,請在 [VM 和服務] 窗格中,以滑鼠右鍵按一下適用的 VM > [內容] > [新增] > [新增磁碟] 。To register the LUN, in VMs and Services pane, right-click the applicable VM > Properties > Add > Add Disk.
  4. 在 [建立邏輯單元] 中,選取存放集區、名稱和大小。In Create Logical Unit select a storage pool, name, and size. 按一下 [確定] 登錄 LUN。Click OK to register the LUN.

建立及部署服務層Create and deploy a service tier

  1. 使用 [服務範本設計工具] ,建立服務範本並將您之前所建立適用的 VM 範本新增到服務範本。Using the Service Template Designer, create a service template and add the applicable VM templates you previously created to the service template.
  2. 新增虛擬光纖通道介面卡 (vHBA) 至服務範本的 [設定硬體] 頁面。Add a new virtual fibre channel adapter (vHBA) to the Configure Hardware page of the service template. 針對您所建立的每個 vHBA,指定動態或靜態 WWPN 通訊埠指派,然後選取網狀架構分類。For each vHBA that you create, specify dynamic or static WWPN port assignments and select the fabric classification.
  3. 從服務範本建立服務層,並將服務層指派給電腦層。Create service tier from the service template and assign the service tier to a computer tier.
  4. 部署階層。Deploy the tier.
  5. 部署後,您可以將虛擬光纖通道存放裝置陣列分區供服務層使用。After you deploy it, you can zone a virtual fibre channel storage array to the service tier. 然後建立陣列的 LUN 並登錄 (開放) 至該層。Then create a LUN for the array and register (unmask) it to the tier.

後續步驟Next steps

設定 Hyper-V 主機和叢集的存放裝置Set up storage for Hyper-V hosts and clusters.