NetBSD-Bugs archive

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

bin/53956: raidframe fails to create raid set



>Number:         53956
>Category:       bin
>Synopsis:       raidframe fails to create raid set
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 07 13:40:00 +0000 2019
>Originator:     he%NetBSD.org@localhost
>Release:        NetBSD 8.0
>Organization:
	I try...
>Environment:
System: NetBSD  8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	I'm trying to configure raidframe on a "new" system, having
	booted from the USB image.  I've labeled the disks using
	disklabel:

# disklabel wd0
# /dev/rwd0:
type: ESDI
disk: MB2000EBZQC     
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3876021
total sectors: 3907029168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   2098176         0     4.2BSD   1024  8192  2000  # (Cyl.      0 -   2081*)
 d: 3907029168         0     unused      0     0        # (Cyl.      0 - 3876020)
 e: 3904930992   2098176       RAID                     # (Cyl.   2081*- 3876020)
# disklabel wd1
# /dev/rwd1:
type: ESDI
disk: MB2000EBZQC     
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3876021
total sectors: 3907029168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   2098176         0     4.2BSD   1024  8192  2000  # (Cyl.      0 -   2081*)
 d: 3907029168         0     unused      0     0        # (Cyl.      0 - 3876020)
 e: 3904930992   2098176       RAID                     # (Cyl.   2081*- 3876020)

	and I've prepared a raid config file:

# ed /tmp/raid0.conf
/tmp/raid0.conf: No such file or directory
a
START array
1 2 0

START disks
/dev/wd0e
/dev/wd1e

START layout
32 1 1 0

START queue
fifo 100
.
w
96
q
#

	However, when using this with raidctl, it fails, and attempts
	at initializing the raid also fails:

# raidctl -C /tmp/raid0.conf raid0
Hosed component: /dev/wd1e
Hosed component: /dev/wd0e
raid0: Ignoring /dev/wd0e
raid0: Component /dev/wd1e being configured at col: 1
         Column: 1883401063 Num Columns: 1131244131
         Version: 1934767458 Serial Number: 1095391567 Mod Counter: 1413903690
         Clean: Yes Status: 828011592
/dev/wd1e has a different serial number: -427209529 1095391567
Row out of alignment for: /dev/wd1e
Column out of alignment for: /dev/wd1e
Number of columns do not match for: /dev/wd1e
raid0: There were fatal errors
raid0: Fatal errors being ignored.
raid0: RAID Level 0
raid0: Components: /dev/wd0e[**FAILED**] /dev/wd1e[**FAILED**]
raid0: Total Sectors: 7809861824 (3813409 MB)
raid0: failed to create a dag. Too many component failures.
raid0d: error reading fsbn 0 (raid0 bn 0; cn 0 tn 0 sn 0)
raid0: failed to create a dag. Too many component failures.
raid0d: error reading fsbn 0 of 0-31 (raid0 bn 0; cn 0 tn 0 sn 0)
raid0: failed to create a dag. Too many component failures.
raid0d: error reading fsbn 1 (raid0 bn 1; cn 0 tn 0 sn 1)
# raidctl -I 11223344 raid0
raid0: failed to create a dag. Too many component failures.
raid0d: error reading fsbn 0 (raid0 bn 0; cn 0 tn 0 sn 0)
#
# raidctl -iv raid0
raid0: failed to create a dag. Too many component failures.
raid0d: error reading fsbn 0 (raid0 bn 0; cn 0 tn 0 sn 0)
Initiating re-wite of parity
Parity Re-write status:

# raidctl -s raid0
raid0: failed to create a dag. Too many component failures.
raid0d: error reading fsbn 0 (raid0 bn 0; cn 0 tn 0 sn 0)
Components:
           /dev/wd0e: failed
           /dev/wd1e: failed
No spares.
/dev/wd0e status is: failed.  Skipping label.
/dev/wd1e status is: failed.  Skipping label.
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
# 

	The disks are readable just fine:

# dd if=/dev/rwd0d of=/dev/null bs=32k
load: 0.08  cmd: dd 45 [physio] 0.02u 0.17s 0% 1000k
6243+0 records in
6243+0 records out
204570624 bytes transferred in 2.218 secs (92232021 bytes/sec)
load: 0.08  cmd: dd 45 [physio] 0.03u 0.35s 2% 1044k
12558+0 records in
12558+0 records out
411500544 bytes transferred in 4.139 secs (99420281 bytes/sec)
load: 0.08  cmd: dd 45 [physio] 0.04u 0.55s 2% 1044k
19397+0 records in
19397+0 records out
635600896 bytes transferred in 6.221 secs (102170213 bytes/sec)
load: 0.15  cmd: dd 45 [physio] 0.06u 0.70s 2% 1044k
25108+0 records in
25108+0 records out
822738944 bytes transferred in 7.952 secs (103463146 bytes/sec)
^C30090+0 records in
30090+0 records out
985989120 bytes transferred in 9.464 secs (104183127 bytes/sec)
#
# dd if=/dev/rwd0e count=1000 bs=32k of=/dev/null
1000+0 records in
1000+0 records out
32768000 bytes transferred in 0.326 secs (100515337 bytes/sec)
# dd if=/dev/rwd1e count=1000 bs=32k of=/dev/null
1000+0 records in
1000+0 records out
32768000 bytes transferred in 0.327 secs (100207951 bytes/sec)
# 

>How-To-Repeat:
	Try to create a fresh raid set using the 8.0 USB install
	image; watch it fail.

>Fix:
	I do not know, sorry.



Home | Main Index | Thread Index | Old Index