The disk aliasing is a bit complicated, but short answer is yes- that's an alias. I have a bit of config in place so that I can boot the same disks as both an LDom and on bare metal. Results are generally the same either way, as far as softraid is concerned.
As far as the loader messages go, I suspect that the loader simply isn't detecting the softraid. The final thing that occurs to me is installboot. Have you run installboot on the softraid device itself? Here's an example of the output from my working setup (you'll likely need to specify paths explicitly if you are working off the install image): > glasloc-obsd# installboot -v sd2 > Using / as root > installing bootstrap on /dev/rsd2c > using first-stage /usr/mdec/bootblk, second-stage /usr/mdec/ofwboot > boot block is 5840 bytes (12 blocks @ 512 bytes = 6144 bytes) > sd2: softraid volume with 2 disk(s) > sd2: installing boot loader on softraid volume > sd0a: installing boot blocks on /dev/rsd0c > writing boot block to disk /dev/rsd0c > sd1a: installing boot blocks on /dev/rsd1c > writing boot block to disk /dev/rsd1c > I thinks that's about the end of what I've got suggestion-wise. On Sun, Jun 30, 2019 at 12:46 PM Chris Ross <[email protected]> wrote: > On Sun, Jun 30, 2019 at 12:12:46PM -0400, Gao-Mi Baohao wrote: > > > Let me know if you can confirm that interpretation of "sr0a" > > > > Yes, "sr" == "softraid," but when I pulled the working config from my > > systems, I discovered that there's an unintuitive syntax that I had > > forgotten about, which is probeblty your missing piece. > > > > It looks like I actually set boot-device = "disk0" and boot-file = > > "sr0" (notice the omitted file and slice into), and the loader > > auto-selected "sr0:a/bsd" (no that's not a typo... "sr" + [softraid > > number] + ":" + [root slice on softraid dev] + "/bsd"). > > > > Give that a shot. That's jogging my memory about having to dig > > through source for the sparc64 loader to discover that very unintutive > > syntax. > > Okay. Thanks. Well, I tried using "sr0", but am still getting the same > error. Below. Note, I checked my "bioctl softraid0" which looks like > yours, > and the disklabel of my sd4 (the softraid disk) looks about like yours too. > a 1g 4.2BSD filesystem at offset 0. > > Something is still wrong on my end. So, before the difference in the > output > of OBP boot command, I notice you said "disk0" above, but your eeprom > output > below shows "vdisk0". Do you have a vdisk0 devalias on your system? > > After that, there's just the different response I see compared you yours. > I get: > > Boot device: /pci@0/pci@0/pci@2/scsi@0/disk@2 File and args: sr0 > OpenBSD IEEE 1275 Bootblock 1.4 > >> OpenBSD BOOT 1.12 > ERROR: /iscsi-hba: No iscsi-network-bootpath property > Unknown device: sr0 > Cannot boot from softraid: Unknown error: code 19 > > And, you see: > > sr0* > Booting sr0:a/bsd > > where I see: > > Unknown device: sr0 > Cannot boot from softraid: Unknown error: code 19 > > Any idea why the bootloader says "sr0*" for you, and "Unknown device" for > me? > > Thanks... > > - Chris > > > Here's my working config. > > > > > > ===OPENBOOT VARIABLES=== > > > glasloc-obsd# eeprom boot-device > > > boot-device=vdisk0 > > > glasloc-obsd# eeprom boot-file > > > boot-file=sr0 > > > > > > ===BOOT MESSAGES=== > > > T5140, No Keyboard > > > Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights > reserved. > > > OpenBoot 4.33.6, <<OMITTED>> MB memory available, Serial #<<OMITTED>>. > > > Ethernet address <<OMITTED>>, Host ID: <<OMITTED>>. > > > > > > > > > > > > Boot device: disk0 File and args: sr0 > > > OpenBSD IEEE 1275 Bootblock 1.4 > > > >> OpenBSD BOOT 1.12 > > > ERROR: /iscsi-hba: No iscsi-network-bootpath property > > > sr0* > > > Booting sr0:a/bsd > > > <<OMITTED>> > > > <<OMITTED>> > > > [ using 1036112 bytes of bsd ELF symbol table ] > > > console is /virtual-devices@100/console@1 > > > Copyright (c) 1982, 1986, 1989, 1991, 1993 > > > The Regents of the University of California. All rights > reserved. > > > Copyright (c) 1995-2019 OpenBSD. All rights reserved. > https://www.OpenBSD.org > > > > > > OpenBSD 6.5 (GENERIC.MP) #0: Tue Jun 18 18:13:03 EDT 2019 >
