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 [2014/12/05 10:30] gcooper |
computing:storage:linux_software_raid [2019/10/25 10:42] (current) gcooper |
||
---|---|---|---|
Line 19: | Line 19: | ||
</ | </ | ||
- | or: | + | ===== Partitioning ===== |
< | < | ||
- | mdadm --detail --scan | + | fdisk -l /dev/sda |
</ | </ | ||
- | ===== Partitioning ===== | + | or |
< | < | ||
- | fdisk /dev/sda | + | 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 45: | 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 72: | Line 85: | ||
< | < | ||
- | mdadm --detail --scan | + | mdadm --detail --scan |
mdadm --add /dev/md0 /dev/sdb1 | mdadm --add /dev/md0 /dev/sdb1 |