CentOS 6
Sponsored Link

Erase RAID metadata
2013/02/17
 
If your disk has RAID metadata that it is impossible to erase with common ways but you'd like to erase it to use the disk with no RAID, then, Attach the disk to another mashine that Linux is installed and boot it first, Next, Erase RAID metadata with the following way.
[1] Install mdadm to verify disks.
[root@dlp ~]#
yum -y install mdadm dmraid
[2] If your disk has RAID metadata, following result is shown.
The example below, it shows there is RAID metadata at 124914352 sector on /dev/sdb.
[root@dlp ~]#
dmraid -r

/dev/sdb: ddf1, ".ddf1_disks", GROUP, ok, 124914352 sectors, data@ 0
[3] Erase RAID metadata with mdadm like follows.
[root@dlp ~]#
mdadm --zero-superblock /dev/sdb

[root@dlp ~]#
dmraid -r

no raid disks and with names: "/dev/sdb"
[4] If it's impossible to erase with the way of [3],
overwrite with dd command like follows.
[root@dlp ~]#
dd if=/dev/zero of=/dev/sdb bs=512 seek=124914352

[root@dlp ~]#
dmraid -r

no raid disks and with names: "/dev/sdb"
Matched Content
 
Tweet