Linux存儲掛載後,沒法正常卸載的解決方法

明明設備沒有任何人在操做,卻沒法使用umount正常卸載 進程

# umount /dev/sdd1 方法

umount: /TomcatLog: device is busy.
        (In some cases useful info about processes that use

         the device is found by lsof(8) or fuser(1)) vi

umount -f 強制卸載也是無能爲力 process

[root@gj2 ~]# umount -f /TomcatLog
umount2: Device or resource busy
umount: /TomcatLog: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

umount2: Device or resource busy sse

解決方法: cas

# fuser -cu /TomcatLog/
/TomcatLog/:          9590c(root) ab

# fuser -ck /TomcatLog/

# umount /TomcatLog

能夠正常卸載了。

說明:

-c表示顯示全部掛載該設備的進程;

-u表示顯示正在操做該設備的用戶名;

-k表示殺死全部訪問該設備的進程(注意:這將殺死訪問該設備的進程,若是有其餘設備也在用這個進程,記得卸載後重啓該服務進程避免影響正常業務);

相關文章
相關標籤/搜索