소개
이 문서에서는 비 HX ESXi 호스트에 HyperFlex(HX) 데이터 저장소를 마운트하는 방법에 대해 설명합니다.
시나리오
- 가상 머신(VM)을 레거시 ESXi 클러스터에서 HX 클러스터로 마이그레이션합니다.
- 기존 데이터 저장소가 폐기/재활용될 레거시 스토리지 어레이의 일부이므로 VM을 HX 데이터 저장소로 이동해야 합니다.
요구 사항
- 레거시 ESXi 호스트 및 HX 통합 노드에 대한 루트 액세스
- 스토리지 컨트롤러에 대한 루트 액세스
- QoS(Quality of Service) 및 점보 프레임이 종단간 올바르게 구성되었는지 확인합니다.
- 스토리지 데이터 네트워크 VLAN은 CoS(Class of Service) 값이 5인 Platinum을 사용합니다.
- 레거시 ESXi 호스트에서 스토리지 데이터 네트워크 VLAN에 연결할 수 있어야 합니다.
- 레거시 ESXi 호스트는 점보 프레임을 사용하여 HX 스토리지 클러스터 데이터의 IP 주소를 ping할 수 있어야 합니다(관리 IP 주소가 아님).
세부 절차
Hyperflex 노드
1단계: HX 노드 중 하나에 SSH를 적용합니다.
마운트된 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(Universal Unique Identifier)의 출력을 확인합니다. 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단계:
모든 HX esxcli network firewall unload
통합 노드에서 명령을 입력합니다.
[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 호스트 4개를 화이트리스트에 추가하는 방법을 시연했습니다.
화이트리스트를 검토합니다.
root@SpringpathControllerABC7DEFGHI:~# stcli security whitelist list
----------------------------------------
192.168.255.201
----------------------------------------
192.168.255.202
----------------------------------------
192.168.255.203
----------------------------------------
192.168.255.204
----------------------------------------
레거시 ESXi 호스트
5단계: 각 레거시 ESXi 호스트에 대한 SSH
/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단계:
HX 데이터 esxcfg-nas -l
저장소가 레거시 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 호스트에 마운트됩니다.
관련 정보