no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | raidctl [2013/08/22 18:05] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== raidctl ====== | ||
+ | * [[Filesystems]] | ||
+ | * [[NetBSD]] | ||
+ | * [[disklabel]] | ||
+ | * [[fdisk]] | ||
+ | * [[newfs]] | ||
+ | * [[sysctl]] | ||
+ | |||
+ | ==== fdisk and disklabel === | ||
+ | |||
+ | Assuming the disk device is '' | ||
+ | |||
+ | Add a blank partition list: | ||
+ | |||
+ | < | ||
+ | fdisk -f -a -0 sd1 | ||
+ | </ | ||
+ | |||
+ | Create a RAID label: | ||
+ | |||
+ | < | ||
+ | disklabel -i -I /dev/rsd1d | ||
+ | </ | ||
+ | ==== Initial Setup ==== | ||
+ | |||
+ | Setup first time: | ||
+ | |||
+ | < | ||
+ | raidctl -v -i /dev/raid5 -C / | ||
+ | </ | ||
+ | |||
+ | Display status: | ||
+ | |||
+ | < | ||
+ | raidctl -m /dev/raid5 | ||
+ | raidctl -s /dev/raid5 | ||
+ | raidctl -S /dev/raid5 | ||
+ | </ | ||
+ | |||
+ | Check if parity is up to date: | ||
+ | |||
+ | < | ||
+ | raidctl -p /dev/raid5 | ||
+ | </ | ||
+ | |||
+ | Initialize the parity if it is known to not be up-to-date (used when after a system crash): | ||
+ | |||
+ | < | ||
+ | raidctl -P /dev/raid5 | ||
+ | </ | ||
+ | ==== Configuration File ==== | ||
+ | |||
+ | Each configuration file has four required sections, and two optional ones. They all begin with '' | ||
+ | |||
+ | First is the '' | ||
+ | |||
+ | A RAID5 array of 1 row, 4 disks and 0 spare disks | ||
+ | |||
+ | < | ||
+ | START array | ||
+ | 1 4 0 | ||
+ | </ | ||
+ | |||
+ | The '' | ||
+ | |||
+ | < | ||
+ | START disks | ||
+ | /dev/sd1a | ||
+ | /dev/sd2a | ||
+ | /dev/sd3a | ||
+ | /dev/sd4a | ||
+ | </ | ||
+ | |||
+ | The '' | ||
+ | |||
+ | This example is from the man page, for RAID5: | ||
+ | |||
+ | < | ||
+ | START layout | ||
+ | # sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level | ||
+ | 32 1 1 5 | ||
+ | </ | ||
+ | |||
+ | Final required section is '' | ||
+ | |||
+ | < | ||
+ | START queue | ||
+ | fifo 100 | ||
+ | </ |