On Wed, Nov 05, 2008 at 10:45:58AM +0100, Christophe Rioux wrote: > Hi > > I follow my mail from september were I tried to install the soft raid on > OpenBSD 4.3. As we saw, this couldn't work.
Do not mix up softraid with RaidFrame. You use RaidFrame (raidctl below). softraid use bioctl. They are competing products. > > I redone the procedure with the new released version, and it seems to be > better: > > Extraction of dmesg: > > softraid0 at root > root on wd0a swap on wd0b dump on wd0b > raid0: Component /dev/wd0d being configured at row: 0 col: 0 > Row: 0 Column: 0 Num Rows: 1 Num Columns: 2 > Version: 2 Serial Number: 100 Mod Counter: 128 > Clean: Yes Status: 0 > raid0: Component /dev/wd1d being configured at row: 0 col: 1 > Row: 0 Column: 1 Num Rows: 1 Num Columns: 2 > Version: 2 Serial Number: 100 Mod Counter: 128 > Clean: Yes Status: 0 > raid0 at root > > The last question I have is: it seems that I actually boot on wd0a, which is > not a RAID disk. How can I boot on raid0a ? > It seems the raid autoconfig does not work. What does raidctl -vs raid0 say? An example from an older release: raid0 Components: /dev/wd0d: optimal /dev/wd1d: optimal No spares. Component label for /dev/wd0d: Row: 0, Column: 0, Num Rows: 1, Num Columns: 2 Version: 2, Serial Number: 2007050900, Mod Counter: 219 Clean: No, Status: 0 sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1 Queue size: 100, blocksize: 512, numBlocks: 153150336 RAID Level: 1 Autoconfig: Yes Root partition: Yes Last configured as: raid0 Component label for /dev/wd1d: Row: 0, Column: 1, Num Rows: 1, Num Columns: 2 Version: 2, Serial Number: 2007050900, Mod Counter: 219 Clean: No, Status: 0 sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1 Queue size: 100, blocksize: 512, numBlocks: 153150336 RAID Level: 1 Autoconfig: Yes Root partition: Yes Last configured as: raid0 Parity status: clean Reconstruction is 100% complete. Parity Re-write is 100% complete. Copyback is 100% complete. Note Autoconfig: Yes and Root Partition: Yes. Did you build your kernel with RAID autoconfig support? > I made a test: creating a file after booting on hd0a, and this file doesn't > exist in hd1a. > > The commands I done to build the raid: > > raidctl -C /etc/raid0.conf raid0 > raidctl -I 100 raid0 > raidctl -iv raid0 > disklabel -E raid0 > newfs /dev/rraid0a > newfs /dev/rraid0d > mount /dev/raid0a /mnt > cd /mnt > dump -0f - / | restore -rf - > raidctl -A yes raid0 > raidctl -A root raid0 > echo /dev/raid0a / ffs rw 1 1 > /mnt/etc/fstab > echo /dev/raid0b none swap sw 0 0 >> /mnt/etc/fstab > echo /dev/raid0d /home ffs rw,nodev,nosuid,softdep 1 2 >> /mnt/etc/fstab > umount /mnt > Reboot > > Thanks for the reply > > Regards -- / Raimo Niskanen, Erlang/OTP, Ericsson AB