/dev/sda2 => luks encrypted with LVM
VG named "ubuntu" and LVM tag "ubuntu_vg"
LV /boot named boot and LVM tag "ubuntu_vg,boot"
LV /root named root with LVM tag "ubuntu_vg,root"
LV /home named home with LVM tag "ubuntu_vg,home"
LV /swap named swap with LVM tag "ubuntu_vg,swap"
/dev/sda3 => LVM VG named "tools" VG and two LVs
The tools VG and related LVs are always activated at startup despite the settings in /etc/lvm/lvm.conf.
According to lvm2-activation-generator
The lvm2-activation-generator is called by systemd(1) on boot to
generate systemd units at runtime to activate LVM Logical Volumes
(LVs) when global/event_activation=0 is set in lvm.conf(5).
These units use vgchange -aay to activate LVs.
(vgchange -aay that honours the activation/auto_activation_volume_list setting)
>> tools VG/LV is activated at startup => KO
even with journalctl log line: lvm[PID]: pvscan[PID] VG tools skip autoactivation
lvm.conf settings are working because
- Can be desactivated with vgchange -an tools
- Can't be reactivated with vgchange -ay tools due to tools VG/Tags not listed in volume_list
>> tools VG/LV is activated at startup => KO
even with journalctl log line : lvm[PID]: pvscan[PID] VG tools skip autoactivation
lvm.conf settings are working because
- Can be desactivated with vgchange -an tools
- Can be reactivated due to activation/volume_list is commented
>> tools VG/LV is activated at startup => KO
even if vgs do not show the tools VG due to the global/global_filter settings.
lvm.conf settings are working because
Can't be desactivated with vgchange -an tools due to the global/global_filter or nor list this tools VG/LV.
>> tools VG/LV is activated at startup => KO
even with an empty auto_activation_volume_list [ ] which disable any auto activation.
A process or script bypass and does not honor the activation/auto_activation_volume_list, global/global_filter and global/event_activation settings in lvm.conf at startup and activate all available VG/LV without any trace in boot log.
Any new VG/LV is always activated during startup even if these VG/LV are not related to the running system and configured to be not auto activated.
On a freshly installed Ubuntu 20.04 LTS (raw minimal installation) with LVM on LUKS using https:/ /help.ubuntu. com/community/ Full_Disk_ Encryption_ Howto_2019 as a basis
/dev/sda2 => luks encrypted with LVM
VG named "ubuntu" and LVM tag "ubuntu_vg"
LV /boot named boot and LVM tag "ubuntu_vg,boot"
LV /root named root with LVM tag "ubuntu_vg,root"
LV /home named home with LVM tag "ubuntu_vg,home"
LV /swap named swap with LVM tag "ubuntu_vg,swap"
/dev/sda3 => LVM VG named "tools" VG and two LVs
The tools VG and related LVs are always activated at startup despite the settings in /etc/lvm/lvm.conf.
According to lvm2-activation -generator
The lvm2-activation -generator is called by systemd(1) on boot to event_activatio n=0 is set in lvm.conf(5). auto_activation _volume_ list setting)
generate systemd units at runtime to activate LVM Logical Volumes
(LVs) when global/
These units use vgchange -aay to activate LVs.
(vgchange -aay that honours the activation/
With the following settings in lvm.conf:
/etc/lvm/lvm.conf: event_activatio n auto_activation _volume_ list _volume_ list = [ "ubuntu", "@ubuntu_vg" ] volume_ list
global/
event_activation = 0
activation/
auto_activation
activation/
volume_list = [ "ubuntu", "@ubuntu_vg" ]
>> tools VG/LV is activated at startup => KO
even with journalctl log line: lvm[PID]: pvscan[PID] VG tools skip autoactivation
lvm.conf settings are working because
- Can be desactivated with vgchange -an tools
- Can't be reactivated with vgchange -ay tools due to tools VG/Tags not listed in volume_list
/etc/lvm/lvm.conf: event_activatio n auto_activation _volume_ list _volume_ list = [ "ubuntu", "@ubuntu_vg" ] auto_activation _volume_ list n_volume_ list = [ "ubuntu", "@ubuntu_vg" ]
global/
event_activation = 0
activation/
auto_activation
activation/
#auto_activatio
>> tools VG/LV is activated at startup => KO volume_ list is commented
even with journalctl log line : lvm[PID]: pvscan[PID] VG tools skip autoactivation
lvm.conf settings are working because
- Can be desactivated with vgchange -an tools
- Can be reactivated due to activation/
/etc/lvm/lvm.conf: event_activatio n global_ filter auto_activation _volume_ list _volume_ list = [ "ubuntu", "@ubuntu_vg" ]
global/
event_activation = 0
global/
global_filter = [ "r|.*sda3|" ]
activation/
auto_activation
>> tools VG/LV is activated at startup => KO global_ filter settings. global_ filter or nor list this tools VG/LV.
even if vgs do not show the tools VG due to the global/
lvm.conf settings are working because
Can't be desactivated with vgchange -an tools due to the global/
/etc/lvm/lvm.conf:
global/ event_activatio n auto_activation _volume_ list _volume_ list = [ ]
event_activation = 0
activation/
auto_activation
>> tools VG/LV is activated at startup => KO _volume_ list [ ] which disable any auto activation.
even with an empty auto_activation
A process or script bypass and does not honor the activation/ auto_activation _volume_ list, global/ global_ filter and global/ event_activatio n settings in lvm.conf at startup and activate all available VG/LV without any trace in boot log.
Any new VG/LV is always activated during startup even if these VG/LV are not related to the running system and configured to be not auto activated.
Regards