Error message while deleting disk group:General vSAN error. vSAN disk data evacuation resource check has failed for disk or disk-group naa.58cxxxxxx (527c3109-ce7a-xxx-xxxx-xxxxxxxx) with mode noAction on host hostname.com. Go to vSAN Data Migration Pre-Check page for more details.
A general system error occurred: Falled to decommission disk naa.50xxxxxxxxx: Failed to update diskState metadata for disk naa.50xxxxxxxxx with exception: Failed to write partition.Disk(s) 52a5e6e0-5359-xxxx-xxx-xxxxxxx , 52299652-2a60-xxxx-xxx-xxxxxxx , 52108e7e-7caa-xxxx-xxx-xxxxxxx , 52a8efb7-3e54-xxxx-xxx-xxxxxxx , 527eee1c-f821-xxxx-xxx-xxxxxxx are unmounted, but are part of a mounted disk group.Unable to remove device: Failed to get VsanInfo operation lock for diskOpLock, an operation is currently in progress(locked pid: 0), error: /tmp/.vsanDiskOpLock.lock.LOCK: timeout waiting for lock after 30 seconds. Lock is currently held by process 2167523 (vsanesxcmd: /usr/lib/vmware/vsan/bin/vsanesxcmd storage diskgroup mount -s naa.58cexxxxxxx)
Unable to remove device: Disk naa.58cexxxxxxx is not writable: Failed to write partitionTrying to read the partition may fail with the below error:Error: Could not stat device /vmfs/devices/disks//vmfs/devices/disks/naa.58cexxxxxxx - No such file or directory.Unable to get device /vmfs/devices/disks//vmfs/devices/disks/naa.58cexxxxxxx
VMware vSAN 7.x
VMware vSAN 8.x
The disk has failed in such a way that ESXi host is not able to communicate with it but is able to view it.
Log entries similar to below may be seen in /var/run/log/vmkernel.log:
YYYY-MM-DDTHH:MM:SSZ cpu4:2098069) ScsiDeviceIO: 4176: Cmd (0x45b9fc931fc6) 0x65, CmdSN Ox1352 from world 2102614 to dev "naa.50xxxxxxxxxxxxxx" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x7 0x27 0x0This sense code 0x7 0x27 means:
[0x7] --> DATA PROTECT
27/00 --> WRITE PROTECTED
Meaning vSAN is unable to write to the device.
YYYY-MM-DDTHH:MM:SS.SSSZ In(182) vmkernel: cpu88:2098812) ScsiDeviceIO: 4686: Cmd (0x45df8dec7e80) 0x28, CmdSN 0x8989ca4 from world 0 to dev "naa. #######" failed H:0x0 D: 0x2 P: 0x0 Valid sense data: 0x3 0x11 0x1 Medium Error, LBA: 1038451712In this state as well, at times it may not be possible to remove the disk from the vSphere Client.
To remove the faulty disk from the disk group in this state, perform the below:
Place host with faulty disk into maintenance mode with Ensure accessibility.
Attempt to remove the faulty disk from CLI using How to manually remove and recreate a vSAN disk group using esxcli.
If this does, not work then remove the faulty disk physically from the server and replace with new disk, and then reattempt step 1.
If this fails as well, reboot the host and then attempt to remove from CLI once more.
Now add the newly added disk to the disk group.