Detecting and replacing failed hard drives