Linux系统卸载磁盘时报错that use the device is found by lsof(8) or fuser(1)查看挂载


今天在卸载磁盘时报错

[root@cosmo-lt-03 ~]# umount /data
umount: /data: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

报错原因:

报错描述很明显,还有别的进程在对磁盘进行读写

解决办法:

fuser -m -v /dev/vdb

然后kill -9 进程ID
如果没有此命令,则安装

yum install -y psmisc

或者使用:

lsof |grep /data

然后同样kill -9 进程ID
如果没有此命令,则安装

yum install -y lsof

Linux查看挂载的三种方式

# 方法1
df -Th

# 方法2
mount -l

# 方法3
cat /etc/mtab

然后就可以接着进行卸载了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM