# phpman > man > LVM2-ACTIVATION-GENERATOR(8)

[LVM2-ACTIVATION-GENERATOR(8)](https://www.chedong.com/phpMan.php/man/LVM2-ACTIVATION-GENERATOR/8/markdown)                                            [LVM2-ACTIVATION-GENERATOR(8)](https://www.chedong.com/phpMan.php/man/LVM2-ACTIVATION-GENERATOR/8/markdown)



## NAME
       lvm2-activation-generator - generator for systemd units to activate LVM volumes on boot

## SYNOPSIS
### /lib/systemd/system-generators/lvm2-activation-generator


## DESCRIPTION
       The  lvm2-activation-generator  is  called by [**systemd**(1)](https://www.chedong.com/phpMan.php/man/systemd/1/markdown) 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)](https://www.chedong.com/phpMan.php/man/lvm.conf/5/markdown).  These units use **vgchange** **-aay** to activate LVs.

       If event_activation=1, the lvm2-activation-generator exits immediately without generating any
       systemd units, and LVM fully relies on event-based activation to activate LVs.  In this case,
       event-generated **pvscan** **--cache** **-aay** commands activate LVs.

       These systemd units are generated by lvm2-activation-generator:

       _lvm2-activation-early.service_  is  run before systemd's special **cryptsetup.target** to activate
       LVs that are not layered on top of encrypted devices.

       _lvm2-activation.service_ is run after systemd's special **cryptsetup.target** to activate LVs that
       are layered on top of encrypted devices.

       _lvm2-activation-net.service_  is  run after systemd's special **remote-fs-pre.target** to activate
       LVs that are layered on attached remote devices.

       Note that all the underlying LVM devices (Physical Volumes) need to be present when the  ser‐
       vice  is  run.  If the there are any devices that appear to the system later, LVs using these
       devices need to be activated directly by [**lvchange**(8)](https://www.chedong.com/phpMan.php/man/lvchange/8/markdown) or [**vgchange**(8)](https://www.chedong.com/phpMan.php/man/vgchange/8/markdown).

       The lvm2-activation-generator implements the **Generators** **Specification** as referenced  in  **sys**‐‐
       [**temd**(1)](https://www.chedong.com/phpMan.php/man/temd/1/markdown).


## SEE ALSO
       [**lvm.conf**(5)](https://www.chedong.com/phpMan.php/man/lvm.conf/5/markdown)  [**vgchange**(8)](https://www.chedong.com/phpMan.php/man/vgchange/8/markdown)  [**lvchange**(8)](https://www.chedong.com/phpMan.php/man/lvchange/8/markdown)  [**pvscan**(8)](https://www.chedong.com/phpMan.php/man/pvscan/8/markdown)  [**udev**(7)](https://www.chedong.com/phpMan.php/man/udev/7/markdown)  [**systemd**(1)](https://www.chedong.com/phpMan.php/man/systemd/1/markdown)  [**systemd.target**(5)](https://www.chedong.com/phpMan.php/man/systemd.target/5/markdown) **sys**‐‐
       [**temd.special**(7)](https://www.chedong.com/phpMan.php/man/temd.special/7/markdown)



Red Hat, Inc                      LVM TOOLS [2.03.11(2)](https://www.chedong.com/phpMan.php/man/2.03.11/2/markdown) (2021-01-08)     [LVM2-ACTIVATION-GENERATOR(8)](https://www.chedong.com/phpMan.php/man/LVM2-ACTIVATION-GENERATOR/8/markdown)
