Gvinum RAID5 volume don't work after a simple reboot

Olivier Cochard olivier at freenas.org
Mon Mar 6 07:39:22 PST 2006


I've changed the procedure... but no changes: the Raid Volume refuse to
works after the reboot.

Here is the new procedure I've used:

1. initializing hard drive:
/bin/dd if=/dev/zero of=/dev/ad0 bs=1k count=20");
/sbin/fdisk -I -b /boot/mbr ad0
/sbin/bsdlabel -w ad0 auto

2. Generating config file:
$ cat /var/etc/raid.conf
drive disk_ad1 device /dev/ad1a
drive disk_ad2 device /dev/ad2a
drive disk_ad3 device /dev/ad3a
volume raid5
plex org raid5 256k
sd length 102M drive disk_ad1
sd length 102M drive disk_ad2
sd length 102M drive disk_ad3

3. Create a filesystem on it:
/sbin/newfs -U /dev/gvinum/raid5

4. Mount it and put a file without problem

5. Reboot... Same problem.

Olivier


2006/3/6, Olivier Cochard < olivier at freenas.org>:
>
> Thanks for your remarks.
> I will try it.
>
> Olivier
>
>
> 2006/3/6, Lukas Ertl <le at freebsd.org>:
> >
> > On Mon, 6 Mar 2006, Olivier Cochard wrote:
> >
> > > /sbin/bsdlabel -w ad0s1 auto
> > >
> > > Editing the bsdlabel for each:
> > > - replacing c: by a:
> >
> > "Replacing" means what in this context?
> >
> > > - changing "unused" to "vinum"
> >
> > Shouldn't be necessary.
> >
> > > ---------------------------------------------------
> > > Step 2: Create this raid.conf file:
> > >
> > > drive disk_ad0 device /dev/ad0s1
> > > drive disk_ad1 device /dev/ad1s1
> > > drive disk_ad3 device /dev/ad3s1
> >
> > Why do you create a bsdlabel on the slices when you don't use it then?
> >
> > I suspect that's the source of the problems you have.
> >
> > Take the bsdlabel as it is generated by "bsdlabel -w", and don't replace
> > anything in there.  Use the 'a' partition.
> >
> > regards,
> > le
> >
> > --
> > Lukas Ertl                         http://homepage.univie.ac.at/l.ertl/
> > le at FreeBSD.org                     http://people.freebsd.org/~le/<http://people.freebsd.org/%7Ele/>
> > _______________________________________________
> > freebsd-geom at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-geom
> > To unsubscribe, send any mail to " freebsd-geom-unsubscribe at freebsd.org"
> >
>
>


--
Olivier Cochard
FreeNAS main developer
http://www.freenas.org
Skype: callto://ocochard


More information about the freebsd-geom mailing list