背景:
针对df -h 命令长时间没有响应的问题
解决方案:
1、采用 strace df -h 命令定位卡在哪里?
以上问题可能出在磁盘挂载问题
2、通过“systemctl restart proc-sys-fs-binfmt_misc.automount;”命令进一步重置挂载
[root@pb_hdp_03 containers]# systemctl restart proc-sys-fs-binfmt_misc.automount;
[root@pb_hdp_03 containers]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 9.9M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 35G 16G 70% /
tmpfs 6.3G 8.0K 6.3G 1% /run/user/42
/dev/mapper/centos-home 1.9T 200G 1.7T 11% /home
/dev/sda2 497M 183M 315M 37% /boot
/dev/sda1 200M 9.8M 191M 5% /boot/efi
3、问题得到解决:
感谢:https://blog.csdn.net/u012599988/article/details/81063055 博文
感谢:https://blog.csdn.net/lufeisan/article/details/53150319 博文