sparc* is not an fdisk / MBR platform


On 12/27/17 14:56, Edgar Pettijohn wrote:
On Wed, Dec 27, 2017 at 02:29:09PM -0800, Jordan Geoghegan wrote:
I tried installing again and followed your instructions to a T and the
installer hung after typing reboot at the prompt upon finishing install.

I let it sit for 10-15 minutes after entering reboot command but then
determined it had likely frozen considering it said the disks had been
synced and the softraid volume reported being detached. I power cycled the
device and was met with this upon reboot after following boot_sparc64(8)
instructions:

Boot device: disk0  File and args: sr0a:/bsd
OpenBSD IEEE 1275 Bootblock 1.4
OpenBSD BOOT 1.9
ERROR: /iscsi-hba: No iscsi-network-bootpath property
Unknown device: sr0
Cannot boot from softraid: Unknown error: code 19
Program terminated
{0} ok

So I rebooted and and tried once again with fresh disks while I recorded the
console output to see if anyone can spot me doing something wrong here, or
if this is indeed some sort of bug.

The installer didn't freeze the second time around, but I ultimately met the
same result:

Cannot boot from softraid: Unknown error: code 19

Any ideas?


T4-1 output:




NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.

SPARC T4-1, No Keyboard
Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.38.5, 127.5000 GB memory available, Serial #104767966.
Ethernet address 0:10:e0:3e:a1:de, Host ID: 863ea1de.



Can't open disk label package
Evaluating:
No viable default device found in boot-device variable.

{0} ok boot disk3:c bsd
Boot device: /pci@400/pci@1/pci@0/pci@4/scsi@0/disk@p3:c  File and args: bsd
OpenBSD IEEE 1275 Bootblock 1.4
..>> OpenBSD BOOT 1.9
|#/#-#open 
/pci@400/pci@1/pci@0/pci@4/scsi@0/disk@w5001b448b4351630,0:c/etc/random.seed: 
No such file or directory
\#|#/#-#\#Booting 
/pci@400/pci@1/pci@0/pci@4/scsi@0/disk@w5001b448b4351630,0:c/bsd
4087984@0x1000000|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|
#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|
#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|
#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#
|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#+8016@0x13e60b0/#+3260440@0x1c00000-#
\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-
#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-
#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-
#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\
#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#
/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/
#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#+933864@0x1f1c018\# 
#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#

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-2017 OpenBSD. All rights reserved.  https://www.OpenBSD.org


OpenBSD 6.2 (RAMDISK) #282: Tue Oct  3 23:21:19 MDT 2017

     dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/RAMDISK

real mem = 136902082560 (130560MB)

avail mem = 134512214016 (128280MB)

mainbus0 at root: SPARC T4-1

cpu0 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"SPARC-T4" at mainbus0 not configured

"reboot-memory" at mainbus0 not configured

vbus0 at mainbus0

"flashprom" at vbus0 not configured

"tpm" at vbus0 not configured

cbus0 at vbus0

"virtual-channel" at cbus0 not configured

"virtual-channel-client" at cbus0 not configured

"virtual-channel-client" at cbus0 not configured

"virtual-channel" at cbus0 not configured

"virtual-domain-service" at cbus0 not configured

vrng0 at vbus0

vcons0 at vbus0: ivec 0x111, console

vrtc0 at vbus0

vpci0 at mainbus0: bus 0 to 18, dvma map 80000000-ffffffff

pci0 at vpci0

ppb0 at pci0 dev 1 function 0 "Sun SPARC PCIE" rev 0x01

pci1 at ppb0 bus 1

ppb1 at pci1 dev 0 function 0 vendor "IDT", unknown product 0x807a rev 0x02

pci2 at ppb1 bus 2

ppb2 at pci2 dev 0 function 0 vendor "IDT", unknown product 0x807a rev 0x02: msi

pci3 at ppb2 bus 3

ppb3 at pci2 dev 4 function 0 vendor "IDT", unknown product 0x807a rev 0x02

pci4 at ppb3 bus 4

mpii0 at pci4 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi

mpii0: RF On-Board, firmware 9.5.0.0 IR, MPI 2.0

scsibus0 at mpii0: 834 targets

ppb4 at pci2 dev 6 function 0 vendor "IDT", unknown product 0x807a rev 0x02: msi

pci5 at ppb4 bus 5

ppb5 at pci2 dev 8 function 0 vendor "IDT", unknown product 0x807a rev 0x02: msi

pci6 at ppb5 bus 6

ppb6 at pci0 dev 2 function 0 "Sun SPARC PCIE" rev 0x01

pci7 at ppb6 bus 7

ppb7 at pci7 dev 0 function 0 vendor "IDT", unknown product 0x8077 rev 0x02

pci8 at ppb7 bus 8

ppb8 at pci8 dev 0 function 0 vendor "IDT", unknown product 0x8077 rev 0x02

pci9 at ppb8 bus 9

ppb9 at pci9 dev 0 function 0 "ASPEED Technology AST1150 PCI" rev 0x02

pci10 at ppb9 bus 10

"ASPEED Technology AST2000" rev 0x10 at pci10 dev 0 function 0 not configured

ppb10 at pci8 dev 4 function 0 vendor "IDT", unknown product 0x8077 rev 0x02

pci11 at ppb10 bus 11

mpii1 at pci11 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi

mpii1: RF On-Board, firmware 9.5.0.0 IR, MPI 2.0

scsibus1 at mpii1: 834 targets

ppb11 at pci8 dev 6 function 0 vendor "IDT", unknown product 0x8077 rev 0x02

pci12 at ppb11 bus 12

em0 at pci12 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 
00:10:e0:3e:a1:de

em1 at pci12 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 
00:10:e0:3e:a1:df

ppb12 at pci8 dev 7 function 0 vendor "IDT", unknown product 0x8077 rev 0x02

pci13 at ppb12 bus 13

em2 at pci13 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 
00:10:e0:3e:a1:e0

em3 at pci13 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 
00:10:e0:3e:a1:e1

ppb13 at pci8 dev 8 function 0 vendor "IDT", unknown product 0x8077 rev 0x02: 
msi

pci14 at ppb13 bus 14

ppb14 at pci8 dev 10 function 0 vendor "IDT", unknown product 0x8077 rev 0x02: 
msi

pci15 at ppb14 bus 15

ppb15 at pci8 dev 12 function 0 vendor "IDT", unknown product 0x8077 rev 0x02: 
msi

pci16 at ppb15 bus 16

ppb16 at pci8 dev 15 function 0 vendor "IDT", unknown product 0x8077 rev 0x02

pci17 at ppb16 bus 17

ppb17 at pci17 dev 0 function 0 "PLX PEX 8112" rev 0xaa

pci18 at ppb17 bus 18

ohci0 at pci18 dev 0 function 0 "NEC USB" rev 0x43: ivec 0x402, version 1.0

ohci1 at pci18 dev 0 function 1 "NEC USB" rev 0x43: ivec 0x403, version 1.0

ehci0 at pci18 dev 0 function 2 "NEC USB" rev 0x04: ivec 0x404

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 configuration 1 interface 0 "NEC EHCI root hub" rev 2.00/1.00 
addr 1

usb1 at ohci0: USB revision 1.0

uhub1 at usb1 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1

usb2 at ohci1: USB revision 1.0

uhub2 at usb2 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1

"niu" at mainbus0 not configured

"pci-performance-counters" at mainbus0 not configured

cd0 at scsibus1 targ 8 lun 0: <TEAC, DV-W28SS-W, 1.0A> ATAPI 5/cdrom removable

sd0 at scsibus0 targ 2 lun 0: <HP, EG0300FAWHV, HPDD> SCSI3 0/direct fixed 
naa.5000c5001b1e4cd3

sd0: 286102MB, 512 bytes/sector, 585937500 sectors

sd1 at scsibus0 targ 5 lun 0: <ATA, SanDisk SDSSDA24, 30RL> SCSI3 0/direct 
fixed naa.5001b448b4351630

sd1: 228936MB, 512 bytes/sector, 468862128 sectors

sd2 at scsibus0 targ 3 lun 0: <HP, EG0300FAWHV, HPDD> SCSI3 0/direct fixed 
naa.5000c50029674d0f

sd2: 286102MB, 512 bytes/sector, 585937500 sectors

uhub3 at uhub0 port 2 configuration 1 interface 0 "vendor 0x04b4 product 
0x6560" rev 2.00/0.0b addr 2

uhub4 at uhub3 port 3 configuration 1 interface 0 "American Megatrends Inc. Generic 
Hub" rev 2.00/1.00 addr 3

umass0 at uhub4 port 2 configuration 1 interface 0 "American Megatrends Inc. Virtual 
Cdrom Device" rev 2.00/1.00 addr 4

umass0: using SCSI over Bulk-Only

scsibus2 at umass0: 2 targets, initiator 0

cd1 at scsibus2 targ 1 lun 0: <AMI, Virtual CDROM, 1.00> SCSI0 5/cdrom removable

cdce0 at uhub4 port 3 configuration 2 interface 0 "SunMicro Virtual Eth Device" 
rev 2.00/1.00 addr 5

cdce0: address 02:21:28:57:47:17

uhidev0 at uhub3 port 4 configuration 1 interface 0 "American Megatrends Inc. 
Virtual Keyboard and Mouse" rev 1.10/1.00 addr 6

uhidev0: iclass 3/1

ukbd0 at uhidev0

wskbd0 at ukbd0

uhidev1 at uhub3 port 4 configuration 1 interface 1 "American Megatrends Inc. 
Virtual Keyboard and Mouse" rev 1.10/1.00 addr 6

uhidev1: iclass 3/1

uhid at uhidev1 not configured

uhub5 at uhub0 port 4 configuration 1 interface 0 "vendor 0x04b4 product 
0x6560" rev 2.00/0.0b addr 7

softraid0 at root

scsibus3 at softraid0: 256 targets

bootpath: /pci@400,0/pci@1,0/pci@0,0/pci@4,0/scsi@0,0/disk@5001b448b4351630,0:c

root on rd0a swap on rd0b dump on rd0b

erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/sparc64 6.2 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s
# cd /dev

# sh MAKEDEV sd1 sd2 sd3 sd4
Did you:

fdisk -iy sd0
fdisk -iy sd1 (or whatever the appropriate disk is)

the error code 19 is ENODEV so I'm guessing if you didn't then there is
no mbr and without it the bootcode may not be able to find the device.
Of course I'm no expert and its mainly just a guess.
# disklabel sd1

# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label:
duid: d2b2a5bbe2d92f1e
flags: vendor
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 1
sectors/cylinder: 32
cylinders: 180
total sectors: 468862128
boundstart: 0
boundend: 468862128
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
   a:             5760                0  4.2BSD   4096  8192   128
   c:        468862128                0  unused
#
# disklabel sd0

# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: EG0300FAWHV
duid: 0000000000000000
flags: vendor
bytes/sector: 512
sectors/track: 1284
tracks/cylinder: 4
sectors/cylinder: 5136
cylinders: 114029
total sectors: 585937500
boundstart: 0
boundend: 585937500
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
   c:        585937500                0  unused
#
# disklabel sd2

# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: EG0300FAWHV
duid: 0000000000000000
flags: vendor
bytes/sector: 512
sectors/track: 1284
tracks/cylinder: 4
sectors/cylinder: 5136
cylinders: 114029
total sectors: 585937500
boundstart: 0
boundend: 585937500
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
   c:        585937500                0  unused
# disklabel -E sd0

This platform requires that partition offsets/sizes be on cylinder boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder automatically.
Label editor (enter '?' for help at any prompt)
a a
offset: [0]
size: [585937500] *
Rounding size to cylinder (5136 sectors): 585935424
FS type: [4.2BSD] RAID
w
q
No label changes.
# disklabel sd0 > layout

# disklabel -R sd2 layout

# rm layout

# bioctl -c 1 -l sd0a,sd2a softraid0

sd3 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed

sd3: 286101MB, 512 bytes/sector, 585934896 sectors

softraid0: RAID 1 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.104 secs (10063131 bytes/sec)
# bioctl sd3

Volume      Status               Size Device
softraid0 0 Online       299998666752 sd3     RAID1
           0 Online       299998666752 0:0.0   noencl <sd0a>
           1 Online       299998666752 0:1.0   noencl <sd2a>
# install

At any prompt except password prompts you can escape to a shell by
typing '!'. Default answers are shown in []'s and are selected by
pressing RETURN.  You can exit this program at any time by pressing
Control-C, but this can leave your system in an inconsistent state.

System hostname? (short form, e.g. 'foo') NAS

Available network interfaces are: em0 em1 em2 em3 cdce0 vlan0.
Which network interface do you wish to configure? (or 'done') [em0]
IPv4 address for em0? (or 'dhcp' or 'none') [dhcp]
em0: DHCPDISCOVER - interval 1
em0: DHCPOFFER from 172.17.2.1 (a0:36:9f:a1:0d:e7)
em0: DHCPREQUEST to 255.255.255.255
em0: DHCPACK from 172.17.2.1 (a0:36:9f:a1:0d:e7)
em0: bound to 172.17.2.23 -- renewal in 21600 seconds
IPv6 address for em0? (or 'autoconf' or 'none') [none]
Available network interfaces are: em0 em1 em2 em3 cdce0 vlan0.
Which network interface do you wish to configure? (or 'done') [done]
Default IPv4 route? (IPv4 address or none) [172.17.2.1]
add net default: gateway 172.17.2.1
DNS domain name? (e.g. 'example.com') [my.domain]
Using DNS nameservers at 192.168.1.1

Password for root account? (will not echo)
Password for root account? (again)
Start sshd(8) by default? [yes]
Setup a user? (enter a lower-case loginname, or 'no') [no] bsduser
Full name for user bsduser? [bsduser]
Password for user bsduser? (will not echo)
Password for user bsduser? (again)
WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no] yes
What timezone are you in? ('?' for list) [Canada/Pacific]

Available disks are: sd0 sd1 sd2 sd3.
Which disk is the root disk? ('?' for details) [sd0] sd3
The auto-allocated layout for sd3 is:
#                size           offset  fstype [fsize bsize   cpg]
   a:             1.0G                0  4.2BSD   2048 16384     1 # /
   b:            27.2G          2104515    swap
   c:           279.4G                0  unused
   d:             4.0G         59199525  4.2BSD   2048 16384     1 # /tmp
   e:            35.4G         67601520  4.2BSD   2048 16384     1 # /var
   f:             2.0G        141773625  4.2BSD   2048 16384     1 # /usr
   g:             1.0G        145982655  4.2BSD   2048 16384     1 # /usr/X11R6
   h:            10.0G        148087170  4.2BSD   2048 16384     1 # /usr/local
   i:             2.0G        169068060  4.2BSD   2048 16384     1 # /usr/src
   j:             6.0G        173277090  4.2BSD   2048 16384     1 # /usr/obj
   k:           190.8G        185872050  4.2BSD   4096 32768     1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] e
This platform requires that partition offsets/sizes be on cylinder boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder automatically.
Label editor (enter '?' for help at any prompt)
p g
OpenBSD area: 0-585934896; size: 279.4G; free: 0.0G
#                size           offset  fstype [fsize bsize   cpg]
   a:             1.0G                0  4.2BSD   2048 16384     1 # /
   b:            27.2G          2104515    swap
   c:           279.4G                0  unused
   d:             4.0G         59199525  4.2BSD   2048 16384     1 # /tmp
   e:            35.4G         67601520  4.2BSD   2048 16384     1 # /var
   f:             2.0G        141773625  4.2BSD   2048 16384     1 # /usr
   g:             1.0G        145982655  4.2BSD   2048 16384     1 # /usr/X11R6
   h:            10.0G        148087170  4.2BSD   2048 16384     1 # /usr/local
   i:             2.0G        169068060  4.2BSD   2048 16384     1 # /usr/src
   j:             6.0G        173277090  4.2BSD   2048 16384     1 # /usr/obj
   k:           190.8G        185872050  4.2BSD   4096 32768     1 # /home
R b
[+|-]new size (with unit): [57095010] 8g
p g
OpenBSD area: 0-585934896; size: 279.4G; free: 19.2G
#                size           offset  fstype [fsize bsize   cpg]
   a:             1.0G                0  4.2BSD   2048 16384     1 # /
   b:             8.0G          2104515    swap
   c:           279.4G                0  unused
   d:             4.0G         18892440  4.2BSD   2048 16384     1 # /tmp
   e:            35.4G         27294435  4.2BSD   2048 16384     1 # /var
   f:             2.0G        101466540  4.2BSD   2048 16384     1 # /usr
   g:             1.0G        105675570  4.2BSD   2048 16384     1 # /usr/X11R6
   h:            10.0G        107780085  4.2BSD   2048 16384     1 # /usr/local
   i:             2.0G        128760975  4.2BSD   2048 16384     1 # /usr/src
   j:             6.0G        132970005  4.2BSD   2048 16384     1 # /usr/obj
   k:           190.8G        145564965  4.2BSD   4096 32768     1 # /home
R f
[+|-]new size (with unit): [4209030] 10g
p g
OpenBSD area: 0-585934896; size: 279.4G; free: 11.2G
#                size           offset  fstype [fsize bsize   cpg]
   a:             1.0G                0  4.2BSD   2048 16384     1 # /
   b:             8.0G          2104515    swap
   c:           279.4G                0  unused
   d:             4.0G         18892440  4.2BSD   2048 16384     1 # /tmp
   e:            35.4G         27294435  4.2BSD   2048 16384     1 # /var
   f:            10.0G        101466540  4.2BSD   2048 16384     1 # /usr
   g:             1.0G        122447430  4.2BSD   2048 16384     1 # /usr/X11R6
   h:            10.0G        124551945  4.2BSD   2048 16384     1 # /usr/local
   i:             2.0G        145532835  4.2BSD   2048 16384     1 # /usr/src
   j:             6.0G        149741865  4.2BSD   2048 16384     1 # /usr/obj
   k:           190.8G        162336825  4.2BSD   4096 32768     1 # /home
R i
[+|-]new size (with unit): [4209030] 4g
p g
OpenBSD area: 0-585934896; size: 279.4G; free: 9.2G
#                size           offset  fstype [fsize bsize   cpg]
   a:             1.0G                0  4.2BSD   2048 16384     1 # /
   b:             8.0G          2104515    swap
   c:           279.4G                0  unused
   d:             4.0G         18892440  4.2BSD   2048 16384     1 # /tmp
   e:            35.4G         27294435  4.2BSD   2048 16384     1 # /var
   f:            10.0G        101466540  4.2BSD   2048 16384     1 # /usr
   g:             1.0G        122447430  4.2BSD   2048 16384     1 # /usr/X11R6
   h:            10.0G        124551945  4.2BSD   2048 16384     1 # /usr/local
   i:             4.0G        145532835  4.2BSD   2048 16384     1 # /usr/src
   j:             6.0G        153934830  4.2BSD   2048 16384     1 # /usr/obj
   k:           190.8G        166529790  4.2BSD   4096 32768     1 # /home
R k
[+|-]new size (with unit): [400050630] 200g
Amount too big
199# ## ## #R e
[+|-]new size (with unit): [74172105] 35g
R k
[+|-]new size (with unit): [400050630] 200g
p g
OpenBSD area: 0-585934896; size: 279.4G; free: 0.4G
#                size           offset  fstype [fsize bsize   cpg]
   a:             1.0G                0  4.2BSD   2048 16384     1 # /
   b:             8.0G          2104515    swap
   c:           279.4G                0  unused
   d:             4.0G         18892440  4.2BSD   2048 16384     1 # /tmp
   e:            35.0G         27294435  4.2BSD   2048 16384     1 # /var
   f:            10.0G        100695420  4.2BSD   2048 16384     1 # /usr
   g:             1.0G        121676310  4.2BSD   2048 16384     1 # /usr/X11R6
   h:            10.0G        123780825  4.2BSD   2048 16384     1 # /usr/local
   i:             4.0G        144761715  4.2BSD   2048 16384     1 # /usr/src
   j:             6.0G        153163710  4.2BSD   2048 16384     1 # /usr/obj
   k:           200.0G        165758670  4.2BSD   4096 32768     1 # /home
w
q
No label changes.
/dev/rsd3a: 1027.6MB in 2104512 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3k: 204805.2MB in 419441080 sectors of 512 bytes
252 cylinder groups of 814.44MB, 26062 blocks, 52224 inodes each
/dev/rsd3d: 4102.5MB in 8401992 sectors of 512 bytes
21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3f: 10244.6MB in 20980888 sectors of 512 bytes
51 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3g: 1027.6MB in 2104512 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3h: 10244.6MB in 20980888 sectors of 512 bytes
51 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3j: 6149.9MB in 12594960 sectors of 512 bytes
31 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3i: 4102.5MB in 8401992 sectors of 512 bytes
21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd3e: 35840.3MB in 73400984 sectors of 512 bytes
178 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
Available disks are: sd0 sd1 sd2.
Which disk do you wish to initialize? (or 'done') [done]
/dev/sd3a (8db1efc313479eda.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd3k (8db1efc313479eda.k) on /mnt/home type ffs (rw, asynchronous, local, 
nodev, nosuid)
/dev/sd3d (8db1efc313479eda.d) on /mnt/tmp type ffs (rw, asynchronous, local, 
nodev, nosuid)
/dev/sd3f (8db1efc313479eda.f) on /mnt/usr type ffs (rw, asynchronous, local, 
nodev)
/dev/sd3g (8db1efc313479eda.g) on /mnt/usr/X11R6 type ffs (rw, asynchronous, 
local, nodev)
/dev/sd3h (8db1efc313479eda.h) on /mnt/usr/local type ffs (rw, asynchronous, 
local, nodev)
/dev/sd3j (8db1efc313479eda.j) on /mnt/usr/obj type ffs (rw, asynchronous, 
local, nodev, nosuid)
/dev/sd3i (8db1efc313479eda.i) on /mnt/usr/src type ffs (rw, asynchronous, 
local, nodev, nosuid)
/dev/sd3e (8db1efc313479eda.e) on /mnt/var type ffs (rw, asynchronous, local, 
nodev, nosuid)

Let's install the sets!
Location of sets? (cd0 cd1 disk http or 'done') [http]
HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
HTTP Server? (hostname, list#, 'done' or '?') [ftp.OpenBSD.org]
Server directory? [pub/OpenBSD/6.2/sparc64]

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
     [X] bsd           [X] base62.tgz    [X] game62.tgz    [X] xfont62.tgz
     [X] bsd.mp        [X] comp62.tgz    [X] xbase62.tgz   [X] xserv62.tgz
     [X] bsd.rd        [X] man62.tgz     [X] xshare62.tgz
Set name(s)? (or 'abort' or 'done') [done]

Get/Verify SHA256.sig     0% |                          |     0       --:-- ETA
Get/Verify SHA256.sig   100% |**************************|  1985       00:00
Signature Verified

Get/Verify bsd            0% |                          |     0       --:-- ETA
Get/Verify bsd            6% |*                         |   640 KB    00:14 ETA
Get/Verify bsd           22% |*****                     |  2176 KB    00:07 ETA
Get/Verify bsd           49% |************              |  4864 KB    00:03 ETA
Get/Verify bsd           84% |*********************     |  8320 KB    00:00 ETA
Get/Verify bsd          100% |**************************|  9834 KB    00:04

Get/Verify bsd.mp         0% |                          |     0       --:-- ETA
Get/Verify bsd.mp         7% |*                         |   768 KB    00:12 ETA
Get/Verify bsd.mp        24% |******                    |  2432 KB    00:06 ETA
Get/Verify bsd.mp        50% |*************             |  4992 KB    00:02 ETA
Get/Verify bsd.mp        82% |*********************     |  8192 KB    00:00 ETA
Get/Verify bsd.mp       100% |**************************|  9886 KB    00:04

Get/Verify bsd.rd         0% |                          |     0       --:-- ETA
Get/Verify bsd.rd        28% |*******                   |   768 KB    00:02 ETA
Get/Verify bsd.rd        95% |************************  |  2560 KB    00:00 ETA
Get/Verify bsd.rd        95% |************************  |  2560 KB    00:00 ETA
Get/Verify bsd.rd       100% |**************************|  2668 KB    00:03

Get/Verify base62.tgz     0% |                          |     0       --:-- ETA
Get/Verify base62.tgz     0% |                          |   640 KB    02:56 ETA
Get/Verify base62.tgz     1% |                          |  2176 KB    01:40 ETA
Get/Verify base62.tgz     4% |*                         |  4608 KB    01:09 ETA
Get/Verify base62.tgz     6% |*                         |  7424 KB    00:56 ETA
Get/Verify base62.tgz     9% |**                        | 11008 KB    00:45 ETA
Get/Verify base62.tgz    14% |***                       | 15744 KB    00:36 ETA
Get/Verify base62.tgz    18% |****                      | 20224 KB    00:31 ETA
Get/Verify base62.tgz    24% |******                    | 26624 KB    00:25 ETA
Get/Verify base62.tgz    26% |******                    | 29312 KB    00:25 ETA
Get/Verify base62.tgz    28% |*******                   | 32128 KB    00:24 ETA
Get/Verify base62.tgz    31% |********                  | 35072 KB    00:23 ETA
Get/Verify base62.tgz    34% |********                  | 38272 KB    00:22 ETA
Get/Verify base62.tgz    37% |*********                 | 41600 KB    00:21 ETA
Get/Verify base62.tgz    40% |**********                | 45056 KB    00:20 ETA
Get/Verify base62.tgz    43% |***********               | 48640 KB    00:19 ETA
Get/Verify base62.tgz    47% |************              | 52352 KB    00:17 ETA
Get/Verify base62.tgz    50% |*************             | 55424 KB    00:17 ETA
Get/Verify base62.tgz    53% |*************             | 59008 KB    00:15 ETA
Get/Verify base62.tgz    56% |**************            | 62080 KB    00:14 ETA
Get/Verify base62.tgz    59% |***************           | 65920 KB    00:13 ETA
Get/Verify base62.tgz    62% |****************          | 68992 KB    00:12 ETA
Get/Verify base62.tgz    65% |****************          | 72960 KB    00:11 ETA
Get/Verify base62.tgz    68% |*****************         | 76032 KB    00:10 ETA
Get/Verify base62.tgz    72% |******************        | 80000 KB    00:09 ETA
Get/Verify base62.tgz    76% |*******************       | 84224 KB    00:07 ETA
Get/Verify base62.tgz    80% |********************      | 88704 KB    00:06 ETA
Get/Verify base62.tgz    83% |*********************     | 93056 KB    00:05 ETA
Get/Verify base62.tgz    88% |**********************    | 97920 KB    00:03 ETA
Get/Verify base62.tgz    92% |***********************   |   100 MB    00:02 ETA
Get/Verify base62.tgz    97% |************************* |   105 MB    00:00 ETA
Get/Verify base62.tgz   100% |**************************|   108 MB    00:30

Get/Verify comp62.tgz     0% |                          |     0       --:-- ETA
Get/Verify comp62.tgz     1% |                          |   896 KB    00:52 ETA
Get/Verify comp62.tgz     5% |*                         |  2816 KB    00:31 ETA
Get/Verify comp62.tgz    11% |**                        |  5632 KB    00:22 ETA
Get/Verify comp62.tgz    19% |****                      |  9344 KB    00:16 ETA
Get/Verify comp62.tgz    29% |*******                   | 13952 KB    00:11 ETA
Get/Verify comp62.tgz    41% |**********                | 19456 KB    00:08 ETA
Get/Verify comp62.tgz    54% |**************            | 25600 KB    00:05 ETA
Get/Verify comp62.tgz    67% |*****************         | 31744 KB    00:03 ETA
Get/Verify comp62.tgz    83% |*********************     | 39552 KB    00:01 ETA
Get/Verify comp62.tgz    99% |************************* | 47104 KB    00:00 ETA
Get/Verify comp62.tgz   100% |**************************| 47128 KB    00:10

Get/Verify man62.tgz      0% |                          |     0       --:-- ETA
Get/Verify man62.tgz      9% |**                        |   640 KB    00:10 ETA
Get/Verify man62.tgz     29% |*******                   |  2048 KB    00:04 ETA
Get/Verify man62.tgz     63% |****************          |  4480 KB    00:01 ETA
Get/Verify man62.tgz     98% |************************* |  6912 KB    00:00 ETA
Get/Verify man62.tgz    100% |**************************|  7015 KB    00:04

Get/Verify game62.tgz     0% |                          |     0       --:-- ETA
Get/Verify game62.tgz    36% |*********                 |  1024 KB    00:01 ETA
Get/Verify game62.tgz    95% |************************  |  2688 KB    00:00 ETA
Get/Verify game62.tgz   100% |**************************|  2806 KB    00:02

Get/Verify xbase62.tgz    0% |                          |     0       --:-- ETA
Get/Verify xbase62.tgz    3% |                          |   640 KB    00:26 ETA
Get/Verify xbase62.tgz   12% |***                       |  2176 KB    00:14 ETA
Get/Verify xbase62.tgz   26% |******                    |  4608 KB    00:08 ETA
Get/Verify xbase62.tgz   45% |***********               |  7936 KB    00:04 ETA
Get/Verify xbase62.tgz   62% |****************          | 10880 KB    00:03 ETA
Get/Verify xbase62.tgz   85% |**********************    | 14976 KB    00:01 ETA
Get/Verify xbase62.tgz  100% |**************************| 17472 KB    00:06

Get/Verify xshare62.tgz   0% |                          |     0       --:-- ETA
Get/Verify xshare62.tgz  14% |***                       |   640 KB    00:05 ETA
Get/Verify xshare62.tgz  52% |*************             |  2304 KB    00:01 ETA
Get/Verify xshare62.tgz  98% |************************* |  4352 KB    00:00 ETA
Get/Verify xshare62.tgz  98% |************************* |  4352 KB    00:00 ETA
Get/Verify xshare62.tgz 100% |**************************|  4419 KB    00:04

Get/Verify xfont62.tgz    0% |                          |     0       --:-- ETA
Get/Verify xfont62.tgz    1% |                          |   768 KB    00:51 ETA
Get/Verify xfont62.tgz    6% |*                         |  2688 KB    00:27 ETA
Get/Verify xfont62.tgz   13% |***                       |  5504 KB    00:18 ETA
Get/Verify xfont62.tgz   22% |*****                     |  8832 KB    00:13 ETA
Get/Verify xfont62.tgz   33% |********                  | 13312 KB    00:09 ETA
Get/Verify xfont62.tgz   47% |************              | 18560 KB    00:06 ETA
Get/Verify xfont62.tgz   61% |***************           | 24064 KB    00:04 ETA
Get/Verify xfont62.tgz   77% |********************      | 30592 KB    00:02 ETA
Get/Verify xfont62.tgz   97% |************************* | 38400 KB    00:00 ETA
Get/Verify xfont62.tgz  100% |**************************| 39351 KB    00:09

Get/Verify xserv62.tgz    0% |                          |     0       --:-- ETA
Get/Verify xserv62.tgz    6% |*                         |   640 KB    00:15 ETA
Get/Verify xserv62.tgz   22% |*****                     |  2304 KB    00:06 ETA
Get/Verify xserv62.tgz   46% |***********               |  4736 KB    00:03 ETA
Get/Verify xserv62.tgz   78% |********************      |  8064 KB    00:01 ETA
Get/Verify xserv62.tgz  100% |**************************| 10266 KB    00:04

Installing bsd            0% |                          |     0       --:-- ETA
Installing bsd          100% |**************************|  9834 KB    00:00

Installing bsd.mp         0% |                          |     0       --:-- ETA
Installing bsd.mp       100% |**************************|  9886 KB    00:00

Installing bsd.rd         0% |                          |     0       --:-- ETA
Installing bsd.rd       100% |**************************|  2668 KB    00:00

Installing base62.tgz     0% |                          |     0       --:-- ETA
Installing base62.tgz    11% |**                        | 12672 KB    00:07 ETA
Installing base62.tgz    21% |*****                     | 23936 KB    00:07 ETA
Installing base62.tgz    29% |*******                   | 32640 KB    00:07 ETA
Installing base62.tgz    34% |********                  | 38528 KB    00:07 ETA
Installing base62.tgz    40% |**********                | 44416 KB    00:07 ETA
Installing base62.tgz    45% |***********               | 50816 KB    00:07 ETA
Installing base62.tgz    65% |****************          | 72576 KB    00:03 ETA
Installing base62.tgz    96% |************************  |   104 MB    00:00 ETA
Installing base62.tgz   100% |**************************|   108 MB    00:08

Extracting etc.tgz        0% |                          |     0       --:-- ETA
Extracting etc.tgz      100% |**************************|   189 KB    00:00

Installing comp62.tgz     0% |                          |     0       --:-- ETA
Installing comp62.tgz    25% |******                    | 12032 KB    00:02 ETA
Installing comp62.tgz    44% |***********               | 20992 KB    00:02 ETA
Installing comp62.tgz    66% |*****************         | 31360 KB    00:01 ETA
Installing comp62.tgz    77% |********************      | 36480 KB    00:01 ETA
Installing comp62.tgz    99% |************************* | 47104 KB    00:00 ETA
Installing comp62.tgz   100% |**************************| 47128 KB    00:05

Installing man62.tgz      0% |                          |     0       --:-- ETA
Installing man62.tgz     87% |**********************    |  6144 KB    00:00 ETA
Installing man62.tgz    100% |**************************|  7015 KB    00:01

Installing game62.tgz     0% |                          |     0       --:-- ETA
Installing game62.tgz   100% |**************************|  2806 KB    00:00

Installing xbase62.tgz    0% |                          |     0       --:-- ETA
Installing xbase62.tgz   54% |**************            |  9600 KB    00:00 ETA
Installing xbase62.tgz   93% |************************  | 16384 KB    00:00 ETA
Installing xbase62.tgz  100% |**************************| 17472 KB    00:02

Extracting xetc.tgz       0% |                          |     0       --:-- ETA
Extracting xetc.tgz     100% |**************************|  7040       00:00

Installing xshare62.tgz   0% |                          |     0       --:-- ETA
Installing xshare62.tgz  63% |****************          |  2816 KB    00:00 ETA
Installing xshare62.tgz  95% |************************  |  4224 KB    00:00 ETA
Installing xshare62.tgz 100% |**************************|  4419 KB    00:02

Installing xfont62.tgz    0% |                          |     0       --:-- ETA
Installing xfont62.tgz   40% |**********                | 16128 KB    00:01 ETA
Installing xfont62.tgz   68% |*****************         | 27008 KB    00:00 ETA
Installing xfont62.tgz   96% |************************  | 38016 KB    00:00 ETA
Installing xfont62.tgz  100% |**************************| 39351 KB    00:03

Installing xserv62.tgz    0% |                          |     0       --:-- ETA
Installing xserv62.tgz  100% |**************************| 10266 KB    00:00
Location of sets? (cd0 cd1 disk http or 'done') [done]
Saving configuration files...done.
Making all device nodes...done.
Multiprocessor machine; using bsd.mp instead of bsd.
Relinking to create unique kernel...done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.
When you login to your new system the first time, please read your mail
using the 'mail' command.

# reboot

syncing disks... done

sd3 detached

rebooting


NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.

SPARC T4-1, No Keyboard
Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.38.5, 127.5000 GB memory available, Serial #104767966.
Ethernet address 0:10:e0:3e:a1:de, Host ID: 863ea1de.



Boot device: disk0  File and args: sr0a:/bsd
OpenBSD IEEE 1275 Bootblock 1.4
OpenBSD BOOT 1.9
ERROR: /iscsi-hba: No iscsi-network-bootpath property
Unknown device: sr0
Cannot boot from softraid: Unknown error: code 19
Program terminated
{0} ok



On 12/27/17 04:52, Stefan Sperling wrote:
On Tue, Dec 26, 2017 at 12:56:53PM -0800, Jordan wrote:
The install procedure I followed on the T4 was:

1) Boot install kernel and drop to shell and provision RAID partitions on
both disks using the letter ???a??? via disklabel(8)

2) Assemble RAID volume with # bioctl -c 1 -l /dev/sd0a,/dev/sd1a softraid0

3) I zeroed the first 10MB of the RAID volume with # dd if=/dev/urandom
of=/dev/rsd2c bs=1m
Step 3 might get you in trouble. You're writing to the raw disk device
so this command might nuke disklabel and/or softraid meta data.

4) I finished off the install as usual by typing ???install??? into command line
and proceeded normally

5) I then rebooted and set the boot parameters at the ok prompt as per
boot_sparc(8)
In short, on sparc64, is softraid boot like that of i386/amd64 where
everything including root is stored within the RAID volume,
Yes, except as mentioned the RAID fs needs to be on an 'a' partition.

or does sparc64
require me to have a small partition at the beginning of my physical disks
containing the kernel and ofwboot?
No it does not.

Reply via email to