Stress testing drives
Any drive that’s added to a StorPool cluster (see Adding a drive to a running cluster) needs to have an initial burn-in test to make sure there are no serious defects for the drive.
Note
The same procedure is followed by ansible on any new deployment.
Attention
Make sure that all SSD drives and SAS/HBA controllers are with the latest recommended Firmware or BIOS version. There are some known good versions in our system requirements
Performing a test
The recommended steps are:
Running the tester tool in
screenleaves the test running if there’s a connectivity issue:screen -S disktests mkdir ~/disktests && cd ~/disktests
Add all drives to be used for StorPool in a file
drives.txt, without the/devprefix:echo sda sdb > ./drives.txt disk_tester
Wait for it to finish, and then check the results in the
disks/*-completedfiles.
How disk_tester works
The disk_tester tool works in the following way:
Collects the S.M.A.R.T. output from each drive before the stress tests to be able to later collect it once again and show the differences after the tests.
Trims all flash-based drives.
Fills sequentially all drives in parallel with random data and verifies the data written afterwards.
Writes randomly all drives with random data and verifies the written data afterwards. The amount of data written is different for HDDs and SSDs.
Prints a summary of the results including the minimum, maximum and average for the sequential and random workload tests, as well as the differences in the S.M.A.R.T. output collected before and the one collected after the tests completed.
With more than one drive tested the sum of the sequential read and write bandwidth with all drives could be investigated in results/all-completed to check if there aren’t any bottlenecks in the controller when reading/writing to all drives in drives.txt.
How to read the results
Compare the results from the sequential and random writes and verify that the speeds between similar drives are similar. For example drives with the same model with very different results like a lower performance, spikes in the minimum IOPS or bandwidth might be a sign of pending issues with either the drive or the controller.
Note
In case of huge differences in before/after for Seek Error Rate, Raw Read Error Rate, and Hardware ECC Recovered SMART attributes, you can search on the Internet for Seagate SER RRER HEC. High error rates after first fill might be OK. (Notable on Seagate disks)