Created
December 3, 2013 22:01
-
-
Save sbimikesmullin/7778213 to your computer and use it in GitHub Desktop.
mdadm: undo a software raid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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