User Tools

Site Tools


computing:storage:raid_metadata_removal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:raid_metadata_removal [2015/06/23 16:20]
gcooper
computing:storage:raid_metadata_removal [2019/10/25 10:19] (current)
gcooper
Line 3: Line 3:
 http://serverfault.com/questions/488346/removing-raid-metadata-from-drives http://serverfault.com/questions/488346/removing-raid-metadata-from-drives
  
-If you are reusing disk drives that were once members of a RAID array, you should remove the RAID metadata from the disk drives first.+http://www.server-world.info/en/note?os=CentOS_6&p=raid_metadata 
 + 
 +If you are **reusing disk drives that were once members of a RAID array**, you should **remove the RAID metadata** from the disk drives first.
  
 <note warning>Leaving RAID metadata on drives can cause serious and varied problems when you go to reuse the drives for another purpose.</note> <note warning>Leaving RAID metadata on drives can cause serious and varied problems when you go to reuse the drives for another purpose.</note>
Line 24: Line 26:
 <file> <file>
 mdadm --zero-superblock /dev/sdx mdadm --zero-superblock /dev/sdx
 +</file>
 +
 +or:
 +
 +<file>
 +dmraid -r -E /dev/sdx
 +</file>
 +
 +or:
 +
 +<file>
 +dd if=/dev/zero of=$YOUR_DEV bs=512 seek=$(( $(blockdev --getsz $YOUR_DEV) - 1024 )) count=1024
 </file> </file>
  
 Then verify: Then verify:
 +
 +:!: You may need to **reboot**!
  
 <file> <file>
 dmraid -r dmraid -r
 +</file>
 +
 +or
 +
 +<file>
 +mdadm --detail --scan --verbose
 </file> </file>
  
computing/storage/raid_metadata_removal.1435098050.txt.gz · Last modified: 2015/06/23 16:20 by gcooper