Description of problem: After updating LVM: - LVs using cache are not available. - pvdisplay, vgdisplay and lvdisplay no longer give any output. - The following errors are displayed during boot. The boot process goes into emergency mode. Jan 29 10:49:59 hp9470m systemd[1]: Unit lvm2-pvscan@253:3.service entered failed state. Jan 29 10:49:59 hp9470m systemd[1]: lvm2-pvscan@253:3.service failed. Jan 29 10:50:00 hp9470m lvm[2718]: Internal error: LV vgSystem/lvVBoxCache has uknown feature flags 0. Jan 29 10:50:00 hp9470m lvm[2718]: Could not format metadata for VG vgSystem. Jan 29 10:50:00 hp9470m lvm[2718]: Update of lvmetad failed. This is a serious problem. Jan 29 10:50:00 hp9470m lvm[2718]: It is strongly recommended that you restart lvmetad immediately. Jan 29 10:50:00 hp9470m systemd[1]: lvm2-pvscan@253:0.service: main process exited, code=exited, status=5/NOTINSSTALLED Jan 29 10:50:00 hp9470m systemd[1]: Failed to start LVM2 PV scan on device 253:0. Downgrading LVM2 and device-mapper restores functionality. Version-Release number of selected component (if applicable): device-mapper.x86_64 - 1.02.93-1.fc21 device-mapper-event.x86_64 - 1.02.93-1.fc21 device-mapper-event-libs.x86_64 - 1.02.93-1.fc21 device-mapper-libs.x86_64 - 1.02.93-1.fc21 lvm2.x86_64 - 2.02.115-1.fc21 lvm2-libs.x86_64 - 2.02.115-1.fc21 How reproducible: Always Steps to Reproduce: 1. yum update 2. reboot Actual results: The above error appears. Some LVs are not available. Emergency mode is started. Expected results: The system should boot. Additional info: Severity set to urgent, as it causes boot failure.
Cache metadata missed defaults for cache_mode - fixed by using writethrough as compiled built-in define: https://www.redhat.com/archives/lvm-devel/2015-January/msg00073.html
Since this could be only the case for older metadata which were always using writethrough mode - avoid any compile/run-time reconfigurability and stricly use this mode. https://www.redhat.com/archives/lvm-devel/2015-January/msg00074.html
lvm2-2.02.115-2.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/lvm2-2.02.115-2.fc21
*** Bug 1187147 has been marked as a duplicate of this bug. ***
You are right, I should have mentioned I was using writeback mode. Thanks for the quick fix. I'll confirm solved once the -2 hits my mirror.
lvm2-2.02.115-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.