df -h执行卡住不动问题解决
2015-09-14 11:43
495 查看
昨天生产环境报日志写不进去了,因此 登陆线上环境后,习惯用df -h命令查看空间使用情况,结果发现该命令执行半天也没有返回。
因此使用mount命令查看该机器上的目录:
发现有三个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
因此使用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
相关文章推荐
- 滚动显示升级进度的程序
- 教大家8天学通MongoDB――第一天 基础入门篇
- IDIOPEN 2013 A Angry Grammar Nazi(字符串处理)
- vs中无法加入断点进行调试的解决方案
- Android - 除首次使用状态(SharedPreferences)
- java中4种修饰符访问权限的区别
- hdu5438(2015长春赛区网络赛1002)拓扑序+DFS
- 立象Argox条码打印机CP-2140M开发
- CSS padding margin border
- python-unittest
- Algorithms—40.Combination Sum II
- JDBC连接常用数据库 基本的CURD
- Oracle分析函数系列之first_value/last_value:在记录集中查找第一条记录和最后一条记录
- OC学习之Runtime之一类与对象
- 目标跟踪算法的分类
- java匿名内部类详解
- (最小生成树(并查集加边法))2015网选,hdu5441 Travel
- Socket模型详解
- Ruby on Rails: 使用devise+cancan+rolify建立完整的权限管理系统
- APP抓链接工具(Fiddler版)