In case if you want to detach a LUN fro ma datastore, please follow.
In my case i have a datastore created using multiple LUNs and need to remove one particular LUN.
1.Find out the LUN id or NAA ID of the lun to be removed.
if you remember lun ID that can be used or use UUI/NAA ID from below commands.
esxcli storage vmfs extent list
2. make sure you power off all the VMs and unmount datastore [if you get device busy,unregister VM from inventory]
3.Now go to ESXI host-> Storage view under Configure > Storage Devices:
Select the LUN ID and do "Detatch"
In my case i have a datastore created using multiple LUNs and need to remove one particular LUN.
1.Find out the LUN id or NAA ID of the lun to be removed.
if you remember lun ID that can be used or use UUI/NAA ID from below commands.
esxcli storage vmfs extent list
2. make sure you power off all the VMs and unmount datastore [if you get device busy,unregister VM from inventory]
3.Now go to ESXI host-> Storage view under Configure > Storage Devices:
Select the LUN ID and do "Detatch"
4.Now go to existing datastore ->Select->Mount the datastores.
Power on /Register VM from inventory.