The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

vgchange - Modify Volume Group Settings





The vgchange command is a part of the Logical Volume Manager (LVM) toolset and is used to change the settings of an LVM Volume Group (VG). This command can only be executed by the superuser (root) because it involves managing system-level storage configuration.

The basic syntax for the vgchange command is as follows:
vgchange [OPTIONS] VOLUME_GROUP_NAME

Here, "VOLUME_GROUP_NAME" is the name of the volume group you want to modify.

Some commonly used options for the vgchange command include:

# vgchange -a n myVG ←Deactivate the volume group "myVG"
# vgchange -ay ←Activate all volume groups.

For more detailed explanations and additional examples of the vgchange command in LVM, you can refer to the provided link.