我试图删除我的 RAID 阵列并重新启动,因为一些恼人的错误显示我的 gpt 已损坏。我使用 gparted 删除了磁盘上的所有信息,因此它们在每个驱动器上都显示“未分配”。然后我尝试使用以下命令创建一个阵列,但它总是显示“/dev/sdX 似乎是 raid 阵列的一部分”。我该如何修复它?它不是阵列的一部分,甚至任何磁盘上都没有文件系统!
$ sudo mdadm --create /dev/md0 --level=linear --raid-devices=5 /dev/sda /dev/sdb /dev/sdd /dev/sde /dev/sdf
mdadm: /dev/sda appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sda but will be lost or
meaningless after creating array
mdadm: /dev/sdb appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sdb but will be lost or
meaningless after creating array
mdadm: /dev/sdd appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sdd but will be lost or
meaningless after creating array
mdadm: /dev/sde appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sde but will be lost or
meaningless after creating array
mdadm: /dev/sdf appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sdf but will be lost or
meaningless after creating array
一位用户认为这是一些超级块问题,并要求我将超级块归零,但该命令不起作用,如下所示:
$ sudo mdadm --zero-superblock /dev/sdb
[sudo] password for pc:
mdadm: Unrecognised md component device - /dev/sdb
答案1
这是因为mdadm
仍然找到旧 raid 的超级块。您可以运行以下命令轻松删除它:
mdadm --zero-superblock /dev/sdX