From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 06:46:33 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 9C09116A4CE; Mon, 27 Sep 2004 06:46:33 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B063743D4C; Mon, 27 Sep 2004 06:46:32 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (oak.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8R6kV3D072174; Mon, 27 Sep 2004 09:46:31 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 79731-03; Mon, 27 Sep 2004 09:46:30 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8R6kUtp072171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Sep 2004 09:46:30 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i8R6kV1e090187; Mon, 27 Sep 2004 09:46:31 +0300 (EEST) (envelope-from ru) Date: Mon, 27 Sep 2004 09:46:30 +0300 From: Ruslan Ermilov To: Pawel Jakub Dawidek Message-ID: <20040927064630.GC89984@ip.net.ua> References: <20040927062820.GA89984@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8NvZYKFJsRX2Djef" Content-Disposition: inline In-Reply-To: <20040927062820.GA89984@ip.net.ua> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: current@FreeBSD.org Subject: Re: gmirror questions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 06:46:33 -0000 --8NvZYKFJsRX2Djef Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 27, 2004 at 09:28:20AM +0300, Ruslan Ermilov wrote: > 2. Before a reboot, the state of the mirror was "COMPLETE". >=20 > After a first reboot, everything was ok. After a second > reboot, I got this: >=20 > ad0: 38166MB [77545/16/63] at ata0-master UDMA100 > ad1: 38204MB [77622/16/63] at ata0-slave UDMA1= 00 > ad2: 38166MB [77545/16/63] at ata1-master UDMA100 > ad3: 38204MB [77622/16/63] at ata1-slave UDMA1= 00 > GEOM_MIRROR: Device m0 created (id=3D411263865). > GEOM_MIRROR: Device m0: provider ad1 detected. > GEOM_MIRROR: Device m0: provider ad3 detected. > GEOM_MIRROR: Device m0: provider ad3 activated. > GEOM_MIRROR: Device m0: provider mirror/m0 launched. > GEOM_MIRROR: Device m0: rebuilding provider ad1. >=20 > Any idea why it thinks ad1 should be rebuilt? >=20 This is reproduceable. After a resync and reboot, they got desynced again. Here's a full typescript: : # gmirror list : Geom name: m0 : State: COMPLETE : Components: 2 : Balance: split : Slice: 4096 : Flags: NONE : SyncID: 1 : ID: 411263865 : Providers: : 1. Name: mirror/m0 : Mediasize: 40060403200 (37G) : Sectorsize: 512 : # gmirror list : Geom name: m0 : State: COMPLETE : Components: 2 : Balance: split : Slice: 4096 : Flags: NONE : SyncID: 1 : ID: 411263865 : Providers: : 1. Name: mirror/m0 : Mediasize: 40060403200 (37G) : Sectorsize: 512 : Mode: r4w4e1 : Consumers: : 1. Name: ad1 : Mediasize: 40060403712 (37G) : Sectorsize: 512 : Mode: r4w4e2 : State: ACTIVE : Priority: 0 : Flags: DIRTY : SyncID: 1 : ID: 3517459746 : 2. Name: ad3 : Mediasize: 40060403712 (37G) : Sectorsize: 512 : Mode: r4w4e2 : State: ACTIVE : Priority: 0 : Flags: DIRTY : SyncID: 1 : ID: 4216416310 :=20 : Geom name: m0.sync :=20 : # reboot : Sep 27 06:41:04 bubu reboot: rebooted by root : Sep 27 06:41:04 bubu syslogd: exiting on signal 15 : Sep 27 06:41:04 amd[288]: amd.homes unmounted fstype toplvl from /homes : Waiting (max 60 seconds) for system process `vnlru' to stop...done : Waiting (max 60 seconds) for system process `bufdaemon' to stop...done : Waiting (max 60 seconds) for system process `syncer' to stop... : Syncing disks, vnodes remaining...2 2 0 0 done : No buffers busy after final sync : Uptime: 57m26s : Rebooting... :=20 : FreeBSD/i386 boot : Default: 0:ad(0,a)/boot/loader : boot: 1:ad(1,a)/boot/loaderConsole: serial port : BIOS drive A: is disk0 : BIOS drive C: is disk1 : BIOS drive D: is disk2 : BIOS drive E: is disk3 : BIOS drive F: is disk4 : BIOS 640kB/523200kB available memory :=20 : FreeBSD/i386 bootstrap loader, Revision 1.1 : (root@bubu.office.ipnet, Sat Sep 25 23:11:41 EEST 2004) : Loading /boot/defaults/loader.conf=20 : /boot/kernel/kernel text=3D0x1d200c data=3D0x279dc+0x25924 syms=3D[0x4+0x= 2ed20+0x4+0x3b9b1] : /boot/kernel/viapm.ko text=3D0x2af8 data=3D0x290+0xc syms=3D[0x4+0x7e0+0x= 4+0x904] : loading required module 'smbus' : /boot/kernel/smbus.ko text=3D0xfc4 data=3D0x360+0x4 syms=3D[0x4+0x7b0+0x4= +0xaa7] : loading required module 'iicbb' : /boot/kernel/iicbb.ko text=3D0x1d80 data=3D0x24c+0x8 syms=3D[0x4+0x6a0+0x= 4+0x7b2] : loading required module 'iicbus' : /boot/kernel/iicbus.ko text=3D0x13d0 data=3D0x268+0x4 syms=3D[0x4+0x6f0+0= x4+0x8c8] : /boot/kernel/geom_mirror.ko text=3D0xdbb0 data=3D0x320+0x8 syms=3D[0x4+0x= d50+0x4+0xeae] : | : Hit [Enter] to boot immediately, or any other key for command prompt. : Booting [/boot/kernel/kernel] in 9 seconds...=20 :=20 : Type '?' for a list of commands, 'help' for more detailed help. : OK boot -s : Copyright (c) 1992-2004 The FreeBSD Project. : Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 : The Regents of the University of California. All rights reserved. : FreeBSD 5.3-BETA6 #0: Sun Sep 26 14:19:09 EEST 2004 : root@bubu.office.ipnet:/usr/obj/usr/src/sys/BUBU : Timecounter "i8254" frequency 1193182 Hz quality 0 : CPU: AMD K7 processor (1603.65-MHz 686-class CPU) : Origin =3D "AuthenticAMD" Id =3D 0x681 Stepping =3D 1 : Features=3D0x383fbff : AMD Features=3D0xc0400000 : real memory =3D 536805376 (511 MB) : avail memory =3D 519925760 (495 MB) : npx0: [FAST] : npx0: on motherboard : npx0: INT 16 interface : pcib0: pcibus 0 on motherboard : pir0: on motherboard : pci0: on pcib0 : agp0: mem 0xe00= 00000-0xe7ffffff at device 0.0 on pci0 : pcib1: at device 1.0 on pci0 : pci1: on pcib1 : pci0: at device 16.0 (no driver attached) : pci0: at device 16.1 (no driver attached) : pci0: at device 16.2 (no driver attached) : pci0: at device 16.3 (no driver attached) : isab0: at device 17.0 on pci0 : isa0: on isab0 : atapci0: port 0xdc00-0xdc0f,0x376,0x170-0x1= 77,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0 : ata0: channel #0 on atapci0 : ata1: channel #1 on atapci0 : pci0: at device 17.5 (no driver attached) : vr0: port 0xe400-0xe4ff mem 0xe8001000= -0xe80010ff irq 11 at device 18.0 on pci0 : miibus0: on vr0 : ukphy0: on miibus0 : ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto : vr0: Ethernet address: 00:04:61:4d:0c:ac : cpu0 on motherboard : pmtimer0 on isa0 : atkbdc0: at port 0x64,0x60 on isa0 : atkbd0: irq 1 on atkbdc0 : kbd0 at atkbd0 : atkbd0: [GIANT-LOCKED] : fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 : fdc0: [FAST] : ppc0: at port 0x378-0x37f irq 7 on isa0 : ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode : ppbus0: on ppc0 : plip0: on ppbus0 : lpt0: on ppbus0 : lpt0: Interrupt-driven port : ppi0: on ppbus0 : sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 : sio0: type 16550A, console : sio1 at port 0x2f8-0x2ff irq 3 on isa0 : sio1: type 16550A : unknown: can't assign resources (port) : speaker0: at port 0x61 on isa0 : unknown: can't assign resources (port) : unknown: can't assign resources (port) : unknown: can't assign resources (port) : unknown: can't assign resources (port) : unknown: can't assign resources (port) : Timecounter "TSC" frequency 1603646608 Hz quality 800 : Timecounters tick every 10.000 msec : ad0: 38166MB [77545/16/63] at ata0-master UDMA100 : ad1: 38204MB [77622/16/63] at ata0-slave UDMA1= 00 : ad2: 38166MB [77545/16/63] at ata1-master UDMA100 : ad3: 38204MB [77622/16/63] at ata1-slave UDMA1= 00 : GEOM_MIRROR: Device m0 created (id=3D411263865). : GEOM_MIRROR: Device m0: provider ad1 detected. : GEOM_MIRROR: Device m0: provider ad3 detected. : GEOM_MIRROR: Device m0: provider ad3 activated. : GEOM_MIRROR: Device m0: provider mirror/m0 launched. : GEOM_MIRROR: Device m0: rebuilding provider ad1. : Mounting root from ufs:/dev/mirror/m0a : Enter full pathname of shell or RETURN for /bin/sh:=20 : #=20 : # gmirror list : Geom name: m0 : State: DEGRADED : Components: 2 : Balance: split : Slice: 4096 : Flags: NONE : SyncID: 1 : ID: 411263865 : Providers: : 1. Name: mirror/m0 : Mediasize: 40060403200 (37G) : Sectorsize: 512 : Mode: r2w1e1 : Consumers: : 1. Name: ad1 : Mediasize: 40060403712 (37G) : Sectorsize: 512 : Mode: r0w1e1 : State: SYNCHRONIZING : Priority: 0 : Flags: DIRTY, SYNCHRONIZING : SyncID: 1 : Synchronized: 5% : ID: 3517459746 : 2. Name: ad3 : Mediasize: 40060403712 (37G) : Sectorsize: 512 : Mode: r2w1e2 : State: ACTIVE : Priority: 0 : Flags: DIRTY : SyncID: 1 : ID: 4216416310 :=20 : Geom name: m0.sync : Consumers: : 1. Name: mirror/m0 : Mediasize: 40060403200 (37G) : Sectorsize: 512 : Mode: r1w0e0 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --8NvZYKFJsRX2Djef Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBV7dGqRfpzJluFF4RAnHtAJ4hOK1/b/YfScNKSPCMC1GPnkRdHQCdH022 kXyduPhIidHnyZc6S8yaGPc= =iCdW -----END PGP SIGNATURE----- --8NvZYKFJsRX2Djef--