Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mdadm [2016/04/29 12:24] steve |
mdadm [2016/04/29 12:32] steve |
||
---|---|---|---|
Line 98: | Line 98: | ||
RAID1 is for mirroring data across disks. If one drive fails, the data is still preserved. | RAID1 is for mirroring data across disks. If one drive fails, the data is still preserved. | ||
- | |||
- | Use fdisk to partition the new drives, and set them to type ''fd'' or ''Linux raid autodetect''. | ||
- | |||
- | <code> | ||
- | fdisk /dev/sdb | ||
- | fdisk /dev/sdc | ||
- | </code> | ||
Create the RAID1 array using the two harddrives: | Create the RAID1 array using the two harddrives: | ||
Line 181: | Line 174: | ||
</code> | </code> | ||
+ | Shut down all arrays that can be shut down; not currently in use: | ||
+ | <code> | ||
+ | mdadm --stop --scan | ||
+ | </code> | ||
+ | |||
+ | Check devices that have RAID superblocks and print out results: | ||
+ | |||
+ | <code> | ||
+ | mdadm --examine --brief --scan --config=partitions | ||
+ | </code> |