LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Why does lsraid sometimes return nothing? (https://www.linuxquestions.org/questions/linux-software-2/why-does-lsraid-sometimes-return-nothing-687853/)

mitsukoshi 12-02-2008 06:02 PM

Why does lsraid sometimes return nothing?
 
Hi,
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):
/dev/md0:
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].


All times are GMT -5. The time now is 06:02 AM.