VGCFGBACKUP(8)
πΎ VGCFGBACKUP β okay bestie, we're backing up volume group configs (section: NAME) πΈ
the manual page for vgcfgbackup(8) from the System Manager's Manual, rewritten with love π
β¨ SYNOPSIS β¨
okay so here's the whole vibe, precisely, no notes:
vgcfgbackup
[ option_args ]
[ position_args ]
π DESCRIPTION π
bestie. listen. vgcfgbackup creates backup files containing metadata of VGs. that's the whole girlboss moment. and if you don't name any VGs? it just does it for all of them. iconic. lowkey overachieving. π
wanna know how to use those backup files? go read vgcfgrestore(8), she's the one who handles using the back up files.
in a default installation, each VG is backed up into its own separate file, bearing the name of the VG, sitting pretty in the directory /etc/lvm/backup. she has a little home. π
and if you want a different backup file? use -f. but here's the tea: when you're backing up multiple VGs, the file name is treated as a template, with %s replaced by the VG name. so don't be confused when your filename does a transformation on you. π¦
NB. This DOES NOT back up the data content of LVs. like. at all. it's metadata only, gorgeous. don't come for me when your LV data isn't in there. π
oh and it may also be useful to regularly back up the files in /etc/lvm. just saying. keep them close. keep them safe. π«Ά
π USAGE π
vgcfgbackup
[ -f|--file String ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG ... ]
β
common options for lvm, the whole squad:
[ -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 π (section: OPTIONS, but make it fashion)
--commandprofile Stringβ the command profile to use for command configuration. checklvm.conf(5)for more info about profiles, she explains it better than me ngl.--config Stringβ config settings for the command. these override thelvm.conf(5)settings. theStringarg uses the same format aslvm.conf(5), or you can use section/field syntax instead. again,lvm.conf(5)has the full story about config. π-d,--debug ...β set the debug level. repeat it from 1 to 6 times to increase the detail of messages sent to the log file and/or syslog (if configured). rip it, rip it, rip it again. π₯--devices PVβ restricts the devices that are visible and accessible to the command. devices not listed will appear to be missing (spooky π» but intentional). this option can be repeated, or it accepts a comma-separated list of devices. and heads up: this overrides the devices file.--devicesfile Stringβ a file listing devices that LVM should use. the file must exist in/etc/lvm/devices/and is managed with thelvmdevices(8)command. this overrides thelvm.conf(5)devices/devicesfileanddevices/use_devicesfilesettings. two settings. yes. both. π--driverloaded y|nβ if set tono, the command will not attempt to use device-mapper. for testing and debugging purposes only, bestie.-f,--file Stringβ write the backup to the named file. when backing up more than one VG, the file name is treated as a template, and%sis replaced by the VG name. π--foreignβ report/display foreign VGs that would otherwise be skipped. seelvmsystemid(7)for more information about foreign VGs. give the outsiders a moment in the spotlight β¨-h,--helpβ display help text. classic. dependable. we love her. π«Ά--ignorelockingfailureβ allows a command to continue with read-only metadata operations after locking failures. like okay, locks broke, we carry on anyway, but carefully.--journal Stringβ record information in the systemd journal. this information is in addition to information enabled by thelvm.conflog/journalsetting. the values:command:records information about the command.output:records the default command output.debug:records full command debugging. pick your fighter π₯--lockopt Stringβ used to pass options for special cases tolvmlockd. seelvmlockd(8)for more information. special cases only, she's exclusive.--longhelpβ display long help text. the extended cut. director's commentary. π¬--nohintsβ do not use the hints file to locate devices for PVs. a command may read more devices to find PVs when hints are not used. the command will still perform standard hint file invalidation where appropriate though, don't worry. π--nolockingβ disable locking. use with caution, concurrent commands may produce incorrect results. this is the risky little outfit bestie, wear responsibly. β οΈ--profile Stringβ an alias for--commandprofileor--metadataprofile, depending on the command. she's versatile like that.-q,--quiet ...β suppress output and log messages. overrides--debugand--verbose. repeat it once to also suppress any prompts with answerno. so-qqis automatic no forever. π--readonlyβ prevent the command from making changes, including activation and metadata updates. (see--permission rfor read only LVs.)--reportformat basic|json|json_stdβ overrides the current output format for reports, which is defined globally by thereport/output_formatsetting inlvm.conf(5).basicis the original format with columns and rows. if there is more than one report per command, each report is prefixed with the report name for identification.jsonproduces report output in JSON format.json_stdproduces report output in JSON format which is more compliant with the JSON standard. seelvmreport(7)for more information. ok standards queen π-t,--testβ run in test mode. commands will not update metadata. this is implemented by disabling all metadata writing but nevertheless returning success to the calling function. which means: it may lead to unusual error messages in multi-stage operations if a tool relies on reading back metadata it believes has changed but hasn't. dramatic but true. π-v,--verbose ...β set verbose level. repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr. more-vmore talk, always.--versionβ display version information. the "who even am i" option. π-y,--yesβ do not prompt for confirmation interactively but always assume the answer yes. use with extreme caution. (for automatic no, see-qq.) no cap, this one is dangerous bestie. π₯
π§ VARIABLES π§
VGβ Volume Group name. seelvm(8)for valid names. πStringβ see the option description for information about the string content. it's giving "figure it out from context" but that's literally what it says, i'm not gatekeeping.Size[UNIT]βSizeis an input number that accepts an optional unit. input units are always treated as base two values, regardless of capitalization, e.g.'k'and'K'both refer to1024. the default input unit is specified by letter, followed by|UNIT.UNITrepresents 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. (this should not be confused with the output control--units, where capital letters mean multiple of 1000.) okay so capital letters mean different things in different places, yes, it's chaos, we cope. π
πΈ ENVIRONMENT VARIABLES πΈ
see lvm(8) for information about environment variables used by lvm. for example, LVM_VG_NAME can generally be substituted for a required VG parameter. it's giving β¨ short β¨ and β¨ sweet β¨ and honestly iconic. π¦
π SEE ALSO π
the whole friend group, in their exact groupings:
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, you ate, you understood the assignment, go back up them volume groups πβ¨ππ¦πΈπ π«Ά
this little masterpiece was brought to you by Red Hat, Inc., running LVM TOOLS 2.03.44(2) from 2026-10-27 β mwah, kisses, take care of your metadata, periodt ππβ
π¦ 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