This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:linux_software_raid [2012/05/21 12:53] gcooper |
computing:storage:linux_software_raid [2019/10/25 10:42] (current) gcooper |
||
---|---|---|---|
Line 16: | Line 16: | ||
< | < | ||
- | mdadm --detail --scan | + | mdadm --detail --scan |
</ | </ | ||
Line 22: | Line 22: | ||
< | < | ||
- | fdisk /dev/sda | + | fdisk -l /dev/sda |
</ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | sgdisk -p /dev/sda | ||
+ | </ | ||
+ | |||
+ | **Copy Patition Scheme**: https:// | ||
+ | |||
+ | :!: Verify '' | ||
Using fdisk, create matching partitions on various drives (block devices) of type **fd Linux raid autodetect** that will be assembled into arrays. | Using fdisk, create matching partitions on various drives (block devices) of type **fd Linux raid autodetect** that will be assembled into arrays. | ||
Line 39: | Line 49: | ||
</ | </ | ||
- | Once you partition the first drive, use sfdisk to duplicate | + | :!: Be careful not to write to the **wrong disk** or you will have a **very bad day**! |
+ | |||
+ | Once you partition the first drive, use '' | ||
+ | |||
+ | < | ||
+ | sfdisk -d /dev/sda | sfdisk /dev/sdb | ||
+ | </ | ||
+ | |||
+ | or | ||
< | < | ||
- | sfdisk -d / | + | sgdisk |
+ | sgdisk -G /dev/sdb | ||
</ | </ | ||
Line 66: | Line 85: | ||
< | < | ||
- | mdadm --detail --scan | + | mdadm --detail --scan |
mdadm --add /dev/md0 /dev/sdb1 | mdadm --add /dev/md0 /dev/sdb1 |