[linux-lvm] cache_check --clear-needs-check-flag does not clear needs_check flag?

Dennis Schridde devurandom at gmx.net
Tue Dec 8 22:19:31 UTC 2020

On Sonntag, 6. Dezember 2020 22:01:37 CET Dennis Schridde wrote:
> [...]
> $ sudo lvchange -ay vg_ernie/lv_cache
> Do you want to activate component LV in read-only mode? [y/n]: y
>    Allowing activation of component LV.
> [...]
> Is it possible that `cache_check --clear-needs-check-flag does not clear
> needs_check flag` does not actually clear the needs_check flag in my case?

I suspect that this has something to do with the read only status of the LV...

What if the superblock gets changed, but is then not written back to the LV,
because it is read only, and failure to write it back was not treated as an
error?  I dd-ed lv_cache into a file, ran cache_check --clear-needs-check-flag
on it, and then tried to dd it back to the LV.  Sadly that results in a
permission denied error.  I was not able to figure out how to force writing it

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20201208/01a85581/attachment.sig>

More information about the linux-lvm mailing list