Jump to content

auto-shutdown in case of RAID failure?


redxix
 Share

Recommended Posts

Hi all,

I took computer programming in high school so i have a basic understanding of language code, but far from understanding most scripts these days.

I have set up a couple RAID arrays and would like the server to do an auto-shutdown in case of a RAID drive failure. I talked to Adaptec and they mentioned it is possible if you have a script that runs through the event log. Anyone have any experience with this?

Link to comment
Share on other sites

Reading the event log is after the event, unless you want some watchdog program sitting in the background continually reading the event log (and consuming valuable resources).

Isn't RAID supposed to reduce the risk of data loss? If the one you are using is not, consider a robust backup operation or try a different flavor of RAID.

Back to event log: Use WMI to search for the appropriate error codes. When one is found, don't forget to remove it from your list of events to scan before shutting down, otherwise your program will continue to trigger. Hint: Use a sleep command inside your loop to stop your script consuming all the CPU resources.

Are you going to pull the rug out from under your users when an error is detected? What method will you use to alert that the reason for the server shutdown is because of possible data loss?

Edit: Saw Zedna's post. The help file for "_EventLog__Notify" seems quite promising as an alternative to using WMI. Of course you may not need the GUI portion of the sample code in your final version if you want this to run in the background.

Edited by Confuzzled
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...