Hi there,
I am wondering how to know if a iscsi datastore ever mounted/unmounted on a host?
Here is the steps and problems I got.
1. Add iscsi static target to host.
2. Rescan Hba
3. If the datastore is newly connected then vSphere will mount this datastore. If not, and the datastore was dismounted to the host in last connection then I would like to manually mount (mountVmfsVolume) this datastore.
If I manually mount a datastore that suppose to auto-mount by vSphere then it will occurs "InvalidState Exception" on MOB instruction "mountVmfsVolume". The exception message is "The operation is not allowed in the current state"
How do I know if the datastore will be auto-mounted and avoid this exception from MOB? Is any information I can use before manually mount this datastore?
Wood