From owner-freebsd-geom@FreeBSD.ORG Thu Oct 25 22:29:06 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 432AC16A417 for ; Thu, 25 Oct 2007 22:29:06 +0000 (UTC) (envelope-from mario.pranjic@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9BBA813C494 for ; Thu, 25 Oct 2007 22:29:05 +0000 (UTC) (envelope-from mario.pranjic@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so819390waf for ; Thu, 25 Oct 2007 15:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=tfV0tHd77uzE7wxAJtpvRVf6W5FpYgAnHoTEvz4joZY=; b=XeG7cIQF8HHdEyXWYn76GTu2rYACAjhAYiwHnYMAhv4EzP65bk1E3YwD77QszTfeh05kXxoz1U5CGGqdFOra+JAtPi9s5ZrM9JRKwWy3iTxy3kMAKebKZTRUYKKpycTc5hEjG1G8iVqKwQ7rwU7GiIP7CeVk49eZYC/HcLk1GI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=phIbqxOai/PE4cE0ib5mLqCNIMdAoNYImIH+Pcv2FLQ91kxGFjUeiph/L5MZ7adNNqFeLD2p+nlY2TolJ6GdA92LIH/eRd/rmuh5ykqdytTEsWyVeE78BQW6iqBfMYRAP+dwJxz5am4cwJcYCtfCiCTotMnG0LbTHaygIehHrRg= Received: by 10.115.15.1 with SMTP id s1mr2636229wai.1193349760971; Thu, 25 Oct 2007 15:02:40 -0700 (PDT) Received: by 10.114.13.14 with HTTP; Thu, 25 Oct 2007 15:02:40 -0700 (PDT) Message-ID: Date: Fri, 26 Oct 2007 00:02:40 +0200 From: "Mario Pranjic" To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: gmirror weird behaviour 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: Thu, 25 Oct 2007 22:29:06 -0000 Hi! I have a system with 2 250 GB disks in mirror: [root@haerbe ~]# gmirror status Name Status Components mirror/gmo COMPLETE ad0 ad2 system info: FreeBSD haerbe.net 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #0: Wed Sep 5 06:24:11 CEST 2007 root@haerbe.net:/usr/obj/usr/src/sys/HAERBE i386 At some point ad0 disk was detached from the system: Oct 25 06:43:10 haerbe ad0: FAILURE - device detached Oct 25 06:43:10 haerbe subdisk0: detached Oct 25 06:43:10 haerbe ad0: detached Oct 25 06:43:10 haerbe GEOM_MIRROR: Device gmo: provider ad0 disconnected. Oct 25 06:43:10 haerbe g_vfs_done():mirror/gmos2e[READ(offset=10598187008, length=16384)]error = 6 Oct 25 06:43:10 haerbe g_vfs_done():mirror/gmos2e[READ(offset=30252744704, length=16384)]error = 6 Mirror status: [root@haerbe /www/_backups/hrbwiki/2007-10-22]# gmirror status Name Status Components mirror/gmo DEGRADED ad2 [root@haerbe /www/_backups/hrbwiki/2007-10-22]# gmirror list Geom name: gmo State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 2 ID: 3221909623 Providers: 1. Name: mirror/gmo Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r8w8e10 Consumers: 1. Name: ad2 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1951693847 I cleaned the mirror: [root@haerbe]# gmirror forget gmo [root@haerbe ~]# gmirror status Name Status Components mirror/gmo COMPLETE ad2 After reboot the system is aware of both disks: ad0: 238475MB at ata0-master UDMA100 ad2: 238475MB at ata1-master UDMA100 but after that: GEOM_MIRROR: Cannot add disk ad2 to gmo (error=22). Root mount waiting for: GMIRROR Root mount waiting for: GMIRROR Root mount waiting for: GMIRROR GEOM_MIRROR: Force device gmo start due to timeout. GEOM_MIRROR: Device gmo: provider ad0 activated. GEOM_MIRROR: Device gmo: provider mirror/gmo launched. And the system rebooted with ad0 in mirror and not ad2! [root@haerbe ~]# gmirror list Geom name: gmo State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 2 ID: 3221909623 Providers: 1. Name: mirror/gmo Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r8w8e10 Consumers: 1. Name: ad0 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 2 ID: 2195860303 [root@haerbe ~]# gmirror status Name Status Components mirror/gmo DEGRADED ad0 Now I synced mirror again successfuly but this is weird. It should not be happening. Any ideas what is going on? Thnx! -- Mario. http://keeper.sharanet.org/ http://keeper.haerbe.net/ http://keeper.nymphomatic.org/