LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-08-2008, 09:13 AM   #1
Midahed
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Question Should checkarray script run on a RAID 1 system?


I'm running a RAID1 array using mdadm on my Ubuntu Hardy 8.04 system. Yesterday morning it had crashed shortly after 01.00am. Looking at the logs showed that, because it was the first Sunday of the month, the checkarray script was started at 1.06am. The system had crashed shortly after that at 01.18. There are no entries in syslog between 01.18.46 and 09.35.38 when I re-booted it. There are no obvious errors in syslog, but the box crashed shortly after arraycheck started.

I suspect the reason it crashed is something to do with the fact that I was running Zoneminder at the time, and the CPU was fairly busy doing motion detection on an MJPEG video stream from a security camera. It's possible that attempting to do an array check at the same time was expecting too much of the system. But that's not really the issue...

My understanding, from what I have read on the subject, is that checkarray runs a parity check on redundant arrays.

I found this link in which the author of the checkarray script says that checkarray is "a script that checks the parity information of redundant arrays (RAID 3,4,5,6)".

Note the absence of RAID 1 in the list of array types that are supposed to be checked.

http://linux.derkeiler.com/Mailing-L.../msg02961.html

I had a look at the script, but didn't really understand it and certainly couldn't figure out the detail of what it was doing!

My question is - should checkarray run on a RAID 1 array or not? The author's description seems to say that it shouldn't, but it runs on my Ubuntu 8.04 RAID 1 system.

Can anyone clear this up for me?

Thanks,

Mike
 
Old 09-11-2008, 09:30 AM   #2
Midahed
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Does nobody know the answer to this?
 
Old 09-11-2008, 09:39 AM   #3
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 31
If it is used to check parity, then there is nothing to check on RAID1. RAID1 simply writes the same data to both disks so that if one of them fails, the other will still be available to read and write to. That checkarray script SHOULD have a built-in check to stop it from running on non-supported arrays, but apparently it does not or it isn't working. I would disable by taking it out of cron.
 
  


Reply

Tags
mdadm, 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
How to run a script at system startup? correro Linux - Newbie 4 01-20-2006 10:12 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 10:34 AM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 10:34 AM
setting script to run when system enter init 3 fowlerlfc Linux - Newbie 2 10-29-2002 04:02 PM
I wants to run the script(xx) while restart the system. help pls... fmohideen76 Linux - General 2 07-11-2002 02:15 PM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
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