raid5 test array creator (was Re: the dreaded double disk failure)
From: Mike Hardy <hidden>
Date: 2005-01-15 22:52:39
Attachments
- raid5_test_array.sh [application/x-sh] 3482 bytes · preview
From: Mike Hardy <hidden>
Date: 2005-01-15 22:52:39
Mike Hardy wrote:
What I'm thinking of doing is writing a small (or, as small as possible, anyway) perl program that can take a few command line arguments (like the array construction information) and know how to read the data blocks on the array, and calculate parity, as a baseline. If perl offends you, sorry, I'm quicker at it than C by a long-shot, and I don't really care about speed here, just speed of development.
Here's the shell script I'm using as a test harness. It creates a loopback raid5 system, fills it up with random data, and then takes the md5sum. It has a few modes of operation (to initialize or not as it starts or stops the array). -Mike