You are not logged in.
Pages: 1
Hello,
could someone explain me why I can't disable lvm2 services via systemctl? I don't have any lvm volumes.
[root@linux mk]# systemctl disable lvm2-lvmetad.service lvm2-lvmetad.socket lvm2-lvmpolld.socket lvm2-monitor.service
reboot
[root@linux mk]# systemctl status lvm2-lvmetad.service lvm2-lvmetad.socket lvm2-lvmpolld.socket lvm2-monitor.service
Failed to dump process list, ignoring: No such file or directory
Failed to dump process list, ignoring: No such file or directory
● lvm2-lvmetad.service - LVM2 metadata daemon
Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmetad.service; static; vendor
Active: active (running) since Wed 2018-01-17 17:03:03 CET; 13s ago
Docs: man:lvmetad(8)
Main PID: 232 (lvmetad)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/lvm2-lvmetad.service
└─232 /usr/bin/lvmetad -f
● lvm2-lvmetad.socket - LVM2 metadata daemon socket
Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmetad.socket; static; vendor p
Active: active (running) since Wed 2018-01-17 17:03:03 CET; 13s ago
Docs: man:lvmetad(8)
Listen: /run/lvm/lvmetad.socket (Stream)
CGroup: /system.slice/lvm2-lvmetad.socket
Warning: Journal has been rotated since unit was started. Log output is incomple
● lvm2-lvmpolld.socket - LVM2 poll daemon socket
Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmpolld.socket; disabled; vendo
Active: active (listening) since Wed 2018-01-17 17:03:03 CET; 13s ago
Offline
Static sockets get invoked by events that request their necessity. If you don't want them started under any circumstances, with whatever kind of consequences that may entail, mask them.
Offline
Is it safe?
Offline
I think it is absurd to take up services that are not needed. Systemd should be "smart" enough to activate it only as needed.
How can I check the services that depend on lvm?
Offline
I masked all services and sockets with lvm2 in name and there is no problem with system boot. Maybe try to scan systemd directory for lvm2 string?
Offline
Pages: 1