Attempts to place a datastore into maintenance mode fail with the message "The enter maintenance mode task will start but cannot finish..." even when the datastore appears empty or contains no virtual machines. This issue occurs when vCenter inventory retains stale references to objects on the datastore.
vCenter Server tracks datastore usage through its internal database. If a template or VM is registered to a datastore in the database, the maintenance mode workflow waits for that object to be evacuated. Stale inventory references or hidden vSphere Cluster Services (vCLS) VMs prevent the task from completing.
vmfsfilelockinfo -p /vmfs/volumes/####services.sh restart