LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-08-2009, 07:23 PM   #1
homeratlightlink
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Real time verification of raid1


Running FC3 to 9, using mdadm, I just don't trust raid1.

Is there a way to verify that the two drives are perfectly in sync
in real time, without stopping the raid, busting them apart, and
comparing them?

These are production machines that are acting funny, and I just wonder
if the cause is out of syncness between the two raid 1 drives. The system
CLAIMS they are in sync, I can always fail and reinsert a drive, but
I would like a way to test the sync without doing all that. Seems
like there should be a way to just mdadm --verify /dev/md1 or something

Thanks in advance,

Homer 607 227 5465
 
Old 10-08-2009, 07:37 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Good grief, I hope that's not a real phone number.

I'm not using software RAID on any of my hosts, but I think the true test would be failing / removing a drive.

A better approach may be starting a new thread, explaining the exact symptoms of your servers that are "acting funny". It would be a good idea to establish cause and effect rather than to play around with your RAID on a whim.

Last edited by anomie; 10-08-2009 at 07:39 PM.
 
Old 10-08-2009, 10:05 PM   #3
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Ubuntu
Posts: 282

Rep: Reputation: 45
you can examine the status of the raid array using

cat /proc/mdstatus I think its called. It will show the status of the RAID array, useful for monitoring the re-sync process. If the disks are out of sync then there is further problems going on.
 
Old 10-09-2009, 09:20 AM   #4
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
watch cat /proc/mdstatus
 
Old 10-30-2009, 11:51 PM   #5
homeratlightlink
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Real time verification of raid1

Thanks to those that answered.

Issue is I *BELIEVE* I have at one time or another had
two drives that were in sync, made to be out of sync by
individually mounting them, changing one, and then rebooting
as an array. The array did not come up 'dirty', and as an array
it showed the data on the one drive, but not the other. Then when
I took them apart again, the two drives were definitely different.

Thus if there is a hard ware problem that is not writing
data to both drives properly, or there is a crash that interrupts
the process, I have no clue, it is conceivable that the two
drives would be considered clean when not.

Since different data would exist in each drive, and since
I believe reading is random choice between drives, it would be
possible for the OS to read the wrong data once in a while and
collapse.

I just know that code that depends on sync between two files,
to work but never checks the sync with read after write, or some
other mechanism, is just bound to fail someday.

It would be nice to have a verify option, that didn't involve
destroying the backup copy for the duration of the recopy, but simply
read both drives in the back ground and reported any problems.
Seems obvious but then I am generally clueless about about how all
this works.

Homer
 
  


Reply

Tags
raid1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
real time kernel not real time, still xruns in Jackd browny_amiga Linux - General 0 09-20-2009 03:47 PM
Need some detail information on Hard Real-Time Systems and Soft real-Time Systems. LinuxInfo General 3 09-22-2008 04:25 AM
Real Time Clock & Real Time Timer jiramak Linux - Newbie 1 09-05-2007 07:43 PM
LXer: Real-time garbage collection with Real-time Java LXer Syndicated Linux News 0 05-05-2007 01:16 PM
LXer: Real-time Linux gains real-time JVM LXer Syndicated Linux News 0 10-12-2006 11:54 AM


All times are GMT -5. The time now is 11:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration