Diff for /wikisrc/set-up_raidframe.mdwn between versions 1.8 and 1.9

version 1.8, 2011/07/13 15:18:22 version 1.9, 2013/11/30 16:36:58
Line 15  Here's what I did recently to get  [[!te Line 15  Here's what I did recently to get  [[!te
   
 3. This step might not be necessary but I wasn't taking any chances!  Also, this step is only applicable on ports which use DOS disk layouts.  For other ports, you should be able to skip this step, and proceed directly to Step 4.  3. This step might not be necessary but I wasn't taking any chances!  Also, this step is only applicable on ports which use DOS disk layouts.  For other ports, you should be able to skip this step, and proceed directly to Step 4.
   
  Use  [[!template id=man name="fdisk" section="8"]] to set up DOS/Windows partition data.  Make sure you use the "-A 2048" option for alignment.      Use  [[!template id=man name="fdisk" section="8"]] to set up DOS/Windows partition data.  Make sure you use the "-A 2048" option for alignment.
   
         fdisk -uai -A 2048 wd2a          fdisk -uai -A 2048 wd2a
         fdisk -uai -A 2048 wd3a          fdisk -uai -A 2048 wd3a
   
  (If you are using an older version of fdisk and get the error      (If you are using an older version of fdisk and get the error
   
         fdisk: Bad argument to the -A flag.          fdisk: Bad argument to the -A flag.
   
  you can specify "-A 2048/2048" instead.)      you can specify "-A 2048/2048" instead.)
   
  Set the partition 0 type to 169 (NetBSD), and let it occupy the entire drive.  If you're going to boot from this raidset, you should also make this the active partition, and update the boot blocks when prompted.      Set the partition 0 type to 169 (NetBSD), and let it occupy the entire drive.  If you're going to boot from this raidset, you should also make this the active partition, and update the boot blocks when prompted.
   
  When finished, this is what my drive reports:      When finished, this is what my drive reports:
   
         Partitions aligned to 16065 sector boundaries, offset 63          Partitions aligned to 16065 sector boundaries, offset 63
   
Line 43  Here's what I did recently to get  [[!te Line 43  Here's what I did recently to get  [[!te
         Bootselector disabled.          Bootselector disabled.
         First active partition: 0          First active partition: 0
   
  (The "PBR is not bootable" line will not appear if you later use [[!template id=man name="installboot" section="8"]]; see step 14 below.)      (The "PBR is not bootable" line will not appear if you later use [[!template id=man name="installboot" section="8"]]; see step 14 below.)
   
 4. Use  [[!template id=man name="disklabel" section="8"]] to provide a NetBSD disklabel on each member of the raidset.  Create an 'e' partition that describes the whole disk - so it is essentially a copy of the 'c' partition.  Make sure that the offset of your 'e' partition is large enough to accomodate any architecture-specific bootstrap requirements, and that the offset is a multiple of the hard drive's native transfer size.  4. Use  [[!template id=man name="disklabel" section="8"]] to provide a NetBSD disklabel on each member of the raidset.  Create an 'e' partition that describes the whole disk - so it is essentially a copy of the 'c' partition.  Make sure that the offset of your 'e' partition is large enough to accomodate any architecture-specific bootstrap requirements, and that the offset is a multiple of the hard drive's native transfer size.
   
  Set the fstype on your 'e' partition to RAID (4.2BSD will also work, but not if you want to use RAID_AUTOCONFIG).      Set the fstype on your 'e' partition to RAID (4.2BSD will also work, but not if you want to use RAID_AUTOCONFIG).
   
  Here's my partition info:      Here's my partition info:
   
         5 partitions:          5 partitions:
         #        size  offset  fstype [fsize bsize cpg/sgs]          #        size  offset  fstype [fsize bsize cpg/sgs]
Line 88  Here's what I did recently to get  [[!te Line 88  Here's what I did recently to get  [[!te
   
         raidctl -I 201105061405 raid1          raidctl -I 201105061405 raid1
   
  (For serial number, I just used the current date/time; any 64-bit integer will work.)      (For serial number, I just used the current date/time; any 64-bit integer will work.)
   
 8. Now use raidctl to initialize the parity of the raidset.  On my 500GB drives, this took about 1.5 hours.  8. Now use raidctl to initialize the parity of the raidset.  On my 500GB drives, this took about 1.5 hours.
   
         raidctl -i raid1          raidctl -i raid1
   
  It won't tie up your session, as the parity operation happens in the kernel in the background.  You can monitor the progress using      It won't tie up your session, as the parity operation happens in the kernel in the background.  You can monitor the progress using
   
         raidctl -s raid1          raidctl -s raid1
   
 9. When parity is finished, you can treat the raidset as a normal disk. You will need to write a NetBSD disklabel (this label is separate from the labels on the physical drives).  Make certain that all the offsets are multiples of the drive's native block size; otherwise you will have unaligned transfers and performance will be very bad!  (This is also why, in step 3 above, we use "-A 2048" for fdisk rather than letting it default to 63!")  9. When parity is finished, you can treat the raidset as a normal disk. You will need to write a NetBSD disklabel (this label is separate from the labels on the physical drives).  Make certain that all the offsets are multiples of the drive's native block size; otherwise you will have unaligned transfers and performance will be very bad!  (This is also why, in step 3 above, we use "-A 2048" for fdisk rather than letting it default to 63!")
   
  Here is what my drive looks like:      Here is what my drive looks like:
   
         7 partitions:          7 partitions:
         #        size    offset  fstype [fsize bsize cpg/sgs]          #        size    offset  fstype [fsize bsize cpg/sgs]

Removed from v.1.8  
changed lines
  Added in v.1.9


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb