gmirror: replacing failed disks

Doug Poland doug at polands.org
Tue Jan 18 20:36:27 PST 2005


On Tue, Jan 18, 2005 at 09:02:48AM -0600, Doug Poland wrote:
> 
> >> GEOM_MIRROR: Component ad4 (device gm0s1) broken, skipping.
> >> GEOM_MIRROR: Cannot add disk ad4 to gm0s1 (error=22).
> >
> > You can set 'kern.geom.mirror.debug=2' in /boot/loader.conf. This
> > tells you more about what happens. I tested all this at a very early
> > stage of development, so gmirror's behaviour might have changed.
> > There is also a small chance that some bits in my brain got lost
> > since I tested his :)
> >
> I set this while the OS is running.  GEOM_MIRROR responds every 5
> seconds....
> 
> GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
> GEOM_MIRROR[2]: Metadata on ad6 updated.
> GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
> GEOM_MIRROR[2]: Metadata on ad6 updated.
> 
> Can I get gmirror to attempt to connect to ad4 again?  I tried an
> atcontrol reinit 2, that didn't do it.  I also tried gmirror rebuild
> gm0s1 ad4, but gmirror said: "No such provider: ad4".
> 
Sorry to reply to my own post, but when I rebooted the box, this is what
I see in /var/log/messages concerning gmirror:

... snip ...
Jan 18 21:06:10 sgwww02 kernel: ad4: 76319MB <WDC WD800JD-00HKA0/13.03G13> [155061/16/63] at ata2-master SATA150
Jan 18 21:06:10 sgwww02 kernel: ad6: 76319MB <WDC WD800JD-00JNA0/05.01C05> [155061/16/63] at ata3-master SATA150
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR: Device gm0s1 created (id=594613568).
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR: Device gm0s1: provider ad4 detected.
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR: Device gm0s1: provider ad6 detected.
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR: Component ad4 (device gm0s1) broken, skipping.
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR: Device gm0s1: provider ad6 activated.
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR: Device gm0s1: provider mirror/gm0s1 launched.
Jan 18 21:06:10 sgwww02 kernel: Mounting root from ufs:/dev/mirror/gm0s1a
Jan 18 21:06:10 sgwww02 kernel: em0: Link is up 100 Mbps Full Duplex
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:10 sgwww02 kernel: em0: Link is up 100 Mbps Full Duplex
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:06:10 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:17 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:06:17 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:17 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:06:17 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:22 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:06:22 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:22 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:06:22 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:32 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:06:32 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:32 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:06:32 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:46 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:06:46 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:46 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:06:46 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:52 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:06:52 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:06:52 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:06:52 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:07:02 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:07:02 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:07:02 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:07:02 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r-1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r-1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r-1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r1w0e0.
Jan 18 21:07:12 sgwww02 kernel: GEOM_MIRROR[2]: Access request for mirror/gm0s1: r-1w0e0.
Jan 18 21:07:17 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean.
Jan 18 21:07:17 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.
Jan 18 21:07:17 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty.
Jan 18 21:07:17 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated.

and on and on...

Not sure what to do to get gmirror to recogonize this disk.

-- 
Regards,
Doug


More information about the freebsd-questions mailing list