From owner-freebsd-stable@FreeBSD.ORG Sat Oct 28 18:33:37 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16B9D16A415 for ; Sat, 28 Oct 2006 18:33:37 +0000 (UTC) (envelope-from srw@udor.net) Received: from mail.udor.net (mail.udor.net [64.34.95.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id D080743D6A for ; Sat, 28 Oct 2006 18:33:35 +0000 (GMT) (envelope-from srw@udor.net) Received: from localhost (cpe-66-65-63-179.nyc.res.rr.com [66.65.63.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.udor.net (Postfix) with ESMTP id 4994478A89 for ; Sat, 28 Oct 2006 14:37:22 -0400 (EDT) Date: Sat, 28 Oct 2006 14:33:33 -0400 From: srwadleigh To: freebsd-stable@freebsd.org Message-ID: <20061028143333.2aef1a7d@localhost> In-Reply-To: <45433D5E.6070305@cold.dk> References: <20061027012611.71089229@localhost> <20061027112846.224d6dee@localhost> <45433D5E.6070305@cold.dk> X-Mailer: Sylpheed-Claws 2.5.2 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: gmirror + usb problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2006 18:33:37 -0000 On Sat, 28 Oct 2006 13:22:06 +0200 Brian Josefsen wrote: > srwadleigh wrote: > > On Fri, 27 Oct 2006 01:26:11 -0400 > > srwadleigh wrote: > > > > > >> Thinkpad T41 > >> 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #20: Thu Oct 26 05:15:07 EDT > >> > >> Two usb attached WD myBook 500gb external drives. The first drive > >> is setup as a gmirror provider, and mounts/functions fine, when I > >> attempt to add the second external drive it detects but will not > >> rebuild, it simply remains at 0%, no drive activity. > >> > >> Following the attempt to rebuild any attempt to stop the providers > >> or remove the stale drive causes the system to lockup or rather > >> become almost entirely unresponsive. Responds to pings, moused > >> input works, existing ssh sessions still function, but cannot > >> login, execute new commands, or get output without serious delays, > >> sometimes--eventually the system snaps back and everything is fine > >> but it can take a very long time. Nothing seems to entice the > >> second provider to sync up. > >> > >> I have tried setting gmirror to auto rebuild and manual, both yield > >> the same result. I have also tries each drive as the first > >> provider, again with the same results either way. Also tried > >> gmirror compiled in and as a mo > >> > >> I'm not sure if this is gmirror, usb, or the combo of the two > >> elements, or maybe even something with the mybook. > >> > >> > > > > An addition, the second provider does rebuild, just extremely > > slowly, according to the activity lights moving data only in short > > bursts spaced by long periods of inactivity. In the last eight > > hours the provider has reached 2%. > > > Hi > > I'm no expert here but, i would suspect that the proces is slow > because the usb controller is fighting for the bandwidth same way as > if you try to shift data from ad0 to ad1, perhaps use another usb > port for one of the disk and check top to see if usbd is having a > hard time. In general though i know that usb isn't the most fantastic > place to store your data as the intermediate controller can't push > the information about bad blocks etc. through usb. > > -- > Med venlig hilsen / Best regards > Brian Josefsen > Copenhagen, Denmark > That sounds quite possible, the one curious thing is rsyncing between the two drives, while it takes a long time to copy the full capacity, the drives do work continuously. Same two usb ports in question. It seems to me if rsync can run a big copy gmirror would be doing something similar but at a lower level, and maybe that makes all the difference to the usb controller. Soon I will have another system available to test with, likely better usb controller and firewire. Thanks