You are not logged in.

#1 2018-01-17 16:06:02

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

LVM services not disableable

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

#2 2018-01-17 16:23:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,723

Re: LVM services not disableable

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

#3 2018-01-17 16:24:44

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: LVM services not disableable

Is it safe?

Offline

#4 2018-02-14 10:03:19

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: LVM services not disableable

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

#5 2018-02-14 16:29:45

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: LVM services not disableable

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

Board footer

Powered by FluxBB