jthornber / thin-provisioning-tools

GNU General Public License v3.0
130 stars 75 forks source link

thin_ll_dum - Segmentation fault #190

Open Dilvish5 opened 3 years ago

Dilvish5 commented 3 years ago

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 commented 3 years ago

Could you pack the metadata with thin_metadata_pack and send it to me please?

I'll take a look on Monday.

On Sat, 9 Oct 2021, 18:46 Dilvish5, @.***> wrote:

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 https://github.com/jthornber/thin-provisioning-tools/files/7316075/12754-128146.txt

The kernel log looks like this: core.txt https://github.com/jthornber/thin-provisioning-tools/files/7316078/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!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jthornber/thin-provisioning-tools/issues/190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABOSQ5VUT6EITGICVPA6FLUGB5YFANCNFSM5FVQOJBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mingnus commented 3 years ago

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 commented 3 years ago

Hello

Sent by email.

Thank you