gvinum and raid5

Marco Haddad freebsd-lists at ideo.com.br
Mon Nov 5 09:36:55 PST 2007


On 11/2/07, Ulf Lilleengen <lulf at stud.ntnu.no> wrote:
>
> On fre, nov 02, 2007 at 10:32:54 -0300, Marco Haddad wrote:
> [...]
> > I think there's no easier way...
>
> Yes there is. Replacing a drive in gvinum follows the following procedure:
> 1. Create config for the new drive and name the drive _differently_ than
> the
> old one.
>
> 2. Use the gvinum 'move' command to move the stale subdisk to the new
> drive.
>
> 3. Make sure the the subdisk now points to the new drive and that it's in
> the
> 'stale' state.
>
> 4. Start the plex (gvinum start).
>
> The other issues you encountered have been fixed in my gvinum work this
> summer. Also, replacing a drive and rebuilding a plex can happen without
> unmounting your volume in the new gvinum.



Well, I can't do that because 'gvinum create'  panics even if the new drive
is named differently. Perhaps the problem is using the same device which was
once already present, and that's why I need to remove all objects first...
The fact is I can't remove the objects with the system running, and once
they are removed, there's no need for a different name. Actually, it's
easier to use the same original create script...

I'll try to apply your patches and see if it this issue is solved.


Thanks,
Marco Haddad


More information about the freebsd-geom mailing list