Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Last active August 29, 2015 14:05
Show Gist options
  • Save waltervargas/73c4fe87a87686d393e9 to your computer and use it in GitHub Desktop.
Save waltervargas/73c4fe87a87686d393e9 to your computer and use it in GitHub Desktop.
  1. Create raid for root in raid 1
mdadm --create /dev/md0 --level=1 --chunk=64 --raid-devices=2 /dev/sda1 /dev/sdb1 --metadata=0.90
  1. See detail of raid
mdadm --detail /dev/md0
  1. Fail disk
mdadm --manage --fail /dev/md0 /dev/sdb1
  1. Remove disk from raid
mdadm --manage /dev/md0 --remove /dev/sdb1
  1. Add disk to raid
mdadm --manage /dev/md0 --add /dev/sdb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment