Been struggling with a regexp using perl since I couldn't get sed to work as I wanted (mainly "+" sucks with sed).
Posts Tagged ‘Linux’
Perl 5.8.8 sucks, or the lack of Perl 5.10 on my box sucks! Really
Friday, January 16th, 2009mdadm sucks
Monday, December 15th, 2008A couple of months ago my box at home died. I came back home for vacation two days ago and started to check why it doesn't start.. One of the disks had been marked as failed (or acctually two, but only one is dead), I was wondering of removing all the data by re-creating the array and scrapping ~3Tb data.. But when I woke up from a nap this evening I thought that maybe the -f flag works with mdadm as well:
# mdadm -A -f /dev/md0 /dev/sd[acdefgh]1
Did the trick, it resetted the failed status on sdh1