Ask The Experts

Highlighted

how to find LUN not used ? (is there a way to fined orphan LUN?)

Hi,

i have Ontap 9.6 with FC.

500 hosts using HBA and 350 LANs.

i want to know what LUNs are presented to hosts that not connected to the storage.

currently i am running  "fcp ping-igroup show" and using excell manipulation to get list of disconnected hosts.

 

is there a way to fined orphan LUN? (better by GUI)

 

3 REPLIES 3
Highlighted

Re: how to find LUN not used ? (is there a way to fined orphan LUN?)

Hi,

 

Simplest way to identify LUNs which are not connected to Storage is to search using 'unmapped' filter. This will inventory the LUN which are 'unmapped' from storage (whether offline or online state). Please note, if the volumes holding the LUNs are offline, then it cannot retrieve the LUNs except the volume names.

 

CLI:

::> lun show -mapped unmapped
Vserver Path State Mapped Type Size
--------- ------------------------------- ------- -------- -------- --------
test_SVM /vol/lun_iscsi_vol/lun_iscsi
online unmapped windows_2008 10.00GB


Warning: the LUN inventory was not available for the following volumes:
Volume "test" on Vserver "test_SVM". Reason: Volume is offline

 

I doubt GUI has that field to sort on.

 

Thanks!

View solution in original post

Highlighted

Re: how to find LUN not used ? (is there a way to fined orphan LUN?)

Hi,

thanks for this replay.

it give me list of unmapped lun.

i need more:

i need list of lun that in "map" state but the initiator are disconnect.

 

Arie Shenar

Highlighted

Re: how to find LUN not used ? (is there a way to fined orphan LUN?)

You can use following command: Look for the Initiators(host) 'not logged in' or disconnected:

::> igroup show -fields vserver,igroup,init-details
vserver igroup init-details
---------- ----------- ----------------------------------------------------------------
test test_grp "iqn.1991-05.com.microsoft:xxxx.online.local (not logged in)"


If you want to know to which LUN, these disconnected initiators (not logged in) belong to? Make a note of the igroup and run this command:
::> mapping show -igroup test_grp -fields vserver,lun

 

Hope this helps.

Check out the KB!
NetApp Insights To Action
All Community Forums