From owner-freebsd-current@FreeBSD.ORG Tue Feb 3 05:08:19 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93C3A16A4CE for ; Tue, 3 Feb 2004 05:08:19 -0800 (PST) Received: from mail.komquats.com (h24-108-145-252.gv.shawcable.net [24.108.145.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB11143D2F for ; Tue, 3 Feb 2004 05:08:17 -0800 (PST) (envelope-from Cy.Schubert@komquats.com) Received: from cwsys.cwsent.com (cwsys [10.1.1.1]) by mail.komquats.com (Postfix) with ESMTP id B45D25A82E; Tue, 3 Feb 2004 05:08:16 -0800 (PST) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.12.10/8.12.8) with ESMTP id i13D8F8F022178; Tue, 3 Feb 2004 05:08:15 -0800 (PST) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Message-Id: <200402031308.i13D8F8F022178@cwsys.cwsent.com> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: Putinas Piliponis In-Reply-To: Your message of "Tue, 03 Feb 2004 03:23:12 +0200." <04cf01c3ea3f$56394960$0464a8c0@spotripoli.local> Date: Tue, 03 Feb 2004 05:08:15 -0800 Sender: Cy.Schubert@komquats.com cc: freebsd-current@freebsd.org Subject: Re: atacontrol rebuild and iostat X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Cy Schubert List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 13:08:19 -0000 (Silly me, my first attempt didn't cc the list, sorry.) In message <04cf01c3ea3f$56394960$0464a8c0@spotripoli.local>, "Putinas Piliponis" writes: > Hmm, another notice... > I created array, right now it's rebuilding > > atacontrol status ar0 > ar0: ATA RAID1 subdisks: ad4 ad6 status: REBUILDING 3% completed > > to check is it really doing what I expect I run > iostat ad4 ad6 1 > and I see 0 transfer to devices: > pilkis@freebsd:/usr/src# iostat ad4 ad6 1 > tty ad4 ad6 cpu > tin tout KB/t tps MB/s KB/t tps MB/s us ni sy in id > 1 1219 0.50 0 0.00 0.50 0 0.00 17 0 6 1 76 > 0 180 0.00 0 0.00 0.00 0 0.00 0 0 2 3 96 > 0 60 0.00 0 0.00 0.00 0 0.00 0 0 2 2 97 > 0 60 0.00 0 0.00 0.00 0 0.00 0 0 2 2 95 > 0 60 0.00 0 0.00 0.00 0 0.00 0 0 0 0 99 > 0 60 0.00 0 0.00 0.00 0 0.00 1 0 1 2 96 > > to be sure what I didn't miss something I also run > iostat ar0 > also no transfers 0.00MB/s > > Why nothing ? Iostat doesn't see the I/Os because RAID rebuilds occur within the controller, the I/Os are not initiated in the O/S nor any of its utilities, therefore the FreeBSDS kernel doesn't see them. The O/S doesn't see the I/Os. Atacontrol see 3% because it specifically queries the controller for that information. This is true of all hardware RAID controllers and true of all operating systems. Cheers, -- Cy Schubert http://www.komquats.com/ BC Government . FreeBSD UNIX Cy.Schubert@osg.gov.bc.ca . cy@FreeBSD.org http://www.gov.bc.ca/ . http://www.FreeBSD.org/