Is your Iomega NAS iSCSI drive locked by vSphere and you don’t want to reboot? This works with vSphere 4.1 (using ESXi but should be the same for ESX versions), and an Iomega StorCenter ix4-200d (firmware 188.8.131.5294). If you encounter issues with another version, please let me know.
I’ve had some trouble off and on with iSCSI on my Iomega IX4 series NAS. The trouble exists around removing the iSCSI target from vSphere but not releasing the hold on the NAS typically requiring a reboot of both the NAS and the host to remove the lock. As I don’t like taking my host(s) or NAS down, through a little experimentation, I’ve come up with the steps necessary to remove the target allowing for the editing or deleting of the iSCSI drive on the NAS. While something is connected to it, the IX4 will not allow editing or deletion. This also works for removing a single target drive while vSphere is still pointing to other targets on the NAS.
Let’s get to it!
Step 1 – Move the VMs that are on the target iSCSI volume to a different datastore.
Step 2 – Navigate to Home > Inventory > Hosts and Clusters, and click on the configuration tab. Select Storage, under the Hardware category. Right-Click on the datastore that you want to remove, and select Delete. At this point the datastore has been removed, but there is no data loss.
Step 3 – Still under the Hardware category, click on Storage Adapters. In the right pane, click on Properties. Delete the entry under Dynamic Discovery if there is one. After removing what we need to remove, the HBA will need to be rescanned, and if Dynamic Discovery is still on with your SAN / NAS target, it’ll redetect the storage. Under the Static Discovery tab, remove the entry for the storage that you want to remove. The target name will be a long string of characters, but will end with what you named the datastore. Make sure you remove the correct datastore.
Step 4 – After the target has been removed and you close the window, you will be prompted to rescan the HBA. After doing so, you can see in the image below that the iSCSI target has been removed.
Step 5 – You must repeat the above steps for any hosts that you have set up to use the target. Each host is managed independently at the storage adapter level. In a cluster, the datastore will be removed from both automatically after removing it from the first.
Step 6 – Head back to the NAS management console and as you can see, you should now be able to edit or delete your iSCSI drive. All without having to reboot ESX/vSphere or your NAS.