What does volume group management allow?
Flexible adjustments to storage resources
Name key commands for modifying/removing VGs.
vgextend, vgchange, vgexport, vgimport, vgremove
What does vgextend do?
Adds a physical volume to an existing volume group
Syntax for vgextend?
vgextend <volume_group_name> <physical_volume></physical_volume></volume_group_name>
Example of vgextend?
vgextend vg_projects /dev/sdc1
What does vgchange do?
Activates or deactivates a volume group
Syntax for vgchange?
vgchange [options] <volume_group_name></volume_group_name>
Example to activate VG?
vgchange -a y vg_data
Example to deactivate VG?
vgchange -a n vg_data
What does vgexport do?
Prepares a volume group for transfer to another system (marks inactive and exported)
Syntax for vgexport?
vgexport <volume_group_name></volume_group_name>
Example of vgexport?
vgexport vg_archive
What does vgimport do?
Imports an exported volume group on a new system
Syntax for vgimport?
vgimport <volume_group_name></volume_group_name>
Example of vgimport?
vgimport vg_archive
What does vgremove do?
Deletes a volume group with no remaining logical volumes
Syntax for vgremove?
vgremove <volume_group_name></volume_group_name>
Example of vgremove?
vgremove vg_temp