Subject: kern/23898: iostat output incorrect when raid_parity is reconstructing
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/27/2003 14:36:56
>Number:         23898
>Category:       kern
>Synopsis:       iostat output incorrect when raid_parity is reconstructing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 27 03:38:00 UTC 2003
>Originator:     grant beattie
>Release:        NetBSD 1.6ZG
System: NetBSD mofo 1.6ZG NetBSD 1.6ZG (MOFO) #8: Sat Dec 27 14:26:55 EST 2003 grant@mofo:/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
when a raidframe parity rebuild is initiated with 'raidctl -P dev'
on a mirror, the iostat output incorrectly reports that both disks are
reading, and neither are writing:

device  read KB/t    r/s   time     MB/s write KB/t    w/s   time     MB/s
wd4         64.00    168   0.63    10.49       0.00      0   0.63     0.00
wd6         64.00    168   0.59    10.49       0.00      0   0.59     0.00
raid0        0.00      0   0.00     0.00       0.00      0   0.00     0.00

clearly this is wrong ;)

when a reconstruct is initiated with 'raidctl -R component device',
iostat correctly reports that one disk is reading and the other is
have an unclean raidframe mirror and watch iostat output after
/etc/rc.d/raidframeparity runs.