Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
mdadm [2016/04/29 12:17] steve |
mdadm [2016/04/29 12:24] steve |
||
---|---|---|---|
Line 164: | Line 164: | ||
When ''mdadm'' is started building / rebuilding an array, it will create ''/dev/mdX'' entries, and remove the block devices that are part of the RAID (/dev/sda1, /dev/sdb1, fex). After stopping mdadm, run partprobe to load the device nodes. It will restart mdadm, but stopping it the second time will leave the device blocks there. | When ''mdadm'' is started building / rebuilding an array, it will create ''/dev/mdX'' entries, and remove the block devices that are part of the RAID (/dev/sda1, /dev/sdb1, fex). After stopping mdadm, run partprobe to load the device nodes. It will restart mdadm, but stopping it the second time will leave the device blocks there. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | From the man page. | ||
+ | |||
+ | Query the device to see if it's a RAID array, or part of one, etc.: | ||
+ | |||
+ | <code> | ||
+ | mdadm --query device | ||
+ | </code> | ||
+ | |||
+ | Scan the config file and assemble and start all arrays: | ||
+ | |||
+ | <code> | ||
+ | mdadm --assemble --scan | ||
+ | </code> | ||
+ | |||
+ |