[Bug 854413] New: systemd-udev-settle.service takes a long time to finish due to lvm2-activation-generator
https://bugzilla.novell.com/show_bug.cgi?id=854413 https://bugzilla.novell.com/show_bug.cgi?id=854413#c0 Summary: systemd-udev-settle.service takes a long time to finish due to lvm2-activation-generator Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: dmzhang@suse.com ReportedBy: rmilasan@suse.com QAContact: qa-bugs@suse.de CC: systemd-maintainers@suse.de Found By: L3 Blocker: --- In our latest openSUSE, we have something called lvm2-activation-generator which generated 2 service file: lvm2-activation-early.service and lvm2-activation.service. This two service file are created on any system, no matter if LVM is used or not, which is incorrect. There are two ways at the moment to disable this: 1. mask the two service files: systemctl mask lvm2-activation-early.service systemctl mask lvm2-activation.service 2. set use_lvmetad to 1 in /etc/lvm/lvm.conf The lvm2-activation-generator should be made a bit more intelligent and maybe to check if we do have some kind of lvm setup on the system and if we don't just quit and don't generate any service files, will pull in udevadm settle all the time. I'll try to have a quick look on how vgscan works and maybe based on it we could fix lvm2-activation-generator too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c1
--- Comment #1 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c2
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c3
--- Comment #3 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c4
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c5
--- Comment #5 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c6
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c7
--- Comment #7 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c8
--- Comment #8 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c9
dong mao zhang
Actually, after doing a test install of 13.1, I've found that we do have that setup has Archlinux has, but we also do have the lvm2-activation-generator.
So I guess we can drop or we should drop lvm2-activation-generator, and we are done.
If lvm user want to use lvmetad, I think they could drop lvm2-activation-generator. But if someone sets lvmetad=0 in lvm.conf, and he does not have the activation-generator, Does it mean he can not activate any LVM at boot time? I have not test this. If so, I think we should add this to the docs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c10
--- Comment #10 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c11
dong mao zhang
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c12
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c13
dong mao zhang
(In reply to comment #11)
How difficult would it be to let lvm2-activation-generator scan the lvm.conf for lvmetad=0 that ist that the lvm2-activation-generator does its job if required and otherwise simply does nothing?
lvm2-activation-generator is surely doing in this way. scan lvmetad = 1, if so, it just quit. If lvmetad = 0, it will generate a new service file which may cause the bootup slow. So setting lvmetad = 1 could resolve this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c14
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c15
dong mao zhang
(In reply to comment #13)
Hmmm ... OK, then the question rises: How the decision / Who has done the decision not to set `lvmetad = 1' for the reported system?
Is this done by YaST2 storage module or has the system administrator do this at his own?
YaST2 storage can not set lvmetad. But sysadmin could choose to set lvmetad=1. I was me who decided to make 'lvmetad = 0' because I want to put this as a new feature of LVM. If sysadmin really needs this, he could open it by himself. But it now appears "using lvmetad" is a better choice for normal users. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c16
--- Comment #16 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c17
Raymond Wooninck
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c18
--- Comment #18 from Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c19
--- Comment #19 from Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c21
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c22
Andrey Borzenkov
But it now appears "using lvmetad" is a better choice for normal users.
Looks like normal users have problems with it ... https://forums.opensuse.org/showthread.php/495141-boot-problem-after-lvm2-up... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c24
--- Comment #24 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c25
--- Comment #25 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c26
--- Comment #26 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=854413
https://bugzilla.novell.com/show_bug.cgi?id=854413#c27
Benjamin Brunner
participants (1)
-
bugzilla_noreply@novell.com