Hello, No, you do not need to reboot. At least this is how it worked for me for raid 1:
1) bioctl softraid0 said raid degraded 2) I installed new disk (sd2). 3) kenrel reported on console that disk is detected 4) I created MBR using fdisk on it 5) I created disklabel with RAID type on it 6) bioctl -R /dev/sd2a sd0 I suggest you to try it yourself, but not on production system) On Fri, Apr 27, 2018 at 2:21 AM, Jordan Geoghegan <jgeoghega...@gmail.com> wrote: > Hello, > > Sorry for my ignorance, I was hoping someone could clarify for me the > proper procedure for rebuilding a softraid mirror. The man page/faq says: > > >> Rebuilding a mirror >> >> When a drive failure happens, you will replace the failed drive, create >> the RAID and other disklabel partitions, then rebuild the mirror. Assuming >> your RAID volume is sd2 and you are replacing the failed device with sd1m, >> the following commands should work: >> >> #*bioctl -R /dev/sd1m sd2* >> #*reboot* >> >> These steps can be performed in either single user mode < >> https://www.openbsd.org/faq/faq8.html#LostPW> or from the install kernel >> <https://www.openbsd.org/faq/faq4.html#bsd.rd>. >> > Does this mean that a RAID rebuild can *only* be performed from single > user mode or install kernel, or is it possible to rebuild an array while > the system is in full operation? > > To phrase my question a different way: > Is it possible to hot swap drives and rebuild arrays on the fly, or will > this bork my system? > > Thanks, > Jordan Geoghegan > >