はじめに
このドキュメントでは、HyperFlex(HX)データストアを非HX ESXiホストにマウントする方法について説明します。
シナリオ
- 仮想マシン(VM)をレガシーESXiクラスタからHXクラスタに移行します。
- 既存のデータストアは廃止/転用されるレガシーストレージアレイの一部であるため、VMはHXデータストアに移動する必要があります。
要件
- レガシーESXiホストおよびHXコンバージドノードへのルートアクセス。
- ストレージコントローラへのルートアクセス。
- Quality of Service(QoS)とジャンボフレームがエンドツーエンドで正しく設定されていることを確認します。
- ストレージデータネットワーク(SDN)VLANは、サービスクラス(CoS)値5のPlatinumを使用します。
- ストレージデータネットワークVLANは、レガシーESXiホストから到達可能である必要があります。
- レガシーESXiホストは、ジャンボフレームを使用して、HXストレージクラスタデータのIPアドレス(管理IPアドレスではない)にpingを実行できる必要があります。
詳細な手順
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)の出力をメモします。 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:ストレージコントローラの1つに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
前の例では、4つのレガシー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:各レガシー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:
esxcfg-nas -l
コマンドを入力して、レガシーESXiホストでHXデータストアが正常にマウントされたことを確認します。
[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ホストにマウントされます。
関連情報