On Oct 24, 2010, at 17:54, Niels Poppe <ni...@netbox.org> wrote: >>>> On Sun, Oct 24, 2010 at 03:00:23PM +0200, Niels Poppe wrote: >>>>> >>>>> .. would have expected >>>>> "bioctl -R sd1 softraid0" for the case below. >>>> >>>> What slice is being rebuilt onto? >>> >>> Well... i guess i was thinking that from the unit identifier >>> in softraid<n> the actual raid volume would be known. >>> >>> Can different volumes share a single softraid device? >> >> I don't understand the question. >> > > It turns out that I don't understand how this is supposed to work. > > I have (err, had) this working array: > > # bioctl softraid0 > Volume Status Size Device > softraid0 0 Online 3997412864 sd2 RAID1 > 0 Online 3997412864 0:0.0 noencl <sd1a> > 1 Online 3997412864 0:1.0 noencl <sd0a> > > Now, with one drive unplugged, i get: > > # bioctl softraid0 > Volume Status Size Device > softraid0 0 Degraded 3997412864 sd2 RAID1 > 0 Online 3997412864 0:0.0 noencl <sd1a> > 1 Offline 3997412864 0:1.0 noencl <sd0a> > > With sd0 replaced again, i expected > "bioctl -R sd0 softraid0" to give an error > "bioctl -R sd0 sd2" to start a rebuild. >
bioctl -R sd0a sd2 > But neither form works. Both report: > bioctl: Target sd0: target not specified > > Which command is supposed to correctly rebuild the array? > > > Regards, and thanks anyway > > Niels