---- From: Karel Gardas <gard...@gmail.com> -- Sent: 2017.06.14 - 19:25 ----

> On Wed, Jun 14, 2017 at 5:23 PM, LÉVAI Dániel <l...@ecentrum.hu> wrote:
>> sd8 at scsibus4 targ 2 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
>> sd8: 155872MB, 512 bytes/sector, 319227056 sectors
> 
> Here is sd8 as crypto.
> 
>> So the system disks (RAID1) are there, sd7l is decrypted as sd8 (so
> 
> sd7l decrypted as sd8, well then
> 
>> that's also okay), and I'm missing the array of sd2,sd3,sd4,sd5. (no
>> worries about sd6 and sd11, that's an external drive, I've removed that
>> from the equation for now).
>>
>> Every documentation I read tells me to rebuild the array like so:
>> # bioctl -R /dev/<new disk> <softraid disk>
>>
>> So I guess I could run eg. `bioctl -R /dev/sd5a sd8`, if I had sd8 as a
> 
> but you can't do that as sd8 is already allocated and running as
> crypto volume. In fact I think softraid logging is fine and your RAID5
> is for whatever reason being assigned as sd7 but fails on missing
> chunk. The problem may arrise from the StoreJet USB device you have
> attached. If you unplug this then perhaps your RAID1 will become sd6
> and your RAID5 will become sd7 and you may see it and make attempt to
> rebuilt it.

Thanks Karel for pointing this out, you are in fact right, and nothing is wrong 
with the logging, I just forgot that I'm decrypting that device 'automatically' 
in rc.local. And the kernel log was from before this, hence the similar device 
names.
I still think that nonetheless I should've gotten a degraded array that I can 
work with (eg. rebuild).

As a matter of fact I removed everything from the machine, and left just the 
four drives of the array, then booted into bsd.rd from a thumb drive.

Strangest thing is, if I boot with the 'bad' (=failing) drive as part of the 
array, softraid brings the volume online (albeit degraded) and I can even 
decrypt/mount the volume and use it (only one drive being bad in the array of 
RAID5).
If I remove/replace said failing drive, I'm not getting a degraded volume, just 
the error about the missing chunk and that it refuses to bring it online.

Either I completely misunderstood the whole idea about softraid and the RAID5 
setup (I mean, removing a device - failed or not - shouldn't hinder the 
assembly of the array, right?), or I'm missing something really obvious 8-/


Daniel

Reply via email to