I am practicing setting up RAID5 inside a virtual machine running
OpenBSD 7.5 in VMM on OpenBSD 7.4.
I created 3 disks sd0, sd1, sd2, and sd3, and 4 disk devices (the fourth to
represent the RAID array itself):
Welcome to the OpenBSD/amd64 7.5 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s
# cd /dev/
# sh MAKEDEV sd0 sd1 sd2 sd3
# fdisk -iy sd0
Writing MBR at offset 0.
# fdisk -iy sd1
Writing MBR at offset 0.
# fdisk -iy sd2
Writing MBR at offset 0.
# disklabel -E sd0
Label editor (enter '?' for help at any prompt)
sd0> a a
offset: [64]
size: [41942976] *
FS type: [4.2BSD] RAID
sd0*> w
sd0> q
No label changes.
# disklabel sd0 > layout
# disklabel -R sd1 layout
# disklabel -R sd2 layout
# rm layout
# bioctl -c 5 -l sd0a,sd1a,sd2a softraid0
sd3 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 5, 006>
sd3: 40959MB, 512 bytes/sector, 83884800 sectors
softraid0: RAID 5 volume attached as sd3
# dd if=/dev/zero of=/dev/rsd3c bs=1m count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.028 secs (37044791 bytes/sec)
And I verified the RAID5 array is online:
# bioctl sd3
Volume Status Size Device
softraid0 0 Online 42949017600 sd3 RAID5
0 Online 21474533376 0:0.0 noencl <sd0a>
1 Online 21474533376 0:1.0 noencl <sd1a>
2 Online 21474533376 0:2.0 noencl <sd2a>
The rest of the OpenBSD installation proceeds as usual using sd3 as the
installation disk, but upon reboot, I run into this error:
>> OpenBSD/amd64 BOOT 3.65
open(sr0a:/etc/boot.conf): can't read disk label
boot>
cannot open sr0a:/etc/random.seed: can't read disk label
booting sr0a:/bsd: open sr0a:/bsd: can't read disk label
failed(100). will try /bsd
RAID1 worked fine, it's just RAID5 throwing this error at me.
--
jrmu
IRCNow (https://ircnow.org)