Date: Sat, 10 Mar 2007 18:44:17 +0100 From: Ulf Lilleengen <lulf@stud.ntnu.no> To: freebsd-geom@freebsd.org Cc: le@FreeBSD.org Subject: Re: Problems simulating gvinum raid5 rebuild Message-ID: <20070310174417.GA28619@stud.ntnu.no> In-Reply-To: <20070309011635.GA4329@twoflower.idi.ntnu.no> References: <0B1A704D-A455-4741-BC11-A2019BFB4B22@bitheaven.net> <45EF18C3.3070106@freebsd.org> <20070308015812.GA30713@twoflower.idi.ntnu.no> <20070309011635.GA4329@twoflower.idi.ntnu.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On fre, mar 09, 2007 at 02:16:35 +0100, Ulf Lilleengen wrote: > On tor, mar 08, 2007 at 02:58:12am +0100, Ulf Lilleengen wrote: *SNIP* > > Ok, apparently it does bind objects together, but a subdisk that is not > registered with a drive (if the drive is not there) doesn't get tasted. > I'm having problems to find a nice way of adding the subdisk without a drive to > a plex, so that the plex can get into it's correct state. > > One way i tried it in gv_plex_taste was to loop through all subdisks, and find > subdisks that didn't have any drive, _and_ was to be registered with this plex. > Then i registered it with the plex. Something like this: > > LIST_FOREACH(s, &sc->subdisks, sd) { > if s->plex equals plexname > if s has no drive > add the subdisk to this plex Turns out i need to check my own code better :) If add the subdisk to the plex _and_ sets the state to GV_SD_DOWN, the plex will come out degraded after the _plex_taste. I also added an gv_update_plex to update the plex-state after it has come up. I'll just test it a bit first. -- Ulf Lilleengen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070310174417.GA28619>