Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-02-2008, 06:02 PM   #1
LQ Newbie
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Question Why does lsraid sometimes return nothing?

I use lsraid in a monitoring script to check my RAID status. The script runs once every 15 minutes and for the last year all has been fine (lsraid output is normal) but for a few days now lsraid will sometimes (about once per day) return nothing. (I write the output to file - it is blank). If there was a problem with a disk I would expect at least some output.

Running mdadm at the same time that lsraid outputs blank shows both devices active.

Any ideas, anyone?

(By the way, /var/log/messages has no related entries)

Kernel: 2.4

The commands and output:

/sbin/lsraid -a /dev/md0
Normal output:
[dev 9, 0] /dev/md0 85808C84.DDB51C32.8D5A7E61.C17B4328 online
[dev 3, 1] /dev/hda1 85808C84.DDB51C32.8D5A7E61.C17B4328 good
[dev 22, 1] /dev/hdc1 85808C84.DDB51C32.8D5A7E61.C17B4328 good

/sbin/mdadm --detail /dev/md0
Output (always like this so far even when lsraid returns nothing):
Version : 00.90.00
Creation Time : Mon May 21 20:03:28 2007
Raid Level : raid1
Array Size : 76099776 (72.57 GiB 77.97 GB)
Device Size : 76099776 (72.57 GiB 77.97 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Fri May 9 23:52:55 2008
State : dirty, no-errors
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Number Major Minor RaidDevice State
0 3 1 0 active sync /dev/hda1
1 22 1 1 active sync /dev/hdc1
UUID : 85808c84:ddb51c32:8d5a7e61:c17b4328

UPDATE (2008/12/22):
Still seeing this problem but the frequency has decreased (average of once every 2 days).

UPDATE (2008/12/26):
And then it got worse - problem reports 2/3 times per day with some ominously looking like the below. I'll shortly be swapping out both disks. The machine appears to be operating fine but clearly all is not well.

lsraid: Very weird. Array /dev/md0 [dev 9, 134590888] is online and claims to have disk
/dev/hda1 [dev 3, 1]. However, the disk believes it belongs to
md device [dev 9, 0].
lsraid: Very weird. Array /dev/md0 [dev 9, 134590888] is online and claims to have disk
/dev/hdc1 [dev 22, 1]. However, the disk believes it belongs to
md device [dev 9, 0].

Last edited by mitsukoshi; 12-26-2008 at 08:31 AM. Reason: postscript


mdadm, raid

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
Return Value Swapna173 Linux - Newbie 5 08-29-2008 07:10 AM
Two return types Ephracis Programming 12 01-16-2007 06:23 AM
return value neerajchaudhari Linux - Newbie 1 08-29-2005 01:42 AM
return 0 or return(0) in C? servnov Programming 5 01-08-2005 04:39 PM
return linuxanswer Programming 4 10-25-2003 11:31 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:24 PM.

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