2024年6月7日 星期五

ESXi find what process lock file


ESXi 檔案刪不掉,出現 Device or resource busy
若檔案名稱是 windows-10-flat.vmdk
下此指令就可以知道那邊佔用

ps | grep `lsof | awk '/windows-10-flat.vmdk/ {print $1}'`

另外這個指令可以顯示機器名稱與 datastore 的檔案對應,

vim-cmd vmsvc/getallvms

改機器名稱,datastore 的檔案不會跟著改名,有可能出現與目錄名稱不一致的情況

沒有留言:

RouterOS WireGuard

RouterOS 在 7 版以後支援 WireGuard 註: WireGuard 在 Linux Kernel 5.6 版開始內建 設定滿簡單的,在選單 WireGuard New Interface,Private Key 及 Public Key 不用填,會自動產生 在 I...