jthornber/thin-provisioning-tools

thin_ll_dum - Segmentation fault

Dilvish5 opened this issue · 3 comments

Hello

I'm trying to recover the lvm-thing metadata after a hardware failure using thin_ll_dump, but I'm getting a segmentation fault while running the following command:

thin_ll_dump /dev/mapper/pve-data_meta0 --device-details-root=128146 --data-mapping-root=12754 -o /backup/logs/12754-128146.xml

With other data-mapping-root, everything works ok and all blocks get marked as orphans, but with 12754 (which I assume is the correct one) the application dies after a second with Segmentation fault.
It writes in the output file some data but dies afterwards: 12754-128146.txt

The kernel log looks like this:
core.txt

I'm assuming it's triggering some bug somewhere. The thin_check gives the following error: bad checksum in metadata index block (block 109413)

I'd appreciate any assistance to bypass this issue.

Thank you very much!

Hi,

Here's a quick fix for this issue.
https://github.com/mingnus/thin-provisioning-tools/commits/2021-10-12-thin-ll-dump-fixes

Could you help provide the LVM archives/backups please? They should be stored in /etc/lvm/archive/ and /etc/lvm/backup, so that I could do some analysis according to the volume sizes & dev-ids configurations.

Hello

Sent by email.

Thank you