Well, I hardly need to activate or deactivate LVM volume groups. But when I do, I also hardly remember the command required to do that. So hopefully, I can refer to this post should I need to perform one of these tasks in the future.

Since a volume group is activated by default when it is created, let’s start with a command to deactivate it.

# vgchange -a n example_volume_group

Like wise, to activate a volume group, use the following command:

# vgchange --activate y example_volume_group

If there is only thing that you or I need to remember is the vgchange command. To find the rest of option or argument, just run man vgchange.