NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/56369: raid does not autoconfig root and configures two times



>Number:         56369
>Category:       kern
>Synopsis:       raid does not autoconfig root and configures two times
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 19 18:40:00 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.88
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD sunny-weather.duskware.de 9.99.88 NetBSD 9.99.88 (SUNNY.MP) #1: Thu Aug 19 19:56:48 CEST 2021 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/sparc64/compile/SUNNY.MP sparc64
Architecture: sparc64
Machine: sparc64
>Description:

I just updated two machines booting from raid 1 from older installations
and now am unexpectedly asked for the root device on both.
A 9.88.80 kernel did boot w/o prompt.

Also note that the raid cloned itself, raid1 is a fake.

...
[   8.2800271] raid0: RAID Level 1
[   8.3200261] raid0: Components: /dev/sd0a /dev/sd1a
[   8.3800261] raid0: Total Sectors: 286749408 (140014 MB)
[   8.5100271] raid1: RAID Level 1
[   8.5500261] raid1: Components: /dev/sd0c /dev/sd1c
[   8.6000261] raid1: Total Sectors: 286749408 (140014 MB)
[   8.7700271] root device (default sd0a): raid0a
[  31.8900271] dump device (default raid0b): 
[  33.5800261] file system (default generic): 
[  34.2800261] root on raid0a dumps on raid0b
[  34.3700271] root file system type: ffs
[  34.4200261] kern.module.path=/stand/sparc64/9.99.88/modules
[  34.5000281] init path (default /sbin/init): 
[  35.5700261] init: trying /sbin/init
Thu Aug 19 20:01:52 CEST 2021
...

Raidctl shows:

[/] root@sunny-weather # raidctl -s raid0
Components:
           /dev/sd0a: optimal
           /dev/sd1a: optimal
No spares.
Component label for /dev/sd0a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 96285633, Mod Counter: 1848
   Clean: No, Status: 0
   sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 286749408
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Force
   Last configured as: raid0
Component label for /dev/sd1a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 96285633, Mod Counter: 1848
   Clean: No, Status: 0
   sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 286749408
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Force
   Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.

Disklabel for both disks is identical:

3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 287132440         0       RAID                     # (Cyl.      0 -  47983*)
 c: 287132440         0     unused      0     0        # (Cyl.      0 -  47983*)


>How-To-Repeat:
s.a.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index