Displaying 1 result from an estimated 1 matches for "finduberblock".
2009 Sep 26
5
raidz failure, trying to recover
...help me find which uberblocks to modify to reset the tgx i wrote a little perl program which finds and prints out information in order to revert to an earlier tgx value.
Its a little messy since i wrote it super late at night quickly - but maybe it will help somebody else out.
http://liam821.com/findUberBlock.txt (its just a perl script)
Its easy to run. It pulls in 256k of data and sorts it (or skipping X kbyte if you use the -s ###) and then searches for uberblocks. (remember there is 4 labels, 0 256, and then two at the end of the disk. You need to manually figure out the end skip value...) Calc...