LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   RAID monitoring (https://www.linuxquestions.org/questions/suse-opensuse-60/raid-monitoring-536048/)

jlvoo 03-09-2007 12:41 PM

RAID monitoring
 
Hi,

I'm running OpenSuse 10.2 on my RAID 1 System. The RAID card is Highpoint RocketRAID 1820A.

OpenSuse 10.2 can automatically detect the RAID and install without any problem.

Now I want to monitor the RAID, if the RAID broken, I want it to send a mail to me. Is there any tool can help?

Regards,
louis

Micro420 03-10-2007 10:23 AM

cat /proc/mdstat

You can use the S.M.A.R.T. monitoring tool to mail you if something goes wrong, assuming your drive has S.M.A.R.T support. Set smartclt to run a test weekly, or whatever you prefer. S.M.A.R.T can mail you the details and problems using:

smartcl -m username

jlvoo 03-11-2007 04:05 PM

Thanks for reply.

linux-svj1:/proc # cat mdstat
Personalities :
unused devices: <none>


Nothing I can see in mdstat, i think this is because it is not a software raid, so the status will not appear in mdstat.


I'm using Maxtor 6V200E0 200GB Hard disk, i think it is support SMART, but when I do below command, I get this:
linux-svj1:/proc # smartctl --all --device=hpt,1/1/1 /dev/sda
smartctl version 5.37 [x86_64-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
Below is my df:
linux-svj1:/proc # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/hpt45x_chdghbigcd_part3
181G 4.4G 168G 3% /
udev 1.5G 116K 1.5G 1% /dev
/dev/mapper/hpt45x_chdghbigcd_part1
198M 16M 173M 9% /boot



ls /dev/disk/by-id :

lrwxrwxrwx 1 root root 9 Mar 8 11:06 ata-Maxtor_6V200E0_V408FFLG -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 8 11:06 ata-Maxtor_6V200E0_V408FFLG-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 8 11:06 ata-Maxtor_6V200E0_V408FFLG-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 8 11:06 ata-Maxtor_6V200E0_V408FFLG-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Mar 8 11:06 ata-Maxtor_6V200E0_V40MVP1G -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 8 11:06 ata-Maxtor_6V200E0_V40MVP1G-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 8 11:06 ata-Maxtor_6V200E0_V40MVP1G-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Mar 8 11:06 ata-Maxtor_6V200E0_V40MVP1G-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 9 Mar 8 11:06 edd-int13_dev80 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 8 11:06 edd-int13_dev80-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 8 11:06 edd-int13_dev80-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Mar 8 11:06 edd-int13_dev80-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Mar 8 11:06 raid-hpt45x_chdghbigcd -> ../../dm-0
lrwxrwxrwx 1 root root 10 Mar 8 11:06 raid-hpt45x_chdghbigcd-part1 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Mar 8 11:06 raid-hpt45x_chdghbigcd-part2 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Mar 8 11:06 raid-hpt45x_chdghbigcd-part3 -> ../../dm-3
lrwxrwxrwx 1 root root 9 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V408FFLG -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V408FFLG-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V408FFLG-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V408FFLG-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V40MVP1G -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V40MVP1G-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V40MVP1G-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Mar 8 11:06 scsi-SATA_Maxtor_6V200E0_V40MVP1G-part3 -> ../../sdb3



Other than mdstat, anywhere else can find the raid information?


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