tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting up raid correctly



On Sun, Feb 24, 2013 at 06:23:30PM +0000, Philip Mueller wrote:
> >No, I think you first have to create a partition of type raid on wd3,
> >instead of using the whole disk. If your disk is less than 2TB, it may
> >be easier to use disklabel instead of gpt.
> >
> I want to use gpt, if possible, my size is 2TB
> How do we create a raid partition, like:
> spectre# gpt show wd3d
>        start        size  index  contents
>            0  3907029168
> spectre# gpt create wd3d
> spectre# gpt add -t gpt wd3d
> usage: gpt add [-b lba] [-i index] [-s lba] [-t type] device ...
> spectre# gpt add -t raid wd3d
> Partition added, use:
>         dkctl wd3d addwedge <wedgename> 34 3907029101 <type>
> to create a wedge for it
> 
> And now should I dkctl wd3d and copy dkX in my raid1.conf or should
> I use wd3d?

No, you dkctl and use dkx in your raid1.conf


-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index