linux操作系统彻底清楚报错Disk /dev/mapper/ddf1_4c53492....

现象描述

Disk /dev/mapper/ddf1_4c5349202020202010000055000000004711471100000a28p1: 666.0 GB, 666000889344 bytes

255 heads, 63 sectors/track, 80969 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

Disk /dev/mapper/ddf1_4c5349202020202010000055000000004711471100000a28p1 doesn‘t contain a valid partition table

原因:

这是因为硬盘带有raid信息,拿二手硬盘插入服务器时,系统会根据残留的信息自动发现raid(这是我们不希望发生的)。

并且此时硬盘无法格式化,格式化时会报错,硬盘正在被使用。

如何解决这个问题呢,尝试了一些方法,最后用dmraid解决了问题。

由于系统的自动识别,硬盘被虚拟地组建成了raid(即便没有真实raid存在),这就是报正在被使用,无法格式化的原因。

让我们用dmraid来disable active状态。

1:

[[email protected] ~]# dmraid -a no

ERROR: ddf1: wrong # of devices in RAID set "ddf1_4c5349202020202010000055000000004711471100000a28" [1/2] on /dev/sdb

RAID set "ddf1_4c5349202020202010000055000000004711471100000a28" is not active

RAID set "ddf1_4c5349202020202010000055000000004711471100000a28" is not active

dmraid –a no 命令就是取消active状态,第一行的报错不要管,那是说/dev/sdb上只有1/2raid信息,信息不全,

这里也让我们知道是哪张盘存有raid信息,当然,你直接把sdb换张干净的盘也是可以的。

从后两句可以发现,raid阵列已经not active了。

2.接下来用dmraid –x 来清除raid信息

[[email protected] ~]# dmraid -x

ERROR: ddf1: wrong # of devices in RAID set "ddf1_4c5349202020202010000055000000004711471100000a28" [1/2] on /dev/sdb

About to delete RAID set ddf1_4c5349202020202010000055000000004711471100000a28

WARNING: The metadata stored on the raidset(s) will not be accessible after deletion

Do you want to continue ? [y/n] :

选择y

ERROR: Raid set deletion is not supported in "ddf1" format

显示报错,但是还是删除了,fdisk –l  无raid 信息

然后把分区删除重建,格式化成功,顺利挂载。

时间: 2024-09-28 16:33:14

linux操作系统彻底清楚报错Disk /dev/mapper/ddf1_4c53492....的相关文章

Linux挂载U盘报错:mount: unknown filesystem type 'ntfs'

原因:由于Linux上无法识别NTFS格式的分区的原因 解决方法:安装 ntfs-3g 1.下载:wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz 2.解压:tar zxvf ntfs-3g_ntfsprogs-2017.3.23.tgz 3.进安装目录,编辑 #./configure # make # make install 执行./configure时报错:/bin/rm: cannot remove `l

linux 安装python3.7 报错No module named '_ctypes'

ModuleNotFoundError: No module named '_ctypes' 操作系统:centos yum install libffi-devel ./configure --enable-optimizations make altinstall 参考:https://bugs.python.org/issue31652 linux 安装python3.7 报错No module named '_ctypes' 原文地址:https://www.cnblogs.com/bo

Linux下Oracle11G RAC报错:在安装oracle软件时报file not found一例

Linux下Oracle11G RAC报错:在安装oracle软件时报file notfound一例 1.现象 之前安装一切都比較顺利,安装oracle软件时,进度到30%时报错:file not found(/u01/app/oracle/product/11.2.0/db_1/owb/external/oc4j_applications/applications/WFMLRSVCApp.ear) 2.应对策略 1.  改变选择语言处.仅仅选择"English": 2.  又一次解压

linux下启动tomcat报错 Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness

INFO [localhost-startStop-1] com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$InfoLogger.log(206) | Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: Oracle.Linu

linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.

linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql. 2013-03-04 15:34wdjhz | 分类:服务器软件 | 浏览5318次 configure: error: Cannot find MySQL header files under /usr/include/mysql.Note that the MySQL client library is not bun

intellj下打的jar包在linux服务器删执行报错

intellj下打的jar包在linux服务器删执行报错:http://blog.csdn.net/qq_25925973/article/details/53370501window下用解压工具打开jar包,删除META-INFO下的.SF .RSA文件,删除后上次到linux服务器上,用java jar xx.jar去执行 原文地址:http://blog.51cto.com/5731674/2087591

Linux安装ElasticSearch启动报错的解决方法

Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error details,出现这种情况该如何解决呢?下面小编就为大家带来Linux安装ElasticSearch启动报错的解决方法,一起去看看吧 今天就出现的异常问题专门解决一下.你安装好ElasticSearch以后,在启动的时候需要注意的问题是,ElasticSearch是不能用root用户启动的(这是根据el

linux系统unzip文件报错的解决方案

data.zip文件有4G多,解压的时候出问题了. Archive:  data.zip End-of-central-directorysignature not found.  Either thisfile is not a zipfile, or itconstitutes one disk of a multi-partarchive.  In the latter case the centraldirectory and zipfile comment will be found

jmeter测试接口-打开很多TCP的连接数TIME_WAIT状态(Linux环境)导致报错的解决方法

一 发现问题: 服务器是Linux系统,用jmeter测试接口,发现打开很多的TCP连接,[[email protected] bin]# ulimit -n 65535用这个命令设置了总的连接数:进行压测的时候,连接数可能达到50000以上,很容易报错:查看各个状态的TCP个数:netstat -an | awk '/^tcp/ {++s[$NF]} END {for(a in s) print a,s[a]}',发现连接状态TIME_WAIT的状态很多,(统计80端口连接数netstat -