0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ESXiホストに残っているvSANクラスタ情報をクリア

Posted at

vSANクラスターから ESXi ホストを外すメモです。

1.対象ESXi ホストをメンテナンスモードに切り替え
2.対象ESXi の DiskGroup を削除
3. Drag&Drop にて、対象 ESXi ホストを vSANクラスター外に移動

基本はこれだけでよいはずですが、問題は次の事象です。

対象 ESXi 上での操作 (SSH接続)
①vSAN情報が残っていないかを確認。
 esxcli vsan storage list

②この結果で、vSAN Disk情報が表示された場合は、以下のコマンドにて Disk情報を削除。
esxcli vsan storage remove -u [DISKGROUPのUUID]

③vSAN Disk情報など何も表示されてはいないが、vSAN情報が残っていることで別のクラスター環境へ移動ができない場合は、”vdq -q” と “esxcli vsan cluster get” コマンドにて状況を確認。

③-1 
vdq -q

[root@esxi01:~] vdq -q
[
{
"Name" : "t10.NVMe____VMware_Virtual_NVMe_Disk________________VMWare_NVME_0000____00000001",
"VSANUUID" : "",
"State" : "Eligible for use by VSAN",
"Reason" : "None",
"IsSSD" : "1",
"IsCapacityFlash": "0",
"IsPDL" : "0",
"Size(MB)" : "204800",
"FormatType" : "512e",
},

{
"Name" : "mpx.vmhba0:C0:T1:L0",
"VSANUUID" : "",
"State" : "Eligible for use by VSAN",
"Reason" : "None",
"IsSSD" : "0",
"IsCapacityFlash": "0",
"IsPDL" : "0",
"Size(MB)" : "665600",
"FormatType" : "512n",
},

{
"Name" : "mpx.vmhba0:C0:T0:L0",
"VSANUUID" : "",
"State" : "Ineligible for use by VSAN",
"Reason" : "Has partitions",
"IsSSD" : "0",
"IsCapacityFlash": "0",
"IsPDL" : "0",
"Size(MB)" : "40960",
"FormatType" : "512n",
},

]

③-2 クラスタ情報を確認
[root@esxi01:~] esxcli vsan cluster get
Cluster Information
Enabled: true
Current Local Time: 2021-01-24T14:09:31Z
Local Node UUID: 6007c0cc-25de-4b53-e441-000c29337544
Local Node Type: NORMAL
Local Node State: MASTER
Local Node Health State: HEALTHY
Sub-Cluster Master UUID: 6007c0cc-25de-4b53-e441-000c29337544
Sub-Cluster Backup UUID:
Sub-Cluster UUID: 52d8ae3c-bc4d-716c-7000-72ba2e6822a5
Sub-Cluster Membership Entry Revision: 0
Sub-Cluster Member Count: 1
Sub-Cluster Member UUIDs: 6007c0cc-25de-4b53-e441-000c29337544
Sub-Cluster Member HostNames: esxi01.vmlab.local
Sub-Cluster Membership UUID: 9a2c0d60-5536-79f6-8e67-000c29337544
Unicast Mode Enabled: false
Maintenance Mode State: ON
Config Generation: 446c194c-bd83-4766-bb08-f274591568ad 1 2021-01-21T00:50:04.356

④残っているvSAN情報を確認
 [root@esxi01:~] esxcli vsan cluster leave

⑤もう一度クラスタの情報を確認する
 [root@esxi01:~] esxcli vsan cluster get
  vSAN Clustering is not enabled on this host

④残っているvSAN情報を削除
[root@esxi01:~]esxcli vsan cluster leave
 これで削除が完了しました。

もう一度、vSANクラスター情報を確認してみると、以下の通りに削除されていることがわかります。
esxcli vsan cluster get
vSAN Clustering is not enabled on this host
上記コマンドは、vSphere 7.0 環境での動作確認済みのものとなります。

vSphere バージョンによっては、コマンドが変更されている可能性があります。
その際は、”-?” にて Help 情報を参照してください。

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?