Symptoms
Disk group deletion for a SSD replacement fails because a resynchronization is running.When deleting a disk group , the follow error may occur:
"Unable to remove device: Failed to get VSAN disk operation lock, a disk management operation is currently in progress(locked pid: 0),
Error interacting withonfi cguration file /tmp/.vsanDiskOpLock.lock:
Timeout while waiting for lock, /tmp/.vsanDiskOpLock.lock.LOCK, to be released. Another process has kept this file locked for more than 30 seconds.
The process currently holding the lock is localcli(537556682). This is likely a temporary condition. Please try your operation again.."
Cause
A vsanDiskOpLock.lock file has been observed in /tmp directory while resynchronization processing.
Resolution
Whenever possible, you should wait for the resynchronization process to finish.If you cannot wait for the resynchronization to complete, follow the steps below.1.Place the host in maintenance mode 1.1. In the vCenter Client, navigate to the hosts and clusters view. 1.2. Right click the host 1.3.In the option menu that appears, navigate to 'Maintenance Mode' and click 'Enter Maintenance Mode.' 1.4. Decide whether you wish for powered off VMs to move (if you plan to power on any of the powered off VMs while the host is gone keep this checked) 1.5. Select 'Ensure Accessibility for the vSAN data migration and click 'OK' 1.6. Wait for a task for entering maintenance mode to complete in 'recent tasks'. When it enters maintenance mode, the node has 'caution tape' icon.2.Perform host reboot 2.1. In the vCenter Client on the hosts and clusters view 2.2. Right click the host 2.3. In the option menu that appears, navigate to 'Power' and click 'Reboot'3.Retry the disk group delete using the web client or HTML5 client.4.If the deletion of the disk group failed with another error, select "No data migration" and try to delete. ***NOTE: Deduplication and compression are enabled, disk group cannot be used in case of SSD failure. Therefore, the vSAN object does not exist in the disk group of the ESXi host.