mount: /dev/sdb1 already mounted or /mnt/hdb busy 致使NameNode没法启动

最近,公司因为断电致使的服务器关机,等到来电了,重启集群发现Namenode没法启动,查看缘由是因为没法加在faimage文件,在查看一下Namenode的磁盘挂在状况(df -h命令查看),发现磁盘并有挂在上,因而执行mount -a命令 出现mount: /dev/sdb1 already mounted or /mnt/hdb busy。因而百度一下解决了。解决方法以下:node

在挂载硬盘分区的时候,会出现mount: /dev/sdd1 already mounted or /data3 busy或者是在执行格式化分区的时候也会出现服务器

/dev/hdb1 is apparently in use by the system; will not make a filesystem here!app

解决方法:
[root@localhost ~]# dmsetup statusoop

ResultFromHadoop-ResultFromHadoop: 0 3907026944 linear
ResultFromHadoop-ResultFromHadoop: 3907026944 3907026944 linear
ResultFromHadoop-ResultFromHadoop: 7814053888 3907026944 linearrem

[root@localhost ~]# dmsetup remove_all集群

[root@localhost ~]# dmsetup status百度

No devices foundfile

再次执行mount /dev/sdd1 /data3就能够进行挂载了方法

相关文章
相关标签/搜索