LinuxCommandLibrary

vgck

Check the consistency of volume group metadata

SYNOPSIS

vgck [options] [VolumeGroupName]

PARAMETERS

-v|--verbose
    Provide verbose output.

-d|--debug
    Provide debug output.

--version
    Display version information and exit.

-h|--help
    Display help text and exit.

VolumeGroupName
    Name of the Volume Group to check. If omitted, all Volume Groups are checked.

DESCRIPTION

The vgck command checks the consistency of Volume Group metadata. It analyzes the Volume Group descriptor area on physical volumes and reports any inconsistencies it finds. This is useful for diagnosing problems with volume group configurations, especially after system crashes or unexpected shutdowns that might corrupt the metadata. vgck can detect issues like missing or duplicate physical extents, overlapping logical volumes, or incorrect metadata checksums. This tool allows you to verify the integrity of your LVM (Logical Volume Management) setup, contributing to data availability and stability. It reads and validates Volume Group metadata to ensure the logical volume structure is sound. It is important to run vgck periodically, especially after system events that could potentially cause metadata corruption.

EXIT STATUS

vgck returns an exit code of 0 if no errors were found, and a non-zero exit code if errors were found. The exact non-zero exit code is not standardized and may vary across LVM versions.

USAGE EXAMPLES

Check all volume groups:
vgck

Check a specific volume group:
vgck my_volume_group

Check a specific volume group with verbosity:
vgck -v my_volume_group

SEE ALSO

Copied to clipboard