Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thin_ll_dum - Segmentation fault #190

Open
Dilvish5 opened this issue Oct 9, 2021 · 3 comments
Open

thin_ll_dum - Segmentation fault #190

Dilvish5 opened this issue Oct 9, 2021 · 3 comments

Comments

@Dilvish5
Copy link

Dilvish5 commented Oct 9, 2021

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!

@jthornber
Copy link
Owner

jthornber commented Oct 9, 2021 via email

@mingnus
Copy link
Collaborator

mingnus commented Oct 13, 2021

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.

@Dilvish5
Copy link
Author

Hello

Sent by email.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants