Hi,
1. We have a requirement to remove the LUN state information from the host after detaching the LUN.
For this we are using deleteScsiLunState API.
I want a way to verify that, if SCSI LUN state is deleted from the host successfully.
2. After detaching lun and deleting the LUN state from the host, I want the same LUN available for adding in the new datastore. Currently I am not able to see the LUN in the available LUN list.(I am trying through VC)
Regards,
Shubhada
Hi,
Go through the link below... Answer all your queries.
Thanks.
Is there any way to do through vSphere client or API?
If the datastore has been successfully removed, #esxcfg-scsidevs -m will not show the device as mounted but esxcli software core device list should still show the device as available for creating a new datastore
On the vSphere Client, the device should not show up under "storage" but should list under "storage adapters"
Do you know the way through powerCLI or vSphere client for checking the LUN state information in the host?
I observed that, deleteScsiLunState() ends with success even if the LUN is not detached and datasore is mounted.
To unmount a LUN from an ESXi 5.x host using the command line:
Take King_Robert's answer in combination with this solution to call esxcli from vCO workflows, and you should be able to automate it.
https://communities.vmware.com/message/2314278
The original answer if all that is available directly via the vCenter API still stands unanswered I guess...
Cheers,
Joerg