bash scripts to fix a software raid set