DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default gmirror array broken

Hello,

One of my desktops was equiped with two hard drives I put into a mirror with gmirror at setup time. Today, I saw that my mirror is broken. I only have one consumer in my provier array:

Code:
% gmirror status                                                                                                                                                                             15:54
      Name    Status  Components
mirror/gm0  DEGRADED  ad12
Code:
% gmirror list                                                15:43
Geom name: gm0
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 1
SyncID: 1
ID: 748041724
Providers:
1. Name: mirror/gm0
   Mediasize: 119999999488 (112G)
   Sectorsize: 512
   Mode: r5w5e6
Consumers:
1. Name: ad12
   Mediasize: 120000000000 (112G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 1
   SyncID: 1
   ID: 810888617
My other hard drive is ad10 and it doesn't look that broken...
Code:
% ls /dev/ad1                                                                                                                                                                                15:55
ad10%     ad10s1%   ad10s1a%  ad10s1b%  ad10s1c%  ad10s1d%  ad10s1e%  ad10s1f%  ad12%
How can I determine why my mirror broke and if my hard drive is broken?

Thanks.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #2   (View Single Post)  
Old 15th July 2008
dk_netsvil dk_netsvil is offline
Real Name: Devon
Fdisk Soldier
 
Join Date: May 2008
Location: New York
Posts: 75
Default

have you tried gmirror activate gm0 ad10?

if there is a problem with your ad10 drive it may throw you an error like "Not all disks connected"

I've seen disks disappear from arrays when the disk failed - but typically they'd also fail to show up in /dev/. You might see some errors in /var/log/messages indicating bad inodes or something, but if this was a spontaneous failure there won't be anything there. It is also unusual that when you execute gmirror status you don't see the ad10 drive rebuilding. What's your /etc/fstab look like?

Last edited by dk_netsvil; 15th July 2008 at 08:25 PM.
Reply With Quote
  #3   (View Single Post)  
Old 15th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

The command you gave me returned no output...
Code:
% sudo gmirror activate gm0 ad10
%
and gave no visible result:
Code:
% gmirror list                                                16:19
Geom name: gm0
State: DEGRADED
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 1
SyncID: 1
ID: 748041724
Providers:
1. Name: mirror/gm0
   Mediasize: 119999999488 (112G)
   Sectorsize: 512
   Mode: r5w5e6
Consumers:
1. Name: ad12
   Mediasize: 120000000000 (112G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: DIRTY
   GenID: 1
   SyncID: 1
   ID: 810888617
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #4   (View Single Post)  
Old 15th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

:O Just found something interesting in my dmesg:
Quote:
GEOM_MIRROR: Component ad10 (device gm0) broken, skipping.
GEOM_MIRROR: Cannot add disk ad10 to gm0 (error=22).
Funny, because this disk passed a badblocks test of 48 hours... Weird.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #5   (View Single Post)  
Old 15th July 2008
dk_netsvil dk_netsvil is offline
Real Name: Devon
Fdisk Soldier
 
Join Date: May 2008
Location: New York
Posts: 75
Default

Try gmirror deactivate -v gm0 ad10 and then reactivating it. Maybe that'll flush out any gremlins. If that fails you could try recabling your harddrive physically, assuming you have another IDE or SATA connector available. If that fails try the gmirror remove command and re-adding it.
Reply With Quote
  #6   (View Single Post)  
Old 15th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Thanks for the reply dk_netsvil. I had to do the following steps in order to re-insert my ad10 drive into the array:
Code:
% sudo gmirror forget gm0
% gmirror status
      Name    Status  Components
mirror/gm0  COMPLETE  ad12
% sudo gmirror remove gm0 ad10
gmirror: No such provider: ad10.
% sudo gmirror insert gm0 ad10
% gmirror status
      Name    Status  Components
mirror/gm0  DEGRADED  ad12
                      ad10 (0%)
As we are speaking, the array is rebuilding. Let's see how it goes and if it still working tomorrow...

Thanks!
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to access FakeRAID-0 Array on New System Weaseal FreeBSD General 2 17th January 2009 03:48 PM
Compaq Proliant 1850R array setup issue Yuka General Hardware 0 22nd December 2008 03:31 PM
Can gmirror be used for this? PeterSteele FreeBSD General 12 8th November 2008 12:01 AM
RAID array not recognized on new Intel server clevershark OpenBSD Installation and Upgrading 6 14th May 2008 09:20 PM
ccd or gmirror Nerve FreeBSD General 10 7th May 2008 04:19 AM


All times are GMT. The time now is 09:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick