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.
Sometimes customer removed the LUN but we can still see it in output of "esxcli storage core device list".
We can verify affected LUN(s) by either of the commands,
[root@esxi01:~] esxcli storage core device detached list
Device UID State
------------------------------------ -----
naa.######################### off
[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,
Impact/Risks:
Production is not impacted but warnings of "Cannot get Lun for device naa.#########################" keep generating.