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.
YYYY-MM-DDTHH:MM:SS lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [warn] Cannot get Lun for device naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [warn] Cannot get Lun for device naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [warn] Cannot get Lun for device naa.#########################
YYYY-MM-DDTHH:MM:SS lsud[265849]: [info] fd6:GETDEVICEINFO dev name = naa.#########################
YYYY-MM-DDTHH:MM:SS 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.
LUN has been removed from the ESXi host, The LUN is still listed as a detached LUN.
We can verify affected LUN(s) by either of the commands,
[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
}
To remove a detached LUN,
esxcli storage core device detached remove --device naa.######################### or,localcli storage core device setconfig -d naa.######################### --detached=falseProduction is not impacted but warnings of "Cannot get Lun for device naa.#########################" keep generating.