Re: gmirror questions

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Mon, 27 Sep 2004 09:46:30 +0300
On Mon, Sep 27, 2004 at 09:28:20AM +0300, Ruslan Ermilov wrote:
> 2.  Before a reboot, the state of the mirror was "COMPLETE".
> 
> After a first reboot, everything was ok.  After a second
> reboot, I got this:
> 
> ad0: 38166MB <ST340014A/3.06> [77545/16/63] at ata0-master UDMA100
> ad1: 38204MB <SAMSUNG SV0411N/UA100-11> [77622/16/63] at ata0-slave UDMA100
> ad2: 38166MB <ST340014A/3.06> [77545/16/63] at ata1-master UDMA100
> ad3: 38204MB <SAMSUNG SV0411N/UA100-11> [77622/16/63] at ata1-slave UDMA100
> GEOM_MIRROR: Device m0 created (id=411263865).
> 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.
> 
> Any idea why it thinks ad1 should be rebuilt?
> 
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
: 
: Geom name: m0.sync
: 
: # 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...
: 
: 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
: 
: FreeBSD/i386 bootstrap loader, Revision 1.1
: (root_at_bubu.office.ipnet, Sat Sep 25 23:11:41 EEST 2004)
: Loading /boot/defaults/loader.conf 
: /boot/kernel/kernel text=0x1d200c data=0x279dc+0x25924 syms=[0x4+0x2ed20+0x4+0x3b9b1]
: /boot/kernel/viapm.ko text=0x2af8 data=0x290+0xc syms=[0x4+0x7e0+0x4+0x904]
: loading required module 'smbus'
: /boot/kernel/smbus.ko text=0xfc4 data=0x360+0x4 syms=[0x4+0x7b0+0x4+0xaa7]
: loading required module 'iicbb'
: /boot/kernel/iicbb.ko text=0x1d80 data=0x24c+0x8 syms=[0x4+0x6a0+0x4+0x7b2]
: loading required module 'iicbus'
: /boot/kernel/iicbus.ko text=0x13d0 data=0x268+0x4 syms=[0x4+0x6f0+0x4+0x8c8]
: /boot/kernel/geom_mirror.ko text=0xdbb0 data=0x320+0x8 syms=[0x4+0xd50+0x4+0xeae]
: |
: Hit [Enter] to boot immediately, or any other key for command prompt.
: Booting [/boot/kernel/kernel] in 9 seconds... 
: 
: 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_at_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 = "AuthenticAMD"  Id = 0x681  Stepping = 1
:   Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
:   AMD Features=0xc0400000<AMIE,DSP,3DNow!>
: real memory  = 536805376 (511 MB)
: avail memory = 519925760 (495 MB)
: npx0: [FAST]
: npx0: <math processor> on motherboard
: npx0: INT 16 interface
: pcib0: <Host to PCI bridge> pcibus 0 on motherboard
: pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
: pci0: <PCI bus> on pcib0
: agp0: <VIA 8377 (Apollo KT400/KT400A/KT600) host to PCI bridge> mem 0xe0000000-0xe7ffffff at device 0.0 on pci0
: pcib1: <PCI-PCI bridge> at device 1.0 on pci0
: pci1: <PCI bus> on pcib1
: pci0: <serial bus, USB> at device 16.0 (no driver attached)
: pci0: <serial bus, USB> at device 16.1 (no driver attached)
: pci0: <serial bus, USB> at device 16.2 (no driver attached)
: pci0: <serial bus, USB> at device 16.3 (no driver attached)
: isab0: <PCI-ISA bridge> at device 17.0 on pci0
: isa0: <ISA bus> on isab0
: atapci0: <VIA 8235 UDMA133 controller> port 0xdc00-0xdc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0
: ata0: channel #0 on atapci0
: ata1: channel #1 on atapci0
: pci0: <multimedia, audio> at device 17.5 (no driver attached)
: vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe400-0xe4ff mem 0xe8001000-0xe80010ff irq 11 at device 18.0 on pci0
: miibus0: <MII bus> on vr0
: ukphy0: <Generic IEEE 802.3u media interface> 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: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
: atkbd0: <AT Keyboard> irq 1 on atkbdc0
: kbd0 at atkbd0
: atkbd0: [GIANT-LOCKED]
: fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
: fdc0: [FAST]
: ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
: ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
: ppbus0: <Parallel port bus> on ppc0
: plip0: <PLIP network interface> on ppbus0
: lpt0: <Printer> on ppbus0
: lpt0: Interrupt-driven port
: ppi0: <Parallel I/O> 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: <PNP0303> can't assign resources (port)
: speaker0: <PC speaker> at port 0x61 on isa0
: unknown: <PNP0c02> can't assign resources (port)
: unknown: <PNP0501> can't assign resources (port)
: unknown: <PNP0700> can't assign resources (port)
: unknown: <PNP0400> can't assign resources (port)
: unknown: <PNP0501> can't assign resources (port)
: Timecounter "TSC" frequency 1603646608 Hz quality 800
: Timecounters tick every 10.000 msec
: ad0: 38166MB <ST340014A/3.06> [77545/16/63] at ata0-master UDMA100
: ad1: 38204MB <SAMSUNG SV0411N/UA100-11> [77622/16/63] at ata0-slave UDMA100
: ad2: 38166MB <ST340014A/3.06> [77545/16/63] at ata1-master UDMA100
: ad3: 38204MB <SAMSUNG SV0411N/UA100-11> [77622/16/63] at ata1-slave UDMA100
: GEOM_MIRROR: Device m0 created (id=411263865).
: 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: 
: # 
: # 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
: 
: Geom name: m0.sync
: Consumers:
: 1. Name: mirror/m0
:    Mediasize: 40060403200 (37G)
:    Sectorsize: 512
:    Mode: r1w0e0


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Mon Sep 27 2004 - 04:46:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:14 UTC