mount: /dev/sdxx already mounted or /xxxx busy解决方法
Posted monkey6
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mount: /dev/sdxx already mounted or /xxxx busy解决方法相关的知识,希望对你有一定的参考价值。
异常现象:
解决方法:
1. 輸入root的密碼,進入單用戶
2. 重新掛載/目錄,使其變為可讀可寫
# mount –o rw,remount /
3. 修改/etc/fstab文件,注釋掉sdb
這個sdb是存儲直連服務器的
# vi /etc/fstab ----------------------------------------------------------------------------------------------------------- #/dev/sdb1 /D37data01 ext4 defaults 1 2 #/dev/sdb2 /D37data02 ext4 defaults 1 2 -----------------------------------------------------------------------------------------------------------
4. 重啟服務器
# reboot
5. 進入系統,掛載文件
# mount /dev/sdb1 / D37data01
此時,報錯如下
----------------------------------------------------------------------------------------------------------- mount: /dev/sdb1 already mounted or /D37data01 busy -----------------------------------------------------------------------------------------------------------
6. 執行第5步報錯是因為sdb1被其他程式佔用
# dmsetup status ----------------------------------------------------------------------------------------------------------- 執行后,顯示類似下邊的輸出。此次異常輸出沒有保存,但是顯示的是multipath程式佔用 ResultFromHadoop-ResultFromHadoop: 0 3907026944 linear ResultFromHadoop-ResultFromHadoop: 3907026944 3907026944 linear ResultFromHadoop-ResultFromHadoop: 7814053888 3907026944 linea -----------------------------------------------------------------------------------------------------------
# dmsetup remove_all(此命令解除佔用)
# dmsetup status(再次查看,沒有輸出,說明已經沒有佔用)
7. 再次掛載
# mount /dev/sdb1 / D37data01 # mount /dev/sdb2 /D37data02
8. 打開數據庫
9. 卸載multipath
配置好yum
# yum remove device-mapper-multipath # yum remove device-mapper-multipath-libs
10. 修改/etc/fatab,取消sdb的注釋
以上是关于mount: /dev/sdxx already mounted or /xxxx busy解决方法的主要内容,如果未能解决你的问题,请参考以下文章
mount: /dev/sdb already mounted or /sheepdog1 busy(multipath,wwid,uuid,udev)
mac smartsvn is already a working copy for different url 怎么处理
Mac Anaconda重装报错: Anaconda3 is already installed in /opt/anaconda3.
Address localhost:1099 is already in use(IDEA启动Tomcat报错1099 is already in use)