From owner-freebsd-geom@FreeBSD.ORG Tue Oct 3 16:21:20 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1051C16A40F for ; Tue, 3 Oct 2006 16:21:20 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EDD843D4C for ; Tue, 3 Oct 2006 16:21:19 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp3-g19.free.fr (Postfix) with ESMTP id AC52D49C04 for ; Tue, 3 Oct 2006 18:21:18 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id AFE369B458; Tue, 3 Oct 2006 16:22:16 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 8D8AC405B; Tue, 3 Oct 2006 18:22:16 +0200 (CEST) Date: Tue, 3 Oct 2006 18:22:16 +0200 From: Jeremie Le Hen To: freebsd-geom@FreeBSD.org Message-ID: <20061003162216.GB1594@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 Cc: jeremie@le-hen.org Subject: Weird thing with gmirror X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 16:21:20 -0000 Hi, (Please Cc: me in your replies, I am not subscribed.) I am using: % obiwan:tataz$ uname -mv % FreeBSD 6.1-STABLE #8: Sun Jun 25 18:27:14 CEST 2006 root@obiwan:/usr/obj/usr/src/sys/OBIWAN i386 I have set up a mirror gm1 using gmirror(8), with ad1 and ad2 as providers. This had worked pretty well for weeks, until I got the following error: % ad1: FAILURE - READ_DMA status=51 error=40 LBA=6170832 % GEOM_MIRROR: Request failed (error=5). ad1[READ(offset=3159465984, length=65536)] % GEOM_MIRROR: Device gm1: provider ad1 disconnected. Obviously, my hard drive (Maxtor's drives really, really suck) is going sick. But as usual, a mere reboot seems to improves the disk state, for a while at least. I have rebooted the box, but now the kernel says: % GEOM_MIRROR: Device gm1 created (id=1340871616). % GEOM_MIRROR: Device gm1: provider ad1 detected. % GEOM_MIRROR: Device gm1: provider ad2 detected. % GEOM_MIRROR: Component ad1 (device gm1) broken, skipping. And gmirror(8)'s output is: % Geom name: gm1 % State: DEGRADED % Components: 2 % Balance: split % Slice: 4096 % Flags: NONE % GenID: 1 % SyncID: 1 % ID: 1340871616 % Providers: % 1. Name: mirror/gm1 % Mediasize: 81964301824 (76G) % Sectorsize: 512 % Mode: r1w1e2 % Consumers: % 1. Name: ad2 % Mediasize: 81964302336 (76G) % Sectorsize: 512 % Mode: r1w1e1 % State: ACTIVE % Priority: 0 % Flags: NONE % GenID: 1 % SyncID: 1 % ID: 1733588705 What am I suppose to do from here ? I've performed the following commands: % obiwan:root# gmirror forget gm1 ad1 % obiwan:root# gmirror insert gm1 ad1 But the whole disk is then wholly resynchronized. Is there any faster way to reconnecte ad1 to gm1 ? Thank you ! -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >