centos7 df 命令卡死


登錄服務器想查看磁盤使用情況,使用了df,但卡住半天沒有響應。 
運行strace df -h,發現最后卡在了 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””

解決方式1. systemctl restart proc-sys-fs-binfmt_misc.automount; 2. 升級到最新 systemd-219-57 版本; 3. 按照紅帽知識庫的步驟對 proc-sys-fs-binfmt_misc.automount 進行 mask 操作, 只進行靜態的 mount 操作; 我用的第一種方式,親測好使。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM