Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2003 10:40:21 +0200
From:      Ruben de Groot <mail23@bzerk.org>
To:        jesse reynolds <jesse@va.com.au>
Cc:        questions@freebsd.org
Subject:   Re: RAID1 is DEGRADED, but which disk is faulty?
Message-ID:  <20030905084021.GA7934@ei.bzerk.org>
In-Reply-To: <a06001a15bb7dcaa9e022@[129.94.41.148]>
References:  <a06001a02bb7b8fd4603a@[10.0.1.30]> <20030903162614.GB38375@ei.bzerk.org> <a06001a15bb7dcaa9e022@[129.94.41.148]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 05, 2003 at 04:07:50PM +1000, jesse reynolds typed:
> At 18:26 +0200 3/9/2003, Ruben de Groot wrote:
> >On Wed, Sep 03, 2003 at 10:45:05PM +1000, jesse reynolds typed:
> >> Hi
> >>
> >> How do you tell which disk has problems in a hardware RAID1 array? My
> >> machine has been up for nearly six months, and only the last three
> >> weeks of messages logs are retained. There is nothing any in the last
> >> three weeks of system logs about any kind of hardware error, or
> >> warning, or anything mentioning ar0, ad4, or ad6.
> >>
> > > atacontrol is showing a DEGRADED status of the mirror:
> >>
> >> # atacontrol status ar0
> >> ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
> >>
> >>
> >> How does one tell which disk is faulty? Or is it possible that
> >> they've become out of sync and need rebuilding, in which case which
> >> one do I detach and reattach?
> >>
> >> I'm scared to reboot as it's a running server. What can I do????
> >
> >You can try this:
> >
> >umount /dev/ar0
> >fsck -f -n /dev/ad4
> >fsck -f -n /dev/ad6
> >
> >This way (hopefully) you'll be able to establish which one of the disks
> >in the array has developed problems. Then reboot and rebuild the array
> >from the other disk using the controllers firmware.
> 
> 
> Given that all the filesystems, including /, are on this mirror ar0, 
> I would have to boot it up off a live CD or some such in order to do 
> an fsck on both the submirrors.

Ah yes, in this case that's probably the safest way.

> Hmmm. I wouldn't be able to do an fsck on /dev/ad4 or /dev/ad6 though 
> because they are not filesystems, they're the full disks which in 
> turn contain freebsd slices.

Replace ad4, ad6 with the names of your partitions, eg ad4s1a etc.

> Is it safe to shut it down and see what the Promise firmware is 
> saying? Or will i then lose the ability to tell which disk is good 
> and which has problems?

Not very probable. But since your filesystems are still usable, you could 
make a backup, just to be on the safe side.

good luck,

Ruben

> Thankyou
> 
> Jesse
> 
> 
> 
> 
> >
> >Ruben
> >
> >> Cheers
> >>
> >> Jesse
> >>
> >> PS:
> >>
> >> FreeBSD 4.6.2-RELEASE
> >>
> >> atapci1: <Promise ATA100 controller> port
> >> 0xdc00-0xdc3f,0xe000-0xe003,0xe400-0xe407,0xe800-0xe803,0xec00-0xec07
> >> mem 0xdffe0000-0xdfffffff irq 11 at device 16.0 on pci0
> >>
> >> ar0: 76293MB <ATA RAID1 array> [9726/255/63] status: READY subdisks:
> >>  0 READY ad4: 76319MB <ST380021A> [155061/16/63] at ata2-master UDMA100
> >>  1 READY ad6: 76319MB <ST380021A> [155061/16/63] at ata3-master UDMA100
> >>
> >>
> >> # atacontrol list
> >> ATA channel 0:
> >>     Master:      no device present
> >>     Slave:       no device present
> >> ATA channel 1:
> >>     Master: acd0 <LG DVD-ROM DRD-8160B/1.01> ATA/ATAPI rev 0
> >>     Slave:       no device present
> >> ATA channel 2:
> >>     Master:  ad4 <ST380021A/3.19> ATA/ATAPI rev 5
> >>     Slave:       no device present
> >> ATA channel 3:
> >>     Master:  ad6 <ST380021A/3.19> ATA/ATAPI rev 5
> >>     Slave:       no device present
> >>
> >> _______________________________________________
> >> freebsd-questions@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> To unsubscribe, send any mail to 
> >> "freebsd-questions-unsubscribe@freebsd.org"
> 
> 
> -- 
> 
>   ::: Jesse Reynolds +61 (0)414 669 790 ::: AIM - jessedreynolds :::
>   ::: Virtual Artists Pty Ltd, Adelaide ::: http://www.va.com.au :::
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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