{"id":3451,"date":"2022-12-20T17:02:43","date_gmt":"2022-12-20T20:02:43","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lvm2-activationgenerator-man8\/"},"modified":"2022-12-20T17:02:43","modified_gmt":"2022-12-20T20:02:43","slug":"lvm2-activationgenerator-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lvm2-activationgenerator-man8\/","title":{"rendered":"LVM2-ACTIVATION&minus;GENERATOR (man8)"},"content":{"rendered":"<h1 align=\"center\">LVM2-ACTIVATION\u2212GENERATOR<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lvm2\u2212activation\u2212generator \u2212 generator for systemd units to activate LVM volumes on boot<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/usr\/lib\/systemd\/system-generators\/lvm2\u2212activation\u2212generator<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The lvm2\u2212activation\u2212generator is called by <b>systemd<\/b>(1) on boot to generate systemd units at runtime to activate LVM Logical Volumes (LVs) when global\/event_activation=0 is set in <b>lvm.conf<\/b>(5). These units use <b>vgchange \u2212aay<\/b> to activate LVs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If event_activation=1, the lvm2\u2212activation\u2212generator exits immediately without generating any systemd units, and LVM fully relies on event-based activation to activate LVs. In this case, event-generated <b>pvscan -\u2212cache \u2212aay<\/b> commands activate LVs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">These systemd units are generated by lvm2\u2212activation\u2212generator:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>lvm2\u2212activation\u2212early.service<\/i> is run before systemd\u2019s special <b>cryptsetup.target<\/b> to activate LVs that are not layered on top of encrypted devices.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>lvm2\u2212activation.service<\/i> is run after systemd\u2019s special <b>cryptsetup.target<\/b> to activate LVs that are layered on top of encrypted devices.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>lvm2\u2212activation\u2212net.service<\/i> is run after systemd\u2019s special <b>remote-fs\u2212pre.target<\/b> to activate LVs that are layered on attached remote devices.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note that all the underlying LVM devices (Physical Volumes) need to be present when the service is run. If the there are any devices that appear to the system later, LVs using these devices need to be activated directly by <b>lvchange<\/b>(8) or <b>vgchange<\/b>(8).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The lvm2\u2212activation\u2212generator implements the <b>Generators Specification<\/b> as referenced in <b>systemd<\/b>(1).<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvm.conf<\/b>(5) <b>vgchange<\/b>(8) <b>lvchange<\/b>(8) <b>pvscan<\/b>(8) <b>udev<\/b>(7) <b>systemd<\/b>(1) <b>systemd.target<\/b>(5) <b>systemd.special<\/b>(7)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  lvm2\u2212activation\u2212generator \u2212 generator for systemd units to activate LVM volumes on boot <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,577,4],"class_list":["post-3451","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-lvm2-activation-generator","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3451"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3451\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}