mdadm basics


  • raid 0 : stripe
  • raid 1 : mirror



commanddescription
mdadm -A /dev/mdX /dev/hdYY /dev/hdeYY start an existing array
mdadm -S /dev/mdX stop active array
mdadm -C /dev/md0 --level 1 --raid-devices 2 /dev/sd[bc]2 Create a raid1 md0 out of sdb2 & sdc2

  • mdadm --query /dev/hda6 ... check if hda6 is part of a raid
  • mdadm --examine --brief --scan --config=partitions ... check for raids on all partitions based on /proc/partitions
 
knowwiki/basics/mdadm_basics.txt · Last modified: 2008/03/26 10:44 by peter