簡介
本文檔介紹如何在非HX ESXi主機上裝載HyperFlex(HX)資料儲存區。
案例
- 將虛擬機器(VM)從傳統ESXi群集遷移到HX群集。
- VM需要移動到HX資料儲存區,因為現有資料儲存區是要停用/重新使用的舊儲存陣列的一部分。
需求
- 對傳統ESXi主機和HX融合節點的根訪問。
- 對儲存控制器的根訪問許可權。
- 確保端到端正確配置了服務品質(QoS)和巨型幀。
- 儲存資料網路VLAN使用Platinum,Class of Service(CoS)值為5。
- 傳統ESXi主機必須能夠訪問儲存資料網路VLAN。
- 傳統ESXi主機必須能夠使用巨型幀ping通HX儲存群集資料的IP地址(而不是管理IP地址)。
詳細程式
Hyperflex節點
步驟 1:通過SSH連線到一個HX節點。
輸入命esxcfg-nas -l
令以列出已裝載的資料儲存。
[root@hx-esxi-01:~] esxcfg-nas -l
hx-nfs-1 is 192.168.255.254:hx-nfs-1 from 1234567890987654321-9876543210123456789 mounted available
hx-nfs-2 is 192.168.255.254:hx-nfs-2 from 1234567890987654321-9876543210123456789 mounted available
hx-nfs-3 is 192.168.255.254:hx-nfs-3 from 1234567890987654321-9876543210123456789 mounted available
步驟 2:
輸入命令 cat /etc/hosts
,並注意HX群集通用唯一識別符號(UUID)的輸出。 查詢包含單詞springpath的行。
[root@hx-esxi-01:~] cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
172.16.255.101 hx-esxi-01.cnmi.local hx-esxi-01
127.0.0.1 1234567890987654321-9876543210123456789.springpath 1234567890987654321-9876543210123456789
注意:HX群集UUID與命令的輸出匹stcli cluster info
配。
root@SpringpathControllerABC7DEFGHI:~# stcli cluster info |less
entityRef:
type: cluster
id: 1234567890987654321-9876543210123456789
name: hx-cluster
config:
clusterUuid: 1234567890987654321-9876543210123456789
name: hx-cluster
步驟 3:
在所有esxcli network firewall unload
HX融合節點上輸入命令。
[root@hx-esxi-01:~] esxcli network firewall unload
[root@hx-esxi-02:~] esxcli network firewall unload
[root@hx-esxi-03:~] esxcli network firewall unload
[root@hx-esxi-04:~] esxcli network firewall unload
儲存控制器
步驟 4:通過SSH連線到其中一個儲存控制器。
輸入命stcli security whitelist add --ips <vmkernel IP Address on the storage data network for legacy ESXi Hosts>
令。
root@SpringpathControllerABC7DEFGHI:~# stcli security whitelist add --ips 192.168.255.201 192.168.255.202 192.168.255.203 192.168.255.204
上一個示例演示了如何將四個舊版ESXi主機新增到白名單中。
檢視白名單。
root@SpringpathControllerABC7DEFGHI:~# stcli security whitelist list
----------------------------------------
192.168.255.201
----------------------------------------
192.168.255.202
----------------------------------------
192.168.255.203
----------------------------------------
192.168.255.204
----------------------------------------
舊版ESXi主機
步驟 5:SSH連線到每個傳統ESXi主機。
輸入命vi /etc/hosts
令以編輯/etc/hosts檔案。
[root@legacy-esxi-01:~] vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
172.16.255.201 legacy-esxi-01.cnmi.local legacy-esxi-01
步驟 6:
將之前獲取的HX節點的/etc/hosts檔案中的條目複製並貼上到舊式ESXi主機的/etc/hosts檔案中,然後儲存更改。
[root@legacy-esxi-01:~] vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
172.16.255.201 legacy-esxi-01.cnmi.local legacy-esxi-01
127.0.0.1 1234567890987654321-9876543210123456789.springpath 1234567890987654321-9876543210123456789
步驟 7:
將127.0.0.1更改為HX群集資料IP地址。
[root@legacy-esxi-01:~] vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
172.16.255.201 legacy-esxi-01.cnmi.local legacy-esxi-01
192.168.255.254 1234567890987654321-9876543210123456789.springpath 1234567890987654321-9876543210123456789
步驟 8:
輸入命esxcfg-nas -a -o <host> -s <share_name> <datastore_name>
令。
[root@legacy-esxi-01:~] esxcfg-nas -a -o 1234567890987654321-9876543210123456789 -s 192.168.255.254:hx-nfs-1 hx-nfs-1
[root@legacy-esxi-01:~] esxcfg-nas -a -o 1234567890987654321-9876543210123456789 -s 192.168.255.254:hx-nfs-2 hx-nfs-2
[root@legacy-esxi-01:~] esxcfg-nas -a -o 1234567890987654321-9876543210123456789 -s 192.168.255.254:hx-nfs-3 hx-nfs-3
步驟 9:
輸入命esxcfg-nas -l
令以確認HX資料儲存區已成功裝載到舊式ESXi主機上。
[root@legacy-esxi-01:~] esxcfg-nas -l
hx-nfs-1 is 192.168.255.254:hx-nfs-1 from 1234567890987654321-9876543210123456789 mounted available
hx-nfs-2 is 192.168.255.254:hx-nfs-2 from 1234567890987654321-9876543210123456789 mounted available
hx-nfs-3 is 192.168.255.254:hx-nfs-3 from 1234567890987654321-9876543210123456789 mounted available
HX資料儲存區現在裝載在舊式ESXi主機上。
相關資訊