How do I prevent a RAID 5 write hole during rebuild?

noobtastic88

Reputable
Jun 23, 2015
23
0
4,510
Hello all.

I'm very new to storage/RAID/etc.

I have a machine with (4) 3 TB drives in a RAID 5 configuration attached to an LSI RAID card. A few months ago I had a failed drive in the array so I replaced it. Unfortunately I experienced the "write hole" phenomenon during rebuild. At one point the machine froze up during rebuild and I had to hard reset it, I think this was where everything went wrong. And and I had to wipe the entire array, slow initialize it again, reinstall the OS. Needless to say it was a big pain.

Now, there is another failed drive in the array and I am really afraid of this happening again. Is there anything I can do to prevent this from happening again during the rebuild?

As far as I understand it, the write hole occurs when there is mismatched parity data from a power failure/corrupt data. Do I just hope that the computer doesn't freeze up, is there any sort of check I can perform to make sure that the array will rebuild properly? Thanks

I have an LSI 9260-8i and (4) Seagate 3 TB SATA drives.
 
Solution
To avoid the pain in the future, you need to perform volume check from time to time, like clean dirty/rotten bit in the volume. Lot of users think RAID5/ RAID6 does not need to maintenance, w/o proper raid's maintenance, it can give you a big headache

FireWire2

Distinguished
To avoid the pain in the future, you need to perform volume check from time to time, like clean dirty/rotten bit in the volume. Lot of users think RAID5/ RAID6 does not need to maintenance, w/o proper raid's maintenance, it can give you a big headache
 
Solution