{
    "mode": "man",
    "parameter": "LVM2-ACTIVATION-GENERATOR",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/LVM2-ACTIVATION-GENERATOR/8/json",
    "generated": "2026-06-16T10:31:23Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "lvm2-activation-generator - generator for systemd units to activate LVM volumes on boot\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "/lib/systemd/system-generators/lvm2-activation-generator",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "The  lvm2-activation-generator  is  called by systemd(1) on boot to generate systemd units at\nruntime to activate LVM Logical  Volumes  (LVs)  when  global/eventactivation=0  is  set  in\nlvm.conf(5).  These units use vgchange -aay to activate LVs.\n\nIf eventactivation=1, the lvm2-activation-generator exits immediately without generating any\nsystemd units, and LVM fully relies on event-based activation to activate LVs.  In this case,\nevent-generated pvscan --cache -aay commands activate LVs.\n\nThese systemd units are generated by lvm2-activation-generator:\n\nlvm2-activation-early.service  is  run before systemd's special cryptsetup.target to activate\nLVs that are not layered on top of encrypted devices.\n\nlvm2-activation.service is run after systemd's special cryptsetup.target to activate LVs that\nare layered on top of encrypted devices.\n\nlvm2-activation-net.service  is  run after systemd's special remote-fs-pre.target to activate\nLVs that are layered on attached remote devices.\n\nNote that all the underlying LVM devices (Physical Volumes) need to be present when the  ser‐\nvice  is  run.  If the there are any devices that appear to the system later, LVs using these\ndevices need to be activated directly by lvchange(8) or vgchange(8).\n\nThe lvm2-activation-generator implements the Generators Specification as referenced  in  sys‐‐\ntemd(1).\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "lvm.conf(5)  vgchange(8)  lvchange(8)  pvscan(8)  udev(7)  systemd(1)  systemd.target(5) sys‐‐\ntemd.special(7)\n\n\n\nRed Hat, Inc                      LVM TOOLS 2.03.11(2) (2021-01-08)     LVM2-ACTIVATION-GENERATOR(8)",
            "subsections": []
        }
    },
    "summary": "lvm2-activation-generator - generator for systemd units to activate LVM volumes on boot",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "lvm.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/lvm.conf/5/json"
        },
        {
            "name": "vgchange",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/vgchange/8/json"
        },
        {
            "name": "lvchange",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/lvchange/8/json"
        },
        {
            "name": "pvscan",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pvscan/8/json"
        },
        {
            "name": "udev",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/udev/7/json"
        },
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemd.target",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.target/5/json"
        },
        {
            "name": "temd.special",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/temd.special/7/json"
        },
        {
            "name": "2.03.11",
            "section": "2",
            "url": "https://www.chedong.com/phpMan.php/man/2.03.11/2/json"
        }
    ]
}