Skip to content

Instantly share code, notes, and snippets.

@dryliketoast
Created January 10, 2018 22:04
Show Gist options
  • Select an option

  • Save dryliketoast/67589ef9ac4c5e40c4a520f29de544b3 to your computer and use it in GitHub Desktop.

Select an option

Save dryliketoast/67589ef9ac4c5e40c4a520f29de544b3 to your computer and use it in GitHub Desktop.
linux software raid1
IF THE DEVICE CONTAINS A VALID MD SUPERBLOCK, THE BLOCK IS OVERWRITTEN WITH ZEROS:
# mdadm --zero-superblock /dev/sdc /dev/sdd
CREATE RAID1 USING /DEV/SDC1 AND /DEV/SDD1
# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment