大网数据广告活动
服务器运维问答

Removing raid metadata from drives

· 52CE 我爱测

Normally when I have a drive which contains raid metadata e.g. from fakeraid or a hardware raid card I can get rid of it with: dmraid -r -E /dev/sdX Or if that doesnt work, doing a simple dd if=/dev/zero of=/dev/sdX normally work…

问题原文

原帖链接 · Tiffany Walker · CC BY-SA 4.0

Normally when I have a drive which contains raid metadata e.g. from fakeraid or a hardware raid card I can get rid of it with:

dmraid -r -E /dev/sdX

Or if that doesnt work, doing a simple dd if=/dev/zero of=/dev/sdX normally works

But I have four WD RE4 drives here and neither option seems to work. dmraid just gives me a CRC error when it reads the drive. I know the drives are fine and they've been checked with smart + WD diagnostics anyway

The actual error on dmraid is:

ddf1: physical drives with CRC 5CD0C0DB, expected FFFFFFFF on /dev/sda
ERROR: ddf1: Cannot find physical drive description on /dev/sda!
ERROR ddf1: setting up RAID device /dev/sad
nor aid disks and with names: "/dev/sda"

Gives the same CRC error for all disks so clearly something strange the raid controller did

I've even formatted them with mdadm through rescuemode to see if that would overwrite it but no difference.

社区高分解答

原帖链接 · Marc Riera · CC BY-SA 4.0

same problem here today.

Solved using the following:

You need your wrong mapper like => /dev/mapper/ddf1XXXXXXXX

Get it using :

fdisk -l 

Then (this is just to be sure)

dd if=/dev/zero of=/dev/mapper/ddf1xxxxxxxxxxxxx bs=512 count=200000

Finally clean it up:

 dmsetup remove /dev/mapper/ddf1xxxxxxxxxxxxx

And check it that it just disappeared from fdisk -l

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-03-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。