How to detach a LUN from existing datastore

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"



4.Now go to existing datastore ->Select->Mount the datastores.
  Power on /Register VM from inventory.

No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...