Posted in: VMware

vSAN Evacuation pre-check for Node, Diskgroup OR Disk

You can do a precheck for a vSAN Host, disk or diskgroup evacuation with with evacuate all data, ensure accessibility or no action options.

vSAN ESXi host Evacuation Pre-check

  • To fetch the UUID of the vSAN cluster hosts :-
    [root@esxi-1:~] cmmds-tool find -t HOSTNAME

owner=5bc74ddf-6e77-df6b-1442-005056016fc3(Health: Healthy) uuid=5bc74ddf-6e77-df6b-1442-005056016fc3 type=HOSTNAME rev=0 minHostVer=0 [content = ("esxi-2.labs.org")], errorStr=(null)

owner=5bc74de0-dd5b-9199-e5ea-005056016fbb(Health: Healthy) uuid=5bc74de0-dd5b-9199-e5ea-005056016fbb type=HOSTNAME rev=0 minHostVer=0 [content = ("esxi-1.labs.org")], errorStr=(null)


owner=5bc74dec-b5d0-b69d-dfc7-005056016fcc(Health: Healthy) uuid=5bc74dec-b5d0-b69d-dfc7-005056016fcc type=HOSTNAME rev=0 minHostVer=0 [content = ("esxi-3.labs.org")], errorStr=(null)

  • To perform pre-check for host with all evacuation options :-

    [root@esxi-1:~] esxcli vsan debug evacuation precheck -a evacAllData -e 5bc74de0-dd5b-9199-e5ea-005056016fbb -v
    Action: Evacuate All Data
    Evacuation Outcome: Success
    Entity: Host esxi-1.labs.org
    Data to Move: 1.36 GB
    Number Of Objects That Would Become Inaccessible: 0
    Objects That Would Become Inaccessible: None
    Number Of Objects That Would Have Redundancy Reduced: 0
    Objects That Would Have Redundancy Reduced: None
    Additional Space Needed for Evacuation: N/A
    [root@esxi-1:~]

[root@esxi-1:~] esxcli vsan debug evacuation precheck -a ensureAccess -e 5bc74de0-dd5b-9199-e5ea-005056016fbb -v
Action: Ensure Accessibility
Evacuation Outcome: Success
Entity: Host esxi-1.labs.org
Data to Move: 0.00 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 4
Objects That Would Have Redundancy Reduced: 06bfc85f-aafe-0121-8a41-00505601eab9, cbbec85f-e4b5-bea1-352b-00505601eab9, cbadc85b-9500-83ae-3be4-005056016fc3, d0bec85f-5e67-45f2-de8c-00505601eab9
Additional Space Needed for Evacuation: N/A

[root@esxi-1:~] esxcli vsan debug evacuation precheck -a noAction -e 5bc74de0-dd5b-9199-e5ea-005056016fbb -v
Action: No Action
Evacuation Outcome: Success
Entity: Host esxi-1.labs.org
Data to Move: 0.00 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 4
Objects That Would Have Redundancy Reduced: 06bfc85f-aafe-0121-8a41-00505601eab9, cbbec85f-e4b5-bea1-352b-00505601eab9, cbadc85b-9500-83ae-3be4-005056016fc3, d0bec85f-5e67-45f2-de8c-00505601eab9
Additional Space Needed for Evacuation: N/A

===============================================================

To check the vSAN Disks on Host :

[root@esxi-1:~] vdq -Hi
Mappings:
DiskMapping[0]:
SSD: mpx.vmhba2:C0:T0:L0
MD: mpx.vmhba2:C0:T1:L0

To get the UUID of the disks or diskgroup :

[root@esxi-1:~] esxcli vsan debug disk list -l
UUID: 52b5af7a-644a-c68f-e81e-4c0c79246d26
Name: mpx.vmhba2:C0:T0:L0
Owner: esxi-1.labs.org
Version: 7
Disk Group: 52b5af7a-644a-c68f-e81e-4c0c79246d26
Disk Tier: Cache
SSD: true
In Cmmds: true
In Vsi: true
Model: Virtual disk
Encryption: false

Deduplication: true
Dedup Ratio: N/A
Overall Health: green
Metadata Health: green
Operational Health: green
Congestion Health:
State: green
Congestion Value: 0
Congestion Area: none
All Congestion Fields:
Space Health:


To check evacuation pre-check for disks using UUID :-

[root@esxi-1:~] esxcli vsan debug evacuation precheck -a evacAllData -e 52b5af7a-644a-c68f-e81e-4c0c79246d26 -v
Action: Evacuate All Data
Evacuation Outcome: Success
Entity: Disk mpx.vmhba2:C0:T0:L0:2
Data to Move: 1.36 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 0
Objects That Would Have Redundancy Reduced: None
Additional Space Needed for Evacuation: N/A


[root@esxi-1:~] esxcli vsan debug evacuation precheck -a ensureAccess -e 52b5af7a-644a-c68f-e81e-4c0c79246d26 -v


Action: Ensure Accessibility
Evacuation Outcome: Success
Entity: Disk mpx.vmhba2:C0:T0:L0:2

Data to Move: 0.00 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 4
Objects That Would Have Redundancy Reduced: 06bfc85f-aafe-0121-8a41-00505601eab9, cbbec85f-e4b5-bea1-352b-00505601eab9, cbadc85b-9500-83ae-3be4-005056016fc3, d0bec85f-5e67-45f2-de8c-00505601eab9
Additional Space Needed for Evacuation: N/A
[root@esxi-1:~] esxcli vsan debug evacuation precheck -a noAction -e 52b5af7a-644a-c68f-e81e-4c0c79246d26 -v

Action: No Action
Evacuation Outcome: Success
Entity: Disk mpx.vmhba2:C0:T0:L0:2
Data to Move: 0.00 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 4
Objects That Would Have Redundancy Reduced: 06bfc85f-aafe-0121-8a41-00505601eab9, cbbec85f-e4b5-bea1-352b-00505601eab9, cbadc85b-9500-83ae-3be4-005056016fc3, d0bec85f-5e67-45f2-de8c-00505601eab9
Additional Space Needed for Evacuation: N/A


To check evacuation pre-check for disks using Name :-

[root@esxi-1:~] esxcli vsan debug evacuation precheck -a evacAllData -e 'mpx.vmhba2:C0:T0:L0' -v
Action: Evacuate All Data
Evacuation Outcome: Success
Entity: Disk mpx.vmhba2:C0:T0:L0:2
Data to Move: 1.36 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 0
Objects That Would Have Redundancy Reduced: None
Additional Space Needed for Evacuation: N/A


Diskgroup Evacuation Pre-check

[root@esxi-1:~] esxcli vsan debug evacuation precheck -a noAction -e 52b5af7a-644a-c68f-e81e-4c0c79246d26 -v
Action: No Action
Evacuation Outcome: Success
Entity: Disk mpx.vmhba2:C0:T0:L0:2
Data to Move: 0.00 GB
Number Of Objects That Would Become Inaccessible: 0
Objects That Would Become Inaccessible: None
Number Of Objects That Would Have Redundancy Reduced: 4
Objects That Would Have Redundancy Reduced: 06bfc85f-aafe-0121-8a41-00505601eab9, cbbec85f-e4b5-bea1-352b-00505601eab9, cbadc85b-9500-83ae-3be4-005056016fc3, d0bec85f-5e67-45f2-de8c-00505601eab9
Additional Space Needed for Evacuation: N/A