Re: LVM cachepool inconsistency after power event

Krzysztof Chojnowski <[email protected]>
Newsgroups gmane.linux.lvm.general
Message-ID <CAPWGHt3vS8L7y_t_QFjmSoM7CTerEOeQ50fevfAOvTU0X3cnZw@mail.gmail.com>
On Fri, Oct 8, 2021 at 9:57 AM Ming Hung Tsai <[email protected]> wrote:
>
> You could simply detach the cache:
> sudo lvconvert vg0/tpg1-wdata --splitcache

Unfortunately this one didn't work:
$ sudo lvconvert vg0/tpg1-wdata --splitcache
Check of pool vg0/wdata_cachepool_cpool failed (status:1). Manual
repair required!
Failed to activate vg0/tpg1-wdata to flush cache.

> Or alternatively, reinitialize the cache by swapping the metadata with
> a blank one, which bypasses cache_check examination and then steps to
> metadata formatting:
> sudo lvcreate vg0 --size 40m --name cmeta_bak
> sudo lvconvert vg0/wdata_cachepool_cpool --swapmetadata --poolmetadata cmeta_bak

Thanks a lot! This one did work and I was able to activate the volume.
I tried doing something like this earlier but I used wrong syntax (I
missed the --swapmetadata flag).

> BTW, could you help provide the reproducing steps? I guess that you
> performed a power cut soon after creating the cache. Thanks.

Unfortunately, I don't have clear reproducing steps. As you've guessed
correctly - the power event has happened shortly (the same day) after
I created the cached volume. IIRC the volume hasn't even been used at
all so the cache would be empty. If I manage to reproduce it I will
report back here.

Thanks for all your help!
Krzysztof Chojnowski

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.