Error : Datastore is not accessible. "No connected and accessible host is attached to this datastore."
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
The issue can be caused by a disconnected host in vCenter. Since vCenter may route datastore modification tasks through any host, selecting a disconnected host results in task failure due to lack of access.
To resolve the issue, either remove the disconnected host from vCenter if it is no longer in use, or restore its connectivity so it can access the shared datastores.
For guidance on resolving host disconnection issues, refer to the following articles:ESXi host disconnects intermittently from vCenter Server
ESXi host disconnects from vCenter Server after adding or connecting it to the inventory