The following reply was made to PR system/6576; it has been noted by GNATS.
From: Mattieu Baptiste <[email protected]> To: Joel Sing <[email protected]> Cc: [email protected], [email protected], [email protected] Subject: Re: system/6576: softraid(4) attaches multiple sensors under the same sensor id Date: Tue, 15 Mar 2011 00:08:03 +0100 Le 03/13/11 14:28, Joel Sing a icrit : > On Wednesday 09 March 2011, [email protected] wrote: >>> Number: 6576 >>> Category: system >>> Synopsis: softraid(4) attaches multiple sensors under the same >>> sensor id Confidential: yes >>> Severity: serious >>> Priority: medium >>> Responsible: bugs >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: unknown >>> Arrival-Date: Tue Mar 08 16:10:01 GMT 2011 >>> Closed-Date: >>> Last-Modified: >>> Originator: >>> Release: >>> Organization: >>> Environment: >> >> System : OpenBSD 4.9 >> Details : OpenBSD 4.9 (GENERIC.MP) #2: Wed Mar 2 13:13:28 CET 2011 >> >> [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC.MP >> >> Architecture: OpenBSD.sparc64 >> Machine : sparc64 >> >>> Description: >> >> I have two softraid(4) volumes : >> $ sudo bioctl softraid0 >> Volume Status Size Device >> softraid0 0 Online 34008760320 sd4 RAID1 >> 0 Online 34008760320 0:0.0 noencl<sd0p> >> 1 Online 34008760320 0:1.0 noencl<sd1p> >> softraid0 1 Online 293625659392 sd5 RAID0 >> 0 Online 146814142464 1:0.0 noencl<sd2p> >> 1 Online 146812870656 1:1.0 noencl<sd3p> >> >> But the sensor framework exposed their state under the same sysctl node: >> $ sysctl hw.sensors >> hw.sensors.softraid0.drive0=online (sd4), OK >> hw.sensors.softraid0.drive0=online (sd5), OK >> >> $ sysctl hw.sensors.softraid0.drive0 >> hw.sensors.softraid0.drive0=online (sd4), OK >> > > For some (currently unknown) reason, softraid attaches multiple sensordevs > (one per discipline), rather than one per the softraid device (i.e. > softraid0). > The below diff changes this and fixes the problem. Hi Joel, Your patch solves the problem: $ sudo bioctl softraid0 Password: Volume Status Size Device softraid0 0 Online 34008760320 sd4 RAID1 0 Online 34008760320 0:0.0 noencl <sd0p> 1 Online 34008760320 0:1.0 noencl <sd1p> softraid0 1 Online 293625659392 sd5 RAID0 0 Online 146814142464 1:0.0 noencl <sd2p> 1 Online 146812870656 1:1.0 noencl <sd3p> $ sudo sysctl hw.sensors hw.sensors.softraid0.drive0=online (sd4), OK hw.sensors.softraid0.drive1=online (sd5), OK $ sysctl hw.sensors.softraid0.drive0 hw.sensors.softraid0.drive0=online (sd4), OK $ sysctl hw.sensors.softraid0.drive1 hw.sensors.softraid0.drive1=online (sd5), OK Thanks for your time. -- Mattieu Baptiste "/earth is 102% full ... please delete anyone you can."
