最近,公司由于断电导致的服务器关机,等到来电了,重启集群发现Namenode无法启动,查看原因是由于无法加在faimage文件,在查看一下Namenode的磁盘挂在情况(df -h命令查看),发现磁盘并有挂在上,于是执行mount -a命令 出现mount: /dev/sdb1 already mounted or /mnt/hdb busy。于是百度一下解决了。解决方法如下:
在挂载硬盘分区的时候,会出现mount: /dev/sdd1 already mounted or /data3 busy或者是在执行格式化分区的时候也会出现
/dev/hdb1 is apparently in use by the system; will not make a filesystem here!
解决方法:
[[email protected] ~]# dmsetup status
ResultFromHadoop-ResultFromHadoop: 0 3907026944 linear
ResultFromHadoop-ResultFromHadoop: 3907026944 3907026944 linear
ResultFromHadoop-ResultFromHadoop: 7814053888 3907026944 linear
[[email protected] ~]# dmsetup remove_all
[[email protected] ~]# dmsetup status
No devices found
再次执行mount /dev/sdd1 /data3就可以进行挂载了
时间: 2024-12-22 21:13:11