zoukankan      html  css  js  c++  java
  • OS + Centos df busy

    s

    df -h命令卡死解决办法

    https://www.cnblogs.com/heruiguo/p/8427252.html

    正文

    1、现象

    同事突然反应说有个服务器进入/目录运行 ls  -l 无反应,同时运行df  -h也卡死了。如果你的机器有用到nfs请直接看第四大点。

    2、分析

        运行mount

    [conversant@swiftmedia-esc ~]$ mount
    /dev/mapper/VolGroup-lv_root on / type ext4 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    tmpfs on /dev/shm type tmpfs (rw)
    /dev/sda1 on /boot type ext4 (rw)
    /dev/mapper/VolGroup-lv_home on /home type ext4 (rw)
    /dev/mapper/VolGroup-lv_var on /var type ext4 (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    203.116.18.239:/opt/storage-escape on /opt/storage-scms type nfs (rw,addr=203.116.18.239)
    203.116.18.239:/opt/storage-escape on /opt/storage-escape type nfs (rw,addr=203.116.18.239)
    203.116.18.239:/test on /test2 type nfs (rw,vers=4,addr=203.116.18.239,clientaddr=203.116.18.233)

    发现有三个nfs目录,因此登陆203.116.18.239 查看目录问题 发现/test 这个目录已经被删除了

    因此使用umount命令来卸载

    3、解决

    运行  umount -l   /test2  来卸载设备。选项 –l 并不是马上umount,而是在该目录空闲后再umount。

    以上不行,就运行如下命令

    fuser -m -v /test2

    fuser -m -v -i -k   /test2  使用i参数会问你是否kill掉这个某个进程,按y就把它kill了。

    4、其他情况

    该服务器做了服务端的NFS目录,但是由于服务端所在的服务器重启了机器,导致客户端读不到服务端的目录导致卡死。

    解决办法,在服务器重启nfs服务

    server  restart    nfs  

    客户端也再次重启nfs

    server  restart    nfs  

    end

  • 相关阅读:
    iframe跨域
    changePage() 页面跳转
    APACHE启动失败是SYSTEM对apache目录没权限导致
    git使用中出现的错误
    python面试总结
    python面试30-40题
    python面试1-30题
    购物车的基本流程
    vue的基础知识
    三大框架的对比
  • 原文地址:https://www.cnblogs.com/lindows/p/15268326.html
Copyright © 2011-2022 走看看