Data recovery -- thin provisioned LVM metadata (?) problem after hardware failure

haaber <[email protected]> Fri, 12 May 2023 20:05:06 +0200
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
Dear Ming-Hung,


>
> There's one corrupted leaf node in device #20081, which might possibly
> be caused by the hardware failure and that stops thin_dump or
> lvconvert from working. Running thin_check would show you the details
> (I'm using the v1.0.5):
>
> TRANSACTION_ID=45452
> METADATA_FREE_BLOCKS=11827
> 1 nodes in data mapping tree contain errors
> 0 io errors, 1 checksum errors
> Thin device 20081 has 1 error nodes and is missing 22664 mappings,
> while expected 296263
> Check of mappings failed
>
> The issue is repairable by rolling back to the previous transaction.
> I'm going to patch the program to make it easier to use. It should be
> ready next week, and you can try to learn how to build the Rust
> version for now.
>
> 1. Install the Rust toolchain via the rustup script (https://rustup.rs/)
> 2. Clone the thin-provisioning-tools.git repo, then build it (cargo
> build --release)
> 3. Try the built pdata_tools binary (placed under ./target/release/)
>
thank you for this inspection! ? I now have hope again to recover my data :)

Silly question: I? cloned
https://github.com/jthornber/thin-provisioning-tools and installed that
way successfully 1.0.4 but that is not the 1.0.5 branch you talked
about. Could you point the right 1.0.5 git, please?

thank you, Bernhard