Change the activation status of logical volumes in the specified volume group (determine with vgscan)

vgchange

  • Change the attributes of a Logical Volume Manager (LVM) volume group.
    See also: `lvm`.
    More information: <https://manned.org/vgchange>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo vgchange --activate {{y|n}} {{volume_group}}}

click the source code to copy install vgchange on any operating system with command-not-found.com