Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-12-08 Thread =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?=
Pawel Jakub Dawidek wrote: On Wed, Dec 08, 2004 at 02:10:02AM +0200, Alexandr Kovalenko wrote: +> Hello, Pawel Jakub Dawidek! +> > +> > This is known race, which is already fixed in HEAD. I want to commit it +> > soon. +> +> Any plans on backporting it to RELENG_5 (RELENG_5_3 maybe?)? I'm going

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-12-08 Thread Pawel Jakub Dawidek
On Wed, Dec 08, 2004 at 11:40:44AM +0200, Alexandr Kovalenko wrote: +> > +> To be on original topic - is there any way to make a mirror from live +> > +> system? I mean I have running FreeBSD on da0 and I want to make a +> > +> gmirror on it (I'm planning to add second drive soon). How to avoid +>

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-12-08 Thread Alexandr Kovalenko
Hello, Pawel Jakub Dawidek! On Wed, Dec 08, 2004 at 09:53:06AM +0100, you wrote: > On Wed, Dec 08, 2004 at 02:10:02AM +0200, Alexandr Kovalenko wrote: > +> Hello, Pawel Jakub Dawidek! > +> > > +> > This is known race, which is already fixed in HEAD. I want to commit it > +> > soon. > +> > +> An

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-12-08 Thread Pawel Jakub Dawidek
On Wed, Dec 08, 2004 at 02:10:02AM +0200, Alexandr Kovalenko wrote: +> Hello, Pawel Jakub Dawidek! +> > +> > This is known race, which is already fixed in HEAD. I want to commit it +> > soon. +> +> Any plans on backporting it to RELENG_5 (RELENG_5_3 maybe?)? I'm going to MFC it probably this wee

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-12-07 Thread Alexandr Kovalenko
Hello, Pawel Jakub Dawidek! On Mon, Nov 29, 2004 at 11:59:25PM +0100, you wrote: > On Mon, Nov 29, 2004 at 07:27:51PM -0200, Jo?o Carlos Mendes Lu?s wrote: > +> I finally got the system to boot with gmirror fully enabled. But I got > +> this during boot: > +> > +> > +> GEOM_MIRROR: Device vol

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-11-29 Thread Pawel Jakub Dawidek
On Mon, Nov 29, 2004 at 07:27:51PM -0200, Jo?o Carlos Mendes Luís wrote: +> I finally got the system to boot with gmirror fully enabled. But I got +> this during boot: +> +> +> GEOM_MIRROR: Device vol0 created (id=3592859320). +> GEOM_MIRROR: Device vol0: provider ad0s1 detected. +> GEOM_MIRROR

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-11-29 Thread João Carlos Mendes Luís
I finally got the system to boot with gmirror fully enabled. But I got this during boot: GEOM_MIRROR: Device vol0 created (id=3592859320). GEOM_MIRROR: Device vol0: provider ad0s1 detected. GEOM_MIRROR: Device vol0: provider ad1s1 detected. GEOM_MIRROR: Device vol0: provider ad1s1 activated. GEO

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-11-29 Thread Pawel Jakub Dawidek
On Mon, Nov 29, 2004 at 12:52:40PM -0200, Jo?o Carlos Mendes Luís wrote: +> >+> Indeed, the -h option is what I wanted and the "bug" is in the +> >+> manual. What would happen if I change the disc ID in this case? +> > +> >Your disk will not be detected as a mirror component, because hardcoded

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-11-29 Thread João Carlos Mendes Luís
Pawel Jakub Dawidek wrote: Not working 'unload' command is because of bug in GEOM. Now, to avoid deadlock you get an error (ENXIO), but mirror will be destroyed. The next 'unload' should be ok. To avoid those errors, you should first stop all mirrors (unsing 'stop' command) and then unload kernel m

Re: Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-11-28 Thread Pawel Jakub Dawidek
On Fri, Nov 26, 2004 at 05:55:51PM -0200, Jo?o Carlos Mendes Luís wrote: +> Pawel Jakub Dawidek wrote: [...] +> >What error do you get when you try to do this? +> +> Step by step: +> +> - The system has started with a preloaded geom_mirror: [...] +> - There is a running mirror partition: [...

Hand on gmirror (Was: Re: gmirror bugs, how many?)

2004-11-26 Thread João Carlos Mendes Luís
Pawel Jakub Dawidek wrote: All I'm saying is that you first should create a mirror, then create slices and partitions on top of mirror provider, because you want to use mirror/vol0s1a, not ad0s1a. Note, that mirror/vol0 is one sector shorter than ad0 and imagine a situation when gmirror stores meta

Re: gmirror bugs, how many?

2004-11-26 Thread Pawel Jakub Dawidek
On Fri, Nov 26, 2004 at 02:56:15AM -0200, Jo?o Carlos Mendes Luís wrote: +> Pawel Jakub Dawidek wrote: +> >First mistake - wrong order. Create a mirror, than partition a mirror +> >provider. +> +> Is this a constraint in the design? Im my point of view, geom would +> treat all block devices equa

Re: gmirror bugs, how many?

2004-11-25 Thread João Carlos Mendes Luís
Pawel Jakub Dawidek wrote: On Wed, Nov 24, 2004 at 07:30:08PM -0200, Jo?o Carlos Mendes Luís wrote: +> First, I partioned (fdisk) for a full FreeBSD system, with +> sysinstall, which got me this: [...] +> Then I tried to compose a single disk gmirror with the whole ad1 disk: [...] First

Re: gmirror bugs, how many?

2004-11-25 Thread Pawel Jakub Dawidek
On Wed, Nov 24, 2004 at 07:30:08PM -0200, Jo?o Carlos Mendes Luís wrote: +> First, I partioned (fdisk) for a full FreeBSD system, with +> sysinstall, which got me this: [...] +> Then I tried to compose a single disk gmirror with the whole ad1 disk: [...] First mistake - wrong order. Creat

gmirror bugs, how many?

2004-11-24 Thread João Carlos Mendes Luís
Hi, I am blindly testing gmirror, just for fun. I got an old 8G drive and did some tests. Maybe I did find a bug in gmirror. This is a long message, but please read it to the end if you are a gmirror or GEOM hacker. First, I partioned (fdisk) for a full FreeBSD system, with sysinstal