Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2009 17:37:02 +0100
From:      Vincent Zee <zenzee@xs4all.nl>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   replacing faulty disk in a gmirror
Message-ID:  <20091127163702.GA9156@xs4all.nl>

next in thread | raw e-mail | index | archive | help
Hi,

I'm trying to replace a faulty disk in a gmirror mirror but
it fails.

This machine contains two mirrors: mirror0 and mirror1 each
containing two disks of 500 GB. mirror1 is giving me trouble.

The disk on channel 3 (ad6), which was identical to the disk on 
channel 2 (ad4), was faulty and I replaced it with a larger disk
this morning. The new disk is a Western Digital 640 GB.

The steps I took sofar:

#gmirror forget mirror1

#gmirror insert mirror1 ad6

A "gmirror status" shows the new disk being added to mirror1.
It then starts to write to the new disk but stops after a few
seconds and when I do "gmirror status" again the new disk is
gone again.

Any ideas?

Here is some info about the system:

piggie# uname -a
FreeBSD piggie.int.daemon.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0:
 Sun Feb 24 19:59:52 UTC 2008

piggie# atacontrol list
ATA channel 0:
    Master:  ad0 <ST3500630A/3.AAE> ATA/ATAPI revision 7
    Slave:       no device present
ATA channel 1:
    Master:  ad2 <ST3500630A/3.AAE> ATA/ATAPI revision 7
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <ST3500320AS/SD15> Serial ATA v1.0
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <WDC WD6400AACS-00D6B1/01.01A01> Serial ATA II
    Slave:       no device present

piggie# gmirror status
          Name    Status  Components
mirror/mirror0  COMPLETE  ad0
                          ad2
mirror/mirror1  DEGRADED  ad4

piggie# gmirror list
Geom name: mirror0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 2181652091
Providers:
1. Name: mirror/mirror0
   Mediasize: 500107861504 (466G)
   Sectorsize: 512
   Mode: r5w5e6
Consumers:
1. Name: ad0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 1890757270
2. Name: ad2
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 2188477788

Geom name: mirror1
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 8
SyncID: 4
ID: 3490083122
Providers:
1. Name: mirror/mirror1
   Mediasize: 500107861504 (466G)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: ad4
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 8
   SyncID: 4
   ID: 2123128362


TIA,

/\
Vincent



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091127163702.GA9156>