How to remove an MDADM Raid Array – Linux

How to remove an MDADM Raid Array

1. Find out your arrays (md0, md1, etc..) using

sudo fdisk -l

2. Query your arrays to find out what disks are contained using

sudo mdadm --detail /dev/md0
 (or md1 or whatever)

3. Shut down the array using

sudo mdadm --stop /dev/md0

4. And here’s the magic key …… zero the superblock FOR EACH drive

sudo mdadm --zero-superblock /dev/sda (or hda)
sudo mdadm --zero-superblock /dev/sdX...

Done, kind regards

452 total views, 1 views today

Print Friendly