Consumer hard drives typically make many attempts to read a bad sector, causing hangs in RAID arrays. A quick way to solve the issue without having to buy more expensive “RAID-compatible” drives is to enable error recovery control, setting a time limit on the retries. Some drives support this; others do not. What follows is a simple one-liner that, when added to the system crontab, sets error recovery control to 7 seconds in all the drives in the array that support ERC.
Updating Drupal core always makes me a bit nervous, as it involves ripping out the old version and inserting a new. Not having access to Drush, I decided to make a shell script that would automate the steps, eliminating the usual risk of human error. The following is the script. It’s heavily commented, so I’ll keep extra remarks to a minimum.