From: Ede Wolf <listac@nebelschwaden.de>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] metadata device too small
Date: Sat, 11 Jan 2020 23:07:05 +0100 [thread overview]
Message-ID: <28fac0e3-5853-76e2-5f9f-c4ae7b35c4a8@nebelschwaden.de> (raw)
In-Reply-To: <080c04ff-e9cc-8a9e-da66-2c125a657d86@nebelschwaden.de>
Forgot to add the journal output, though I do not think this raises chances:
kernel: device-mapper: table: 253:8: thin: Couldn't open thin internal
device
kernel: device-mapper: ioctl: error adding target to table
Am 11.01.20 um 23:00 schrieb Ede Wolf:
> So I reverted (swapped) to the _meta0 backup, that had been created by
> --repair, that brought me back to the transaction error, then I did a
> vgcfgbackup and changed the transaction id to what lvm was expecting and
> restored it, and, wohoo, the thinpool can be activated again.
>
> However, when trying to activate an actual volume within that thinpool:
>
> # lvchange -ay VG_Raid6/data
> device-mapper: reload ioctl on (253:8) failed: No data available
>
> And that message holds true for all lv of that thinpool.
>
>
> Am 11.01.20 um 18:57 schrieb Ede Wolf:
>> After having swapped a 2,2T thinpool metadata device for a 16GB one,
>> I've run into a transaction id mismatch. So run lconvert --repair on
>> the thinvolume - in fact, I've had to run the repair twice, as the
>> transaction id error persisted after the first run.
>>
>> Now ever since I cannot activate the thinpool any more:
>>
>> [root]# lvchange -ay VG_Raid6/ThinPoolRaid6
>> WARNING: Not using lvmetad because a repair command was run.
>> Activation of logical volume VG_Raid6/ThinPoolRaid6 is prohibited
>> while logical volume VG_Raid6/ThinPoolRaid6_tmeta is active.
>>
>> So disable them and try again:
>>
>> [root]# lvchange -an VG_Raid6/ThinPoolRaid6_tdata
>> WARNING: Not using lvmetad because a repair command was run.
>>
>> [root]# lvchange -an VG_Raid6/ThinPoolRaid6_tmeta
>> WARNING: Not using lvmetad because a repair command was run.
>>
>> [root]# lvchange -ay VG_Raid6/ThinPoolRaid6
>> WARNING: Not using lvmetad because a repair command was run.
>> device-mapper: resume ioctl on (253:3) failed: Invalid argument
>> Unable to resume VG_Raid6-ThinPoolRaid6-tpool (253:3).
>>
>> And from the journal:
>>
>> kernel: device-mapper: thin: 253:3: metadata device (4145152 blocks)
>> too small: expected 4161600
>> kernel: device-mapper: table: 253:3: thin-pool: preresume failed,
>> error = -22
>>
>>
>> Despite not using ubuntu, I may have been bitten by this bug(?), as my
>> new metadata partion happens to be 16GB:
>>
>> "If pool meta is 16GB , lvconvert --repair will destroy logical volumes."
>>
>> https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1625201
>>
>> Is there any way to make the data accessible again?
>>
>> lvm2 2.02.186
>>
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
next prev parent reply other threads:[~2020-01-11 22:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-11 17:57 [linux-lvm] metadata device too small Ede Wolf
2020-01-11 22:00 ` Ede Wolf
2020-01-11 22:07 ` Ede Wolf [this message]
2020-01-13 15:02 ` Marian Csontos
2020-01-13 16:35 ` Ede Wolf
2020-01-13 19:11 ` Zdenek Kabelac
[not found] ` <74436e16-d2f6-71a0-c264-71ce417de08c@nebelschwaden.de>
2020-01-13 21:29 ` Ede Wolf
2020-01-12 18:11 ` Zdenek Kabelac
2020-01-13 14:32 ` Gionatan Danti
2020-01-13 14:49 ` Zdenek Kabelac
2020-01-13 15:25 ` Gionatan Danti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28fac0e3-5853-76e2-5f9f-c4ae7b35c4a8@nebelschwaden.de \
--to=listac@nebelschwaden.de \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).