Warnings of "Cannot get Lun for device naa.#########################" appear for removed LUN(s)
search cancel

Warnings of "Cannot get Lun for device naa.#########################" appear for removed LUN(s)

book

Article ID: 301549

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Customer is wondering why the removed, no longer existing LUN is still reporting warnings. We need an action plan to remove such annoyed warnings.



In VMware Aria Operations such warnings "Cannot get Lun for device naa.#########################" appear. And in /var/run/log/syslog.log of ESXi host we see same warnings.

 

2023-07-24T11:18:25.092Z lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################

2023-07-24T11:23:02.531Z lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################

2023-07-24T11:26:41.188Z lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################

2023-07-24T11:26:41.188Z lsud[265849]: [warn] Cannot get Lun for device naa.#########################

2023-07-24T11:27:07.846Z lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################

2023-07-24T11:27:07.846Z lsud[265849]: [warn] Cannot get Lun for device naa.#########################

2023-07-24T11:28:10.855Z lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################

2023-07-24T11:28:10.856Z lsud[265849]: [warn] Cannot get Lun for device naa.#########################

2023-07-24T11:29:08.519Z lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################

2023-07-24T11:29:08.519Z lsud[265849]: [warn] Cannot get Lun for device naa.#########################

 

However the LUN naa.######################### may have been removed long time ago and we can not see it either in VC web client or host UI.

 

Environment

VMware vSphere ESXi 7.0

Cause

Sometimes customer removed the LUN but we can still see it in output of "esxcli storage core device list".

Resolution

We can verify affected LUN(s) by either of the commands,

 

  • esxcli storage core device detached list

[root@esxi01:~] esxcli storage core device detached list

Device UID                           State

------------------------------------ -----

naa.######################### off

  • "vsish -e ls /storage/scsifw/persistDeviceAttrs/uids" and "vsish -e cat /storage/scsifw/persistDeviceAttrs/uids/naa.xxxx"

[root@esxi01:~] vsish -e ls /storage/scsifw/persistDeviceAttrs/uids

naa.#########################

[root@esxi01:~] vsish -e cat /storage/scsifw/persistDeviceAttrs/uids/naa.#########################

Device Persistent Attributes {

  detached:1 <=== the LUN is in detached list

  perennially reserved:0

  not shared:0

}

 

And the commands to totally remove the LUN are either of,

 

  • esxcli storage core device detached remove --device naa.#########################
  • localcli storage core device setconfig -d naa.######################### --detached=false

 

 

 

Additional Information

Impact/Risks:

Production is not impacted but warnings of "Cannot get Lun for device naa.#########################" keep generating.