[linux-lvm] LVM cachepool inconsistency after power event
frirajder at gmail.com
Mon Oct 11 12:16:53 UTC 2021
On Fri, Oct 8, 2021 at 9:57 AM Ming Hung Tsai <mtsai at redhat.com> 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
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!
More information about the linux-lvm