本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
在 E 系列的主機上設定容錯移轉 - Linux ( NVMe over InfiniBand )
若要提供儲存陣列的備援路徑、您可以設定主機執行容錯移轉。
開始之前
您必須在系統上安裝所需的套件。
-
對於Red Hat(RHEL)主機、請執行「rpm -q device-mapper-multipath'來驗證套件是否已安裝
-
對於SLES主機、請執行「rpm -q多重路徑工具」來驗證套件是否已安裝
請參閱 "NetApp 互通性對照表工具" 為了確保安裝任何必要的更新、因為多重路徑可能無法與GA版本的SLES或RHEL正常運作。 SLES 12 use Device Mapper Multipath (DMMP) for multipathing when using NVMe over Infiniband. RHEL 8, RHEL 9, RHEL 10, SLES 15 and SLES 16 use a built-in Native NVMe Failover. Depending on which OS you are running, some additional configuration of multipath is required to get it running properly.
啟用裝置對映器多路徑 (DMMP) SLES 12
預設情況下,SLES 中會停用 DM-MP。完成以下步驟以在主機上啟用 DM-MP 元件。
步驟
-
將NVMe E系列裝置項目新增至/etc/multipath.conf檔案的「裝置」區段、如下列範例所示:
devices { device { vendor "NVME" product "NetApp E-Series*" path_grouping_policy group_by_prio failback immediate no_path_retry 30 } } -
將「multiPathd」設定為在系統開機時啟動。
# systemctl enable multipathd
-
如果當前未運行"multiPathd",請將其啓動。
# systemctl start multipathd
-
驗證「multiPathd」的狀態、以確保它處於作用中狀態且正在執行:
# systemctl status multipathd
使用原生NVMe多路徑設定RHEL 8
原生NVMe多重路徑在RHEL 8中預設為停用、必須使用下列步驟啟用。
-
設定「modProbe」規則以開啟原生NVMe多路徑。
# echo "options nvme_core multipath=y" >> /etc/modprobe.d/50-nvme_core.conf
-
使用新的"modProp"參數重新建立"initramfs"。
# dracut -f
-
重新開機伺服器以啟用原生NVMe多路徑來啟動伺服器。
# reboot
-
驗證在主機開機備份後、原生NVMe多路徑功能已啟用。
# cat /sys/module/nvme_core/parameters/multipath
-
如果命令輸出為「N」、則原生NVMe多路徑仍會停用。
-
如果命令輸出為「Y」、則會啟用原生NVMe多路徑、您發現的任何NVMe裝置都會使用它。
-
|
|
對於 SLES 15、SLES 16、RHEL 9 和 RHEL 10,預設啟用原生 NVMe 多路徑,無需額外配置。 |