VGCK(8)
π VGCK π (NAME)
okay bestie, welcome to VGCK(8) β that's section 8 of the System Manager's Manual, so you KNOW it's a real one π
vgck β Check the consistency of volume group(s) β¨
π«Ά SYNOPSIS π«Ά
vgck option_args position_args
[ option_args ]
[ position_args ]
πΈ DESCRIPTION πΈ
vgck checks LVM metadata for consistency. that's it, that's the whole job β it's the vibe check for your metadata, no cap π
π USAGE π
Read and display information about a VG.
like, just look at the VG. respectfully. π
vgck
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag ... ]
Rewrite VG metadata to correct problems.
glow-up time for ur metadata β¨
vgck --updatemetadata VG
[ COMMON_OPTIONS ]
Common options for lvm:
these are the options the whole lvm family shares, so they'll feel familiar π«Ά
[ -d|--debug ... ]
[ -h|--help ]
[ -q|--quiet ... ]
[ -t|--test ]
[ -v|--verbose ... ]
[ -y|--yes ]
[ --commandprofile String ]
[ --config String ]
[ --devices PV ]
[ --devicesfile String ]
[ --driverloaded y|n ]
[ --journal String ]
[ --lockopt String ]
[ --longhelp ]
[ --nohints ]
[ --nolocking ]
[ --profile String ]
[ --version ]
β¨ OPTIONS β¨
--commandprofileString β the command profile you want to use for configuring this command. seelvm.conf(5)for the whole tea about profiles β--configString β config settings just for this command. these override whateverlvm.conf(5)says. the String arg takes the same format aslvm.conf(5), or you can use section/field syntax. again,lvm.conf(5)has the deets π-d,--debug... β sets the debug level. repeat it 1 to 6 times to crank up how much detail gets sent to the log file and/or syslog (if you have that configured). more repeats = more yapping π₯--devicesPV β restricts which devices are visible and accessible to the command. anything you don't list? it just looks missing π you can repeat this option, or hand it a comma-separated list of devices. heads up: this overrides the devices file.--devicesfileString β a file that lists the devices LVM should use. it must live in/etc/lvm/devices/and it's managed with thelvmdevices(8)command. this one overrides thelvm.conf(5)devices/devicesfileanddevices/use_devicesfilesettings, so like, it wins π--driverloadedy|n β set it to no and the command won't even try to use device-mapper. for testing and debugging, iykyk π§ͺ-h,--helpβ shows you the help text. classic π«Ά--journalString β records info into the systemd journal. this is on top of whatever thelvm.conflog/journalsetting already enables.command:records info about the command.output:records the default command output.debug:records the full command debugging. pick ur fighter π--lockoptString β passes options for special cases over tolvmlockd.lvmlockd(8)has more, go read it π--longhelpβ shows the long help text. the extended cut π¬--nohintsβ don't use the hints file to locate devices for PVs. without hints, a command may end up reading more devices to find those PVs. it'll still do standard hint file invalidation where that makes sense tho β¨--nolockingβ disables locking. use with caution β concurrent commands can produce incorrect results π--profileString β an alias for--commandprofileor--metadataprofile, depending on which command you're running. two-faced but make it useful π-q,--quiet... β suppresses output and log messages. it overrides--debugand--verbose, sorry to those guys. repeat it once more and it'll also suppress any prompts with the answer'no'π€«--reportformatbasic|json|json_std β overrides the current output format for reports, which is otherwise set globally by thereport/output_formatsetting inlvm.conf(5).basicis the og format with columns and rows β and if there's more than one report per command, each report gets prefixed with the report name so you can tell them apart.jsongives you report output in JSON format.json_stdalso gives you JSON format, but it's more compliant with the JSON standard.lvmreport(7)has more, bestie π-t,--testβ runs in test mode. commands will not update metadata. how does that work? it disables all metadata writing but still returns success to the calling function π which means multi-stage operations can throw weird error messages if a tool assumes it can read back metadata it thinks it changed... but it hasn't. messy, honestly.--updatemetadataβ updates VG metadata to correct problems. okay so here's the situations, bestie:- if VG metadata got updated while a PV was missing, and then that PV comes back with an old version of the metadata, this option (or literally any other command that writes metadata) will update the metadata on that previously missing PV.
- if a PV was removed from a VG while it was missing, and it reappears, this option will clear the outdated metadata off that previously missing PV.
- if the metadata text is damaged on one PV, this option will replace the damaged metadata text.
- for more severe damage, like with headers? go see
pvck(8). different department π
-v,--verbose... β sets the verbose level. repeat it 1 to 4 times to increase the detail of messages sent to stdout and stderr. chatty mode π£οΈ--versionβ displays version information. who am i, where am i from πͺ-y,--yesβ doesn't prompt you for confirmation, it just always assumes the answer is yes. use with extreme caution fr fr. (for automatic no, see-qq.) π¨
π¦ VARIABLES π¦
VGβ Volume Group name.lvm(8)has the valid names.Tagβ Tag name.lvm(8)explains tag names and how to use tags in place of a VG, LV or PV.Stringβ see that option's description for what the string is supposed to contain.Size[UNIT]β Size is an input number that takes an optional unit. input units are always treated as base two values, no matter the capitalization β so'k'and'K'both mean 1024. the default input unit is specified by a letter, followed by|UNIT.UNITrepresents the other possible input units:b|Bis bytes,s|Sis sectors of 512 bytes,k|Kis KiB,m|Mis MiB,g|Gis GiB,t|Tis TiB,p|Pis PiB,e|Eis EiB. (and don't get this confused with the output control--units, where capital letters mean a multiple of 1000. two totally different moods π)
π ENVIRONMENT VARIABLES π
lvm(8) explains all the environment variables lvm uses. for example, LVM_VG_NAME can generally be substituted in for a required VG parameter. handy π
π SEE ALSO π
lvm(8), lvm.conf(5), lvmconfig(8), lvmdevices(8),
pvchange(8), pvck(8), pvcreate(8), pvdisplay(8), pvmove(8), pvremove(8), pvresize(8), pvs(8), pvscan(8),
vgcfgbackup(8), vgcfgrestore(8), vgchange(8), vgck(8), vgcreate(8), vgconvert(8), vgdisplay(8), vgexport(8), vgextend(8), vgimport(8), vgimportclone(8), vgimportdevices(8), vgmerge(8), vgmknodes(8), vgreduce(8), vgremove(8), vgrename(8), vgs(8), vgscan(8), vgsplit(8),
lvcreate(8), lvchange(8), lvconvert(8), lvdisplay(8), lvextend(8), lvreduce(8), lvremove(8), lvrename(8), lvresize(8), lvs(8), lvscan(8),
lvm-fullreport(8), lvm-lvpoll(8), blkdeactivate(8), lvmdump(8),
dmeventd(8), lvmpolld(8), lvmlockd(8), lvmlockctl(8), lvmdbusd(8), fsadm(8),
lvmsystemid(7), lvmreport(7), lvmcache(7), lvmraid(7), lvmthin(7), lvmvdo(7), lvmautoactivation(7)
and that's the whole page, bestie π«Ά this one came from Red Hat, Inc., it's LVM TOOLS 2.03.44(2), dated 2026-10-27 β go keep ur metadata consistent, you absolute icon ππ
π¦ where this page comes from
- arch rolling: lvm2 2.03.44-1 Β· GPL-2.0-only AND LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms