Port-sparc64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kernel boots wrong disk
Hi,
I have my original 6.1.5 system with a RAID-1 configuration on sd0 and
sd1. Now I have installed 11 on a new disk in sd2 (sunlabel, disklabel,
newfs, extracting sets, installboot, /ofwboot, MAKEDEV etc. - I think I
didn't forget anything):
sun# sunlabel rsd2c
sunlabel> P
a: start cyl = 0, size = 8355096 (823/0/0 - 4079.64Mb)
b: start cyl = 823, size = 8355096 (823/0/0 - 4079.64Mb)
c: start cyl = 0, size = 143143200 (14100/0/0 - 69894.1Mb)
d: start cyl = 1646, size = 126433008 (12454/0/0 - 61734.9Mb)
aaaabbbbbddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
sun# disklabel sd2
# sd2:
type: SCSI
[...]
# size offset fstype [fsize bsize cpg/sgs]
a: 8355096 0 4.2BSD 0 0 0 # (Cyl. 0 -
822)
b: 8355096 8355096 swap # (Cyl. 823 -
1645)
c: 143143200 0 unused 0 0 # (Cyl. 0 -
14099)
d: 126433008 16710192 4.2BSD 0 0 0 # (Cyl. 1646 -
14099)
I have also written the fstab using sd2:
sun# cat /mnt/etc/fstab
/dev/sd2a / ffs rw,log 1 1
/dev/sd2b none swap sw,dp 0 0
kernfs /kern kernfs rw
procfs /proc procfs rw
ptyfs /dev/pts ptyfs rw
tmpfs /var/shm tmpfs rw,-m1777,-sram%25
Then I try to boot the netbsd-11 kernel from disk2 (sd2):
{0} ok boot disk2:a /netbsd -s
SC Alert: Host System has Reset
Probing system devices
Probing memory
Probing I/O buses
Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.17.1, 2048 MB memory installed, Serial #6408xxxx.
Ethernet address 0:3:ba:d1:xx:xx, Host ID: 83d1xxxx.
Rebooting with command: boot disk2:a /netbsd -s
Boot device: /pci@1c,600000/scsi@2/disk@2,0:a File and args: /netbsd -s
NetBSD IEEE 1275 Multi-FS Bootblock
Version $NetBSD: bootblk.fth,v 1.18 2025/02/28 09:07:12 andvar Exp $
>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.20 (Thu Jul 30 15:23:12
UTC 2026)
=0xbaf6e0
Loading /netbsd: 12252832+513752+330400 [749760+493157]=0xefe218
[...]
[ 4.9048970] sd2: 70007 MB, 14100 cyl, 24 head, 423 sec, 512
bytes/sect x 143374738 sectors
[ 5.0100218] sd2: sync (12.50ns offset 62), 16-bit (160.000MB/s)
transfers, tagged queueing
[ 7.4500203] entropy: best effort
[ 13.0900195] swwdog0: software watchdog initialized
[ 13.1900222] raid0: RAID Level 1
[ 13.2304734] raid0: Components: /dev/sd0a /dev/sd1a
[ 13.2855820] raid0: Total Sectors: 143374592 (70007 MB)
[ 13.5100210] root on raid0a dumps on raid0b
[ 13.6300207] root file system type: ffs
[...]
Er... what? Why does it select a RAID-frame from completely different
disks? Is this a known bug?
What can I do? Remove the disks? But I want to set up a new RAID system
on them using my current boot disk. :|
--
Frank Wille
Home |
Main Index |
Thread Index |
Old Index