Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RAID question

Status
Not open for further replies.

btaber

Programmer
May 26, 2002
307
US
I have software raid on 4 SCSI drives, and I was wondering if it is possible for the mirrors to rebuild automatically in case of power failure instead of me having to go use raidhotadd?
 
What is your RAID config like, 2xRAID-1/1xRAID-5/1xRAID5+Hotspare? RAIDs don't handle power failure, only disk failures. fsck should automatically sortout your dirty filesystems after a power failure.

Why do you need to run raidhotadd after every power failure?


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Only a RAID 1 setup, but whenever the server shutdowns inproperly for whatever reason, if I look at mdstat it shows one "U" instead of 2, if I do raidhotadd it does a rebuild, but I dread the day I forget to do that...
 
btaber,
Why don't you write a script that runs on boot to check and see if mdstat returns one or two "U"s? Then it could re-add it for you if you have one missing!
This is the beauty of Unix and Linux. If you don't have a tool for a job, you have the tools to make one.


Trojan.
 
Yea, I was gonna do that... just wanted to make sure there wasn't an easier way

:)


Thanks


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top