linux无法umount解决方案
来源:互联网 发布:python源码下载 编辑:程序博客网 时间:2024/06/04 17:53
转载自http://www.cnblogs.com/heric/p/5825244.html
[root@995120-master ~]# umount /drbd/
umount: /drbd: device is busy.
(In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
解决方式一:
一、查找使用这个文件的进程和命令,具体的操作代码
[root@995120-master ~]# lsof |grep "/drbd"
jbd2/drbd 8219 root cwd DIR 253,0 4096 2 /
jbd2/drbd 8219 root rtd DIR 253,0 4096 2 /
jbd2/drbd 8219 root txt unknown /proc/8219/exe
bash 8510 root cwd DIR 147,0 4096 3801089 /drbd/mysql
二、然后执行ps命令可以查找执行此进程的命令
[root@995120-master ~]# ps -ef|grep 8510
root 8510 8505 0 10:54 pts/0 00:00:00 -bash
root 8536 8455 0 10:58 pts/1 00:00:00 grep 8510
三、强行结束无关进程
[root@localhost ~]# kill -9 8510
四、然后卸载相关挂载
[root@localhost ~]# umount /drbd
解决方式二:
[root@995120-master ~]# lsof -w /drbd
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 8510 root cwd DIR 147,0 4096 3801089 /drbd/mysql
注:-w参数表示不打印警告信息.
直接kill -9 8510即可
解决方式 三 :
列出该进程:
[root@995120-master ~]# fuser -m /drbd
/drbd: 8510c
杀掉使用/drbd 挂载点的进程(而且 使用这个进程的用户也会弹出)
[root@995120-master ~]# fuser -km /drbd
/drbd: 8510c
使用此进程的机器用户也踢出掉了,如下:
[root@995120-master mysql]# Connection to 192.168.88.7 closed.
[root@995120-master ~]# umount /drbd/
- linux无法umount解决方案
- 无法umount解决过程
- ubuntu 挂载 nfs 成功后无法umount 提示 device is busy 解决方案
- ubuntu 挂载 nfs 成功后无法umount 提示 device is busy 解决方案
- linux mount / umount 命令
- Linux mount/umount
- Linux mount umount
- linux下强制umount
- linux umount 命令介绍
- Linux umount --卸除文件系统
- linux 11 -- mount,umount
- linux mount umount
- linux umount命令详解
- 一次无法umount解决过程
- umount
- linux mount/umount系统调用
- linux mount 与umount 学习心得
- Linux umount device is busy
- json中的单引号
- fragment懒加载小总结
- Futaba S-BUS controlled by mbed(使用mbed控制Futaba S-BUS)
- java学集合前准备知识object类中的常用方法
- 对Verilog 初学者比较有用的整理(转自它处)
- linux无法umount解决方案
- 小白学习html标签归纳
- Android 控件之ImageButton、ImageView
- Ubuntu 安装ruby on rails
- Hierarchical Select in a block as a taxonomy filter
- Controller 规范写法
- Android中dp,sp,mm,in,pt转px值
- Hive 数据抽样
- 导入文件,当Ctrl+A全选时,并不能完全导入的问题。(借鉴网络)