LinuxCommandLibrary

vgs

Report LVM volume group information

TLDR

List volume groups

$ sudo vgs
copy
List all groups
$ sudo vgs -a
copy
Verbose output
$ sudo vgs -v
copy
Show specific fields
$ sudo vgs -o vg_name,vg_size,vg_free
copy
Append field
$ sudo vgs -o +field_name
copy
No headings
$ sudo vgs --noheadings
copy
Use separator
$ sudo vgs --separator =
copy

SYNOPSIS

vgs [OPTIONS] [VolumeGroupName...]

DESCRIPTION

vgs displays information about volume groups in a configurable table format. It shows group names, physical volumes count, logical volumes count, sizes, and free space.

PARAMETERS

-a, --all

Show all volume groups including incomplete ones
-v, --verbose
Increase verbosity and show additional details
-o, --options fields
Specify which fields to display
--noheadings
Suppress the heading line in output
--separator char
Use specified character as field separator
--units units
Display sizes in specified units

CAVEATS

Incomplete volume groups (missing physical volumes) are hidden by default; use -a to show them. Default output is human-readable; use formatting options for scripting.

HISTORY

vgs is part of LVM2, the Linux Logical Volume Manager.

SEE ALSO

lvm(8), vgdisplay(8), pvs(8), lvs(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community