[linux-lvm] lvm2: state is not persisted to disk if a snapshot becomes invalid immediately before reboot

Gang He ghe at suse.com
Tue Sep 18 11:57:01 UTC 2018

Hello List,

I use a old version LVM2 2.02.98 on kernel 3.0.101, I encountered such a problem.
The detailed steps are as below,
I am doing an update with the following strategy for updates

make LVM Snapshot of root ("/")  file system partition

Run zypper updates ->

Run a script to check certain stuff is OK ->

On failure of that script (if any of the check fail, e.g one rpm update failed), merge LVM -> 

Reboot (because you have to for an LVM merge if it's the root volume)

And then, sometimes as the system comes back up, Reiserfs sometimes goes read-only / corrupt.

which shows in the dmesg as

[   29.794593] BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
[   30.412919] MCE: In-kernel MCE decoding enabled.
[   35.729081] eth0: no IPv6 routers present
[   35.805434] REISERFS error (device dm-1): PAP-5660 reiserfs_do_truncate: wrong result -1 of search for [99955 99957 0xfffffffffffffff DIRECT]
[   35.805445] REISERFS (device dm-1): Remounting filesystem read-only
[397338.410475] show_signal_msg: 21 callbacks suppressed
[397338.410484] esmd[1687]: segfault at 46 ip 00000000f7582f15 sp 00000000ff9b7c70 error 4 in libc-2.11.3.so[f7543000+16c000]

Did you meet this problem? this problem was fixed in the latest version?

Thanks a lot.

More information about the linux-lvm mailing list