LinuxCommandLibrary

vgdisplay

Display volume group information

TLDR

Display information about all volume groups

$ sudo vgdisplay
copy

Display information about volume group vg1
$ sudo vgdisplay [vg1]
copy

SYNOPSIS

vgdisplay [-v] [-s] [VolumeGroupName]

PARAMETERS

-v
    Verbose output. Displays additional information about the volume group.

-s
    Short output. Displays summary information, optimized for scripting.

VolumeGroupName
    The name of the volume group to display. If omitted, information about all volume groups is displayed.

DESCRIPTION

The vgdisplay command in Linux is used to display the attributes of Volume Groups (VGs). It provides detailed information about a specified VG, or all VGs if none is specified. This information includes the VG name, UUID, state, size, number of physical volumes (PVs), logical volumes (LVs), and snapshots it contains, along with other relevant details such as allocation policy and permissions.

vgdisplay is crucial for system administrators managing Logical Volume Management (LVM) setups. It allows them to quickly assess the status and configuration of their VGs, aiding in tasks such as capacity planning, troubleshooting, and verifying the integrity of the storage infrastructure. By examining the output of vgdisplay, admins can readily understand the allocation of physical storage resources into logical volumes, contributing to efficient and flexible storage management. The output of vgdisplay is designed to be human-readable, making it easy to extract the necessary information for various LVM related tasks. It is often used in conjunction with other LVM commands like lvdisplay, pvdisplay, vgcreate, and lvcreate to manage the entire storage landscape. The command is a fundamental utility within the LVM2 suite, the standard LVM implementation in modern Linux distributions.

EXIT STATUS

The vgdisplay command returns an exit code of 0 for success and 1 for failure.

EXAMPLE

To display information about all volume groups:
vgdisplay

To display verbose information about a specific volume group named 'myvg':
vgdisplay -v myvg

SEE ALSO

Copied to clipboard