-
Notifications
You must be signed in to change notification settings - Fork 95
vmdk-ops service unable to identify the newly mounted datastore on ESX host. But identifies after the service restart. #660
Comments
So there is 'NFSDatastore' and also "NFSStore' ? just checking. Can you share the results of 'ls -l /vmfs/volumes` ? |
Also, it was able to identify only after the service vmdk-ops restart.
|
Since datastores is not null, we do not rescan. We should. When you restart vmdksops, it rescans and re-populates |
@BaluDontu Good catch. Do you want to do a PR? |
We should not rescan, DS are cached for a reason - there are way too many cases when we fetch the list so there is a significant perf impact. In linux I'd use iNotify, in esx I hope we can get a notification when new DS is added ? -- Mark On Fri, Oct 28, 2016 at 1:20 PM, Prashant Dhamdherenotifications@github.com wrote: — |
Yes. I would agree with Mark. We could use the inotify python package to watch a specific directory for create/remove operations (in our case /vmfs/volumes) and then only repopulate the datastores. If this is not a high priority PR, I can work on this. |
I would also like to share few more things on my analysis.
For example, vmdk-ops service was able to identify the datastore "nfsstore-baominw" without any restart.
vmdk-ops service was not able to identify the datastore "nfsstore-baominw". I need to restart the service for vmdk-ops to identify this newly created datastore. For both the above scenarios, I can see "nfsstore-baominw" volume created under /vmfs/volumes/. I didn't understand why it behaves differently in these 2 cases. However a retry to get the latest datastores on failure would solve the problem. I want to check with you guys on why this could occur. I will also try it from my end. |
Fixed with #714 |
Hi guys,
I have mounted a new NFS datastore with name "NFSStore" on ESX host.
When I execute following docker create volume command, it gives an error Invalid datastore.
docker volume create -d=vmdk --name=volume@NFSStore
Error response from daemon: create volume@NFSStore: VolumeDriver.Create: Invalid datastore 'NFSStore'.
Known datastores: datastore1, NFSDatastore, coke (1).
Default datastore: datastore1
I am able to see the volume create under /vmfs/volume/NFSStore on ESX host. However vmdk-ops service is unable to identify it.
The text was updated successfully, but these errors were encountered: