ONTAP Discussions

NetApp LUN housekeeping

Zulhadi
352 Views

Hi all,

 

Can anyone guide me on how to verify the status of a LUN (via GUI or CLI) to ensure it is not in use or mapped but not used in any host/server?

I need to confirm definitively that the LUN is no longer in use before proceeding with removal. Any guide would be appreciated. Thank you.

 

Regards,

Zul

1 ACCEPTED SOLUTION

Vijay5
161 Views

Hi Zul,

 

you can use lun show command where it gives you the state whether its mapped or unmapped. if you need to check for the specific lun, you can use lun mapping show command 

 

Ref:

https://docs.netapp.com/us-en/ontap-cli/lun-mapping-show.html#description

View solution in original post

5 REPLIES 5

wareer
311 Views

You can use the following command:

::>lun show                    View map status

::>lun mapping show                 View the lun that is being mounted

Here is a link you can refer tohttps://docs.netapp.com/us-en/ontap-cli-97//lun-mapping-show.html#description 

Zulhadi
94 Views

hi @wareer ,

 

Any specific command and parameter to check if lun is mounted but not use or dont have any I/O on that mounted LUN? Please advise

Vijay5
162 Views

Hi Zul,

 

you can use lun show command where it gives you the state whether its mapped or unmapped. if you need to check for the specific lun, you can use lun mapping show command 

 

Ref:

https://docs.netapp.com/us-en/ontap-cli/lun-mapping-show.html#description

Zulhadi
94 Views

Hi Vijay,

 

If LUN is mapped, it appeared as a path when we run the command right? And is it the mapped LUN is considered LUN is in use? Or might mapped but not use? Please advise

 

Zulhadi_1-1730882744283.png

 

Vijay5
25 Views
Hi Zulhadi,

Lun mapping a logical entity for a host to access the lun and when a lun is mapped it will be visible on the host.
We can't really say if a lun is in use or not just by the lun mapping , host admin should be aware off if they are in use.
You can use sysstat commad to check if there are IOPS happening on that lun.
If you are planning to decommission, then unmap the lun followed by the decommission process.

Regards,
VijayaKumar P
Public