登陸服務器想查看磁盤使用狀況,使用了df,但卡住半天沒有響應,運行strace df,發現最後卡在了stat(「/proc/sys/fs/binfmt_misc」,
沒法進入這個路徑「/proc/sys/fs/binfmt_misc」,想到」/proc/sys/fs/」下ls看下這個文件夾,也會卡住服務器運行mount輸出,正常有「binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,relatime)」,發現這個服務器沒有掛載,想嘗試掛載mount binfmt_misc -t binfmt_misc
/proc/sys/fs/binfmt_misc ,也會卡在「readlink(「/proc/sys/fs/binfmt_misc」」ui
解決方式1. systemctl restart proc-sys-fs-binfmt_misc.automount; 2. 升級到最新 systemd-219-57 版本; 3. 按照紅帽知識庫的步驟對 proc-sys-fs-binfmt_misc.automount 進行 mask 操做, 只進行靜態的 mount 操做; 我用的第一種方式,親測好使。