This file is indexed.

/lib/systemd/system/lvm2-lvmlocking.service is in lvm2-lockd 2.02.176-4.1ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=Availability of lockspaces in lvmlockd
Documentation=man:lvmlockd(8)
After=lvm2-lvmlockd.service sanlock.service dlm.service

[Service]
Type=oneshot
RemainAfterExit=yes

# start lockspaces and wait for them to finish starting
ExecStart=/sbin/lvm vgchange --lock-start --lock-opt autowait

# auto activate LVs in the newly started lockd VGs
ExecStart=/sbin/lvm vgchange -aay -S 'locktype=sanlock || locktype=dlm'

# deactivate LVs in lockd VGs
ExecStop=/sbin/lvm vgchange -an -S 'locktype=sanlock || locktype=dlm'

# stop lockspaces and wait for them to finish stopping
ExecStop=/sbin/lvmlockctl --stop-lockspaces --wait 1

[Install]
WantedBy=multi-user.target