version 1.3, 2011/05/17 00:29:10
|
version 1.4, 2011/05/17 00:36:42
|
Line 119 Here's what I did recently to get raidfr
|
Line 119 Here's what I did recently to get raidfr
|
|
|
raidctl -A yes raid1 |
raidctl -A yes raid1 |
|
|
11. If you're going to boot from the raidset, you probably want to have an 'a' partition. Here's the partition from my other, bootable, raidset: |
11. If you're going to boot from the raidset, you probably want to have an 'a' partition. My bootable raidset has members wd0 and wd1, which are labeled like this: |
|
|
|
5 partitions: |
|
# size offset fstype [fsize bsize cpg/sgs] |
|
c: 488395120 2048 unused 0 0 # (Cyl. 2*- 484520) |
|
d: 488397168 0 unused 0 0 # (Cyl. 0 - 484520) |
|
e: 488395120 2048 RAID # (Cyl. 2*- 484520) |
|
|
|
12. And the raidset itself has these partitions: |
|
|
6 partitions: |
6 partitions: |
# size offset fstype [fsize bsize cpg/sgs] |
# size offset fstype [fsize bsize cpg/sgs] |
Line 130 Here's what I did recently to get raidfr
|
Line 138 Here's what I did recently to get raidfr
|
e: 125829120 104857600 4.2BSD 2048 16384 0 # (Cyl. 102400 - 225279) |
e: 125829120 104857600 4.2BSD 2048 16384 0 # (Cyl. 102400 - 225279) |
f: 257708288 230686720 4.2BSD 2048 16384 0 # (Cyl. 225280 - 476948*) |
f: 257708288 230686720 4.2BSD 2048 16384 0 # (Cyl. 225280 - 476948*) |
|
|
12. You will also need to run installboot(8) to make the raidset bootable. Do this for each member drive. Please note that installboot is run for the RAID partition on each member disk, and NOT on the raidn disk! This also assumes that the RAID partition (the 'e' partition, see step 4 above) starts at the beginning of the whole-NetBSD 'c' partition. If you don't do this, I don't think that the i386 MBR boot code will be able to find your bootstrap image. |
13. You will also need to run installboot(8) to make the raidset bootable. Do this for each member drive. Please note that installboot is run for the RAID partition on each member disk, and NOT on the raidn disk! This also assumes that the RAID partition (the 'e' partition, see step 4 above) starts at the beginning of the whole-NetBSD 'c' partition. If you don't do this, I don't think that the i386 MBR boot code will be able to find your bootstrap image. |
|
|
mount /dev/raid0a /mnt |
mount /dev/raid0a /mnt |
installboot /dev/wd0e /usr/mdec/bootxx_ffsv1 /mnt/boot |
installboot /dev/wd0e /usr/mdec/bootxx_ffsv1 /mnt/boot |
installboot /dev/wd1e /usr/mdec/bootxx_ffsv1 /mnt/boot |
installboot /dev/wd1e /usr/mdec/bootxx_ffsv1 /mnt/boot |
|
|
13. Finally, you need to make sure your kernel has the RAID_AUTOCONFIG option, and enable the raidset as the root device: |
14. Finally, you need to make sure your kernel has the RAID_AUTOCONFIG option, and enable the raidset as the root device: |
|
|
raidctl -A root raid0 |
raidctl -A root raid0 |