Skip to content

Instantly share code, notes, and snippets.

@sbimikesmullin
Created December 3, 2013 22:01
Show Gist options
  • Save sbimikesmullin/7778213 to your computer and use it in GitHub Desktop.
Save sbimikesmullin/7778213 to your computer and use it in GitHub Desktop.
mdadm: undo a software raid
sudo fdisk -l # Find out your arrays (md0, md1, etc..)
sudo mdadm --detail /dev/md0 # Query your arrays to find out what disks are contained using
sudo umount /backup # unmount all partitions on that drive
sudo mdadm --stop /dev/md0 # Shut down the array
sudo mdadm --zero-superblock /dev/xvdc /dev/xvdd /dev/xvde # zero the superblock FOR EACH drive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment