xfs
[Top] [All Lists]

Null in file after crash

To: <xfs@xxxxxxxxxxx>
Subject: Null in file after crash
From: Berhardt Eckl <bernhardt.eckl@xxxxxxxxxx>
Date: Sat, 5 May 2012 12:39:42 +0200
Importance: Normal

Hello all,

after a XFS recovery, caused by a system crash, one of my files seems to be 
trashed. The file contains an encrypted container and can not be mounted since 
that crash. Hexedit shows some parts are filled with 0 Bytes.
The crash happened some time ago in 2005, the filesystem was dumped and nearly 
untouched since then. I can not tell which kernel or XFS version was used.
Xfs_bmap shows many holes, so it looks like a problem mentioned here: 
http://xfs.org/index.php/XFS_FAQ#Q:_Why_do_I_see_binary_NULLS_in_some_files_after_recovery_when_I_unplugged_the_power.3F

Is there any chance to revert to the state the file was before the crash? Or 
maybe anything else that could help to restore the file?
Some of the "missing parts" can be found via hexedit the dump, so at least some 
of the missing "holes" are still on the disc.

xfs_bmap output:
        0: [0..7]: hole
        1: [8..23]: 1016..1031
        2: [24..31]: 2504..2511
        3: [32..39]: hole
        4: [40..79]: 200..239
        5: [80..87]: 3008..3015
        6: [88..3479]: hole
        7: [3480..3583]: 96..199
        8: [3584..3599]: 1064..1079
        9: [3600..3711]: 1744..1855
        10: [3712..3767]: 2032..2087
        11: [3768..3815]: 2192..2239
        12: [3816..3831]: 2256..2271
        13: [3832..3895]: 2280..2343
        14: [3896..3935]: 2416..2455
        15: [3936..3975]: 2464..2503
        16: [3976..4071]: 2632..2727
        17: [4072..4463]: hole
        18: [4464..4471]: 2512..2519
        19: [4472..4487]: 1000..1015
        20: [4488..4495]: hole
        21: [4496..4511]: 1160..1175
        22: [4512..4575]: hole
        23: [4576..4583]: 2000..2007
        24: [4584..4631]: 1080..1127
        25: [4632..4639]: hole
        26: [4640..4663]: 1136..1159
        27: [4664..4679]: 2008..2023
        28: [4680..298991]: hole
        29: [298992..299023]: 2728..2759
        30: [299024..299127]: hole
        31: [299128..299143]: 2760..2775
        32: [299144..356103]: hole
        33: [356104..356223]: 240..359
        34: [356224..390023]: hole
        35: [390024..390039]: 3032..3047
        36: [390040..393847]: hole
        37: [393848..393887]: 2856..2895
        38: [393888..396711]: hole
        39: [396712..396727]: 1032..1047
        40: [396728..396743]: 2896..2911
        41: [396744..396959]: hole
        42: [396960..396975]: 2912..2927
        43: [396976..397495]: hole
        44: [397496..397511]: 1392..1407
        45: [397512..397855]: hole
        46: [397856..397879]: 2928..2951
        47: [397880..397895]: hole
        48: [397896..397911]: 1968..1983
        49: [397912..397935]: hole
        50: [397936..397951]: 1048..1063
        51: [397952..397959]: 2272..2279
        52: [397960..397967]: 2456..2463
        53: [397968..398071]: hole
        54: [398072..398103]: 1184..1215
        55: [398104..398135]: 3048..3079
        56: [398136..398151]: 1984..1999
        57: [398152..398167]: 3080..3095
        58: [398168..399639]: hole
        59: [399640..399655]: 3096..3111
        60: [399656..420575]: hole
        61: [420576..420591]: 3112..3127
        62: [420592..486767]: hole
        63: [486768..486783]: 1216..1231
        64: [486784..486991]: hole
        65: [486992..487007]: 1232..1247
        66: [487008..488071]: hole
        67: [488072..488087]: 3128..3143
        68: [488088..494023]: hole
        69: [494024..494039]: 2088..2103
        70: [494040..494175]: hole
        71: [494176..494191]: 3144..3159
        72: [494192..494495]: hole
        73: [494496..494511]: 1248..1263
        74: [494512..494519]: 2952..2959
        75: [494520..495807]: hole
        76: [495808..495823]: 3160..3175
        77: [495824..496103]: hole
        78: [496104..496119]: 3176..3191
        79: [496120..496183]: hole
        80: [496184..496231]: 2960..3007
        81: [496232..496239]: hole
        82: [496240..496255]: 3016..3031
        83: [496256..496303]: hole
        84: [496304..496319]: 3192..3207
        85: [496320..510471]: hole
        86: [510472..510487]: 2104..2119
        87: [510488..510543]: hole
        88: [510544..510559]: 2176..2191
        89: [510560..939639]: hole
        90: [939640..939655]: 1264..1279
        91: [939656..998999]: hole
        92: [999000..999015]: 1280..1295
        93: [999016..1045607]: hole
        94: [1045608..1045623]: 2120..2135
        95: [1045624..1362151]: hole
        96: [1362152..1362167]: 1328..1343
        97: [1362168..1513727]: hole
        98: [1513728..1513743]: 1312..1327
        99: [1513744..1513823]: hole
        100: [1513824..1513839]: 2776..2791
        101: [1513840..1546375]: hole
        102: [1546376..1546391]: 2792..2807
        103: [1546392..1557199]: hole
        104: [1557200..1557215]: 2808..2823
        105: [1557216..1563711]: hole
        106: [1563712..1563727]: 2824..2839
        107: [1563728..1564167]: hole
        108: [1564168..1564183]: 2840..2855
        109: [1564184..1682495]: hole
        110: [1682496..1682503]: 2344..2351
        111: [1682504..1780503]: hole
        112: [1780504..1780607]: 768..871
        113: [1780608..1837999]: hole
        114: [1838000..1838015]: 2136..2151
        115: [1838016..1865223]: hole
        116: [1865224..1865239]: 2160..2175
        117: [1865240..1875359]: hole
        118: [1875360..1875367]: 2240..2247
        119: [1875368..1878679]: hole
        120: [1878680..1878687]: 2152..2159
        121: [1878688..1886607]: hole
        122: [1886608..1886719]: 360..471
        123: [1886720..1898679]: hole
        124: [1898680..1898751]: 472..543
        125: [1898752..1905519]: hole
        126: [1905520..1905559]: 2552..2591
        127: [1905560..1906359]: hole
        128: [1906360..1906375]: 2352..2367
        129: [1906376..1912095]: hole
        130: [1912096..1912191]: 544..639
        131: [1912192..1916703]: hole
        132: [1916704..1916711]: 2368..2375
        133: [1916712..1929999]: hole
        134: [1930000..1930039]: 1544..1583
        135: [1930040..1930151]: hole
        136: [1930152..1930175]: 2392..2415
        137: [1930176..1953935]: hole
        138: [1953936..1953959]: 2608..2631
        139: [1953960..1959895]: hole
        140: [1959896..1959903]: 2592..2599
        141: [1959904..1960455]: hole
        142: [1960456..1960479]: 2528..2551
        143: [1960480..1961495]: hole
        144: [1961496..1961503]: 2024..2031
        145: [1961504..1961511]: 2520..2527
        146: [1961512..1965975]: hole
        147: [1965976..1966039]: 1856..1919
        148: [1966040..2023615]: hole
        149: [2023616..2023631]: 2376..2391
        150: [2023632..2171271]: hole
        151: [2171272..2171279]: 1352..1359
        152: [2171280..2317303]: hole
        153: [2317304..2317359]: 704..759
        154: [2317360..2341399]: hole
        155: [2341400..2341415]: 1296..1311
        156: [2341416..2660815]: hole
        157: [2660816..2660823]: 2248..2255
        158: [2660824..2664023]: hole
        159: [2664024..2664071]: 1584..1631
        160: [2664072..2670455]: hole
        161: [2670456..2670487]: 1360..1391
        162: [2670488..2678431]: hole
        163: [2678432..2678503]: 872..943
        164: [2678504..2685759]: hole
        165: [2685760..2685815]: 944..999
        166: [2685816..2700175]: hole
        167: [2700176..2700183]: 1128..1135
        168: [2700184..2707711]: hole
        169: [2707712..2707719]: 1176..1183
        170: [2707720..2721447]: hole
        171: [2721448..2721495]: 1920..1967
        172: [2721496..2767527]: hole
        173: [2767528..2767639]: 1632..1743
        174: [2767640..2811607]: hole
        175: [2811608..2811615]: 1344..1351
        176: [2811616..2811623]: 2600..2607
        177: [2811624..2811671]: hole
        178: [2811672..2811687]: 1408..1423
        179: [2811688..2852159]: hole
        180: [2852160..2852223]: 640..703
        181: [2852224..3041159]: hole
        182: [3041160..3041167]: 1424..1431

                                          
<Prev in Thread] Current Thread [Next in Thread>
  • Null in file after crash, Berhardt Eckl <=