[Bug 901859] New: LVM2: lvs command gives error message about lvmetad
http://bugzilla.opensuse.org/show_bug.cgi?id=901859 Bug ID: 901859 Summary: LVM2: lvs command gives error message about lvmetad Classification: openSUSE Product: openSUSE Distribution Version: 13.2 RC 1 Hardware: i686 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: seroton10@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Did a fresh install of 13.2 RC1 on a clean disk with default settings, except that for the disk layout I enabled use of LVM and encryption. The installed system works fine. The strange thing is the following: linux-ho45:~ # lvs WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it! LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert home system -wi-ao--- 50.00g root system -wi-ao--- 40.00g swap system -wi-ao--- 2.00g linux-ho45:~ # systemctl status lvm2-lvmetad lvm2-lvmetad.service - LVM2 metadata daemon Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmetad.service; enabled) Active: active (running) since Sun 2014-10-19 21:48:44 CEST; 1h 11min ago Docs: man:lvmetad(8) Process: 657 ExecStart=/sbin/lvmetad (code=exited, status=0/SUCCESS) Main PID: 660 (lvmetad) CGroup: /system.slice/lvm2-lvmetad.service └─660 /sbin/lvmetad That is, the 'lvs' command writes an incorrect warning about lvmetad being disabled when it's not. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Olav Reinert
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Bernhard Wiedemann
lvmetad is running but disabled. could still be true, though. Yet the message is certainly confusing.
The warning went away after systemctl stop lvm2-lvmetad.service -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Maciej Pilichowski
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Björn Voigt
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #2 from Liuhua Wang
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #3 from Björn Voigt
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #4 from Liuhua Wang
Where can I find user_lvmetad? (No hits in /etc/lvm and "man lvm.conf")
I am really sorry, I made a spelling miss. should be "use_lvmetad". -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Martin Pluskal
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #5 from Liuhua Wang
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #6 from Martin Pluskal
Can we close this bug as invalid?
Why would it be invalid? lvmetad is running on openSUSE in default installation and is not enabled at same time, which leads to harmless but annoying/confusing warnings. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #7 from Martin Pluskal
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #8 from Liuhua Wang
On current openSUSE-Factory: # systemctl status lvm2-lvmetad.service lvm2-lvmetad.service - LVM2 metadata daemon Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmetad.service; enabled) Active: active (running) since Sat 2014-11-29 17:35:59 CET; 1 day 15h ago Docs: man:lvmetad(8) Main PID: 577 (lvmetad) CGroup: /system.slice/lvm2-lvmetad.service └─577 /sbin/lvmetad -f
# grep use_lvmetad /etc/lvm/lvm.conf # If lvmetad has been running while use_lvmetad was 0, it MUST be stopped # before changing use_lvmetad to 1 and started again afterwards. # If use_lvmetad set to 1, please make sure lvm2-lvmetad.socket is started use_lvmetad = 0
Which is obviously not correct.
Sorry, I didn't notice that. I installed opensuse13.2 and reproduced what you described phenomenon. There is some issues related with lvm2 and systemd. #grep lvm /usr/lib/systemd/system-preset/90-default-openSUSE.preset enable lvm2-lvmetad.socket enable lvm2-lvmetad.service That will make lvmetad running no matter use_lvmetad is 0 or 1. I think only enable lvm2-lvmetad.socket is enough, which will make lvm2-lvmetad.service can run if needed and not run if not needed. I will add a patch to systemd-presets-branding-openSUSE. Thank you for you correcting me! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Bruno Friedmann
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #10 from Liuhua Wang
This is also true on 13.1 and certainly would be a nice maintenance update We didn't enable lvm2-lvmetad.socket in opensuse13.1 yet. So 13.1 has no this lvmetad warning messages issue, instead you need to manually execute `systemctl enable lvm2-lvmetad` if you set use_lvmetad=1.
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
Kenneth Ingham
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #12 from Liuhua Wang
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #13 from Kenneth Ingham
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #14 from Liuhua Wang
# grep lvm /usr/lib/systemd/system-preset/90-default-openSUSE.preset enable lvm2-lvmetad.socket Thank you for your confirm test and information provide.
I think it is because only delete `enable lvm2-lvmetad.service` from system-preset/90-default-openSUSE.preset is not enough for disabling lvm2-lvmetad.service. We also need to delete lvm2-lvmetad.service from %service_add_pre/post, %service_del_preun/postun in lvm2.spec. I already submitted request to opensuse. -- You are receiving this mail because: You are on the CC list for the bug.
(In reply to Kenneth Ingham from comment #13)
# grep lvm /usr/lib/systemd/system-preset/90-default-openSUSE.preset enable lvm2-lvmetad.socket Thank you for your confirm test and information provide.
I think it is because only delete `enable lvm2-lvmetad.service` from system-preset/90-default-openSUSE.preset is not enough for disabling lvm2-lvmetad.service. We also need to delete lvm2-lvmetad.service from %service_add_pre/post, %service_del_preun/postun in lvm2.spec. No, those do not enable them, they just take care of their registrations, and
http://bugzilla.opensuse.org/show_bug.cgi?id=901859
--- Comment #15 from Martin Pluskal
I already submitted request to opensuse.
Also I am not sure why "enable lvm2-lvmetad.socket" is in presets, but I guess that correct solution would be to remove it. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com