正常卸載一塊ESXi數(shù)據(jù)存儲(chǔ)后,當(dāng)刪除的時(shí)候報(bào)錯(cuò)Not a known device:naa…,重新掃描存儲(chǔ)后仍無(wú)法刪除。

此時(shí)需要開啟ESXI主機(jī)的SSH功能,使用命令列出永久分離的設(shè)備:
要列出永久分離的設(shè)備,請(qǐng)運(yùn)行以下命令:
# esxcli storage core device detached list
您會(huì)看到類似以下內(nèi)容的輸出:
Device UID State
------------------------------------ -----
naa.50060160c46036df50060160c46036df off
naa.6006016094602800c8e3e1c5d3c8e011 off
要從系統(tǒng)中永久移除設(shè)備配置信息,請(qǐng)運(yùn)行以下命令:
# esxcli storage core device detached remove -d NAA_ID
例如:
# esxcli storage core device detached remove -d naa.50060160c46036df50060160c46036df
此時(shí)只需要在WEB上重新掃描存儲(chǔ),或SSH執(zhí)行命令重新掃描存儲(chǔ)即可:
esxcli storage core adapter rescan --all
參考鏈接1:https://kb.vmware.com/s/article/56994
參考2鏈接2:https://tomaskalabis.com/wordpress/how-remove-unmountedinaccessible-datastore-from-esxi-host/