OPNsense Forum

English Forums => General Discussion => Topic started by: myksto on November 26, 2018, 08:47:19 am

Title: Hardware RAID (status, rebuilds, ecc.) checks and logs
Post by: myksto on November 26, 2018, 08:47:19 am
Hi.
I've OPNSense 18.7.8 installed on an old (but still good) Dell server with 2 sata disk configured in RAID1.
Well, this morning while I was making my usual tour check I saw one of the disks blinking orange meaning it was in an error state. I usually give a second chance to faulty disk extracting it and inserting it again after few seconds forcing RAID controller to rebuild the array. In Windows, Dell gives an utility to monitor the rebuid status and the RAID status as well.
Is there a way to monitor the RAID rebuild process through OPNSense? I tried to search through the logs in System -> Log Files but I saw nothing useful. I also searched Google but with no luck.

Thank you very much.

Cheers,

Michele.
Title: Re: Hardware RAID (status, rebuilds, ecc.) checks and logs
Post by: myksto on November 26, 2018, 09:45:39 am
Hi.
I searched through System -> Log files -> General and find these rows:
Nov 26 08:12:54   kernel: mfi0: 22580 (596527060s/0x0002/info) - State change on PD 00(e1/s0) from OFFLINE(10) to REBUILD(14)
Nov 26 08:12:54   kernel: mfi0: 22579 (596527060s/0x0002/info) - Rebuild automatically started on PD 00(e1/s0)
Nov 26 08:12:54   kernel: mfi0: 22578 (596527060s/0x0002/info) - State change on PD 00(e1/s0) from UNCONFIGURED_GOOD(0) to OFFLINE(10)
Nov 26 08:12:54   kernel: mfi0: 22577 (596527060s/0x0002/info) - State change on PD 00(e1/s0) from UNCONFIGURED_BAD(1) to UNCONFIGURED_GOOD(0)
Nov 26 08:12:54   kernel: mfi0: 22576 (596527060s/0x0002/info) - Inserted: PD 00(e1/s0) Info: enclPd=08, scsiType=0, portMap=01, sasAddr=1221000000000000,0000000000000000

They're notifications from the RAID controller (I guess) and may be useful.
Is there any other specific way (even some plugin) to have a more detailed situation and also a way to have, for example, warning e-mails in case of hardware failures? Using Notifications in System -> Settings will generate an e-mail in case of hardware failure?

Thanks again.

Michele.