|
|
Surviving I/O Errors Followup
It’s a treat Alastair came out of his blogging shell to comment on my little piece. You should write more, Alastair.
Absolutely, this is cowboy computing. “Kids, don’t try this at home.” Substituting zeros on an I/O error is like using a screwdriver to avoid super-criticality, do it enough and you’ll get burned. Alastair mentions the correct way to get out of this mess is a restoration from backups. Agreed. The only reason why I didn’t take that course of action is that the error occurred to data I created that day. There was no backup available. That work also represented hundreds of dollars of onsite client time, so I was loathe to attempt to recreate it. Dave Nanian of SuperDuper fame also chimed in:
Heh, it’s good Dave is equally horrified at my technique. I don’t know where that 4K of zeros wound up file-system wise. And Alastair is right it’s a great way of silently corrupting your data. Fortunately, my data was source code, which is ASCII text. Compilers usually don’t take kindly to 4K-zero bullet holes in source text (probably perl notwithstanding), so I knew the files I had authored that day were still safe. After I recovered them, I threw away the disk image — it’s not worth attempting to figure out where those zeros landed and what got smashed. Dave makes three other great points:
Both Alastair and Dave mention sparing. That’s where a drive takes note of a bad section of a disk and cordons it off so it can’t play with the other magnetic children. For better or worse, sparing usually happens transparently and data isn’t lost, but as evidenced in my scenario, this isn’t always the case. I was able to force sparing on the affected blocks by writing zeros to the entire drive. Before that, executing Wednesday, June 21, 2006
|
Contact Me Topics RSS Feed Linkblog
Bill Bumgarner Brent Simmons Daniel Jalkut Dave Dribin Eric Albert Eric Rescorla Eric Sink Greg Miller Gus Mueller Jeremy Zawodny John Gruber Mark Dalrymple Michael Tsai Peter Ammon Raymond Chen Ryan Wilcox Scott Stevenson Steven Frank The Daily WTF we hates software Wil Shipley |
Copyright © 1997-2008 Jonathan 'Wolf' Rentzsch. All rights reserved.
Questions? Comments? Contact Me.