df -h执行卡住不动问题解决【转】

昨天生产环境报日志写不进去了,因此 登陆线上环境后,习惯用df -h命令查看空间使用情况,结果发现该命令执行半天也没有返回。

因此使用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:/ta/data/swiftcoder/input/local/escape on /ta/data/swiftcoder/input/local/escape type nfs (rw,vers=4,addr=203.116.18.239,clientaddr=203.116.18.233)
复制代码
复制代码

 

发现有三个nfs目录,因此登陆203.116.18.239 查看目录问题 发现/ta/data/swiftcoder/input/local/escape 这个目录已经被删除了

因此使用umount命令来卸载

umount

umount -l /ta/data/swiftcoder/input/local/escape来卸载设备。选项 –l 并不是马上umount,而是在该目录空闲后再umount。

 

device is busy

fuser :identify processes using files or sockets

fuser -m -v /ta/data/swiftcoder/input/local/escape

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

 

lsof |grep ‘ta/data’

kill –9 pid

 

转自

df -h执行卡住不动问题解决 - lily-tiantian - 博客园 https://www.cnblogs.com/lily-tiantian/p/4806751.html

posted @   paul_hch  阅读(1099)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2017-01-11 简析TCP的三次握手与四次分手【转】
2017-01-11 TCP协议中的三次握手和四次挥手(图解)【转】
点击右上角即可分享
微信分享提示