VGMKNODES(8)
π VGMKNODES(8) π β the system manager's manual, but make it cute
okay bestie, buckle up, we're doing vgmknodes today and honestly it's giving quietly essential energy. it lives in the System Manager's Manual section (that's section 8, the grown-up admin one π«Ά) and it's part of the LVM family, so if you already know lvm(8) you're gonna be fine, and if you don't, no worries, we'll get there.
β¨ NAME β¨
vgmknodes β Create the special files for volume group devices in /dev
like, that's it, that's the whole job. she makes the special files. she's the special-files girlie. π
πΈ SYNOPSIS πΈ
vgmknodes
[ option_args ]
[ position_args ]
π¦ DESCRIPTION π¦
so what's actually happening here. vgmknodes goes and checks the LVM device nodes sitting in /dev β the ones that active LVs need β and then:
- it creates any that are missing π
- it removes any that aren't being used anymore ποΈ
ngl though: this command should not usually be needed if all the system components are working correctly together. she's a fixer-upper, not a daily driver. if you're running her all the time, something else in your stack is being shady. π
also psst β scroll down to NOTES at the end of this page, there's important tea about using vgmknodes together with udev. don't skip it, i'm literally begging. π
π USAGE π
vgmknodes
[ --ignorelockingfailure ]
[ --refresh ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|LV|Tag ... ]
β
Common options for lvm:
[ -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 π
okay this is the big one, she's long but she's worth it. every single flag, no skips:
--commandprofile Stringβ the command profile to use for command configuration. seelvm.conf(5)for more info about profiles. π--config Stringβ config settings for the command, and they override thelvm.conf(5)settings. theStringarg uses the same format aslvm.conf(5), or it can use section/field syntax. seelvm.conf(5)for more about config. π«Ά-d|--debug ...β sets the debug level. repeat it 1 to 6 times to crank up the detail of messages sent to the log file and/or syslog (if configured). more-d, more lore. π--devices PVβ restricts which devices are visible and accessible to the command. devices not listed will appear to be missing π». this option can be repeated, or it accepts a comma-separated list of devices. it overrides the devices file.--devicesfile Stringβ a file listing devices that LVM should use. it must exist in/etc/lvm/devices/and it's managed with thelvmdevices(8)command. this overrides thelvm.conf(5)devices/devicesfileanddevices/use_devicesfilesettings. π--driverloaded y|nβ if set to no, the command will not attempt to use device-mapper. for testing and debugging. π§ͺ-h|--helpβ display help text. the classic.--ignorelockingfailureβ allows a command to continue with read-only metadata operations after locking failures. locked out but still showing up to the read-only party π--journal Stringβ record information in the systemd journal. this is in addition to what's enabled by thelvm.conflog/journalsetting. the values:commandrecords information about the command;outputrecords the default command output;debugrecords full command debugging. π--lockopt Stringβ used to pass options for special cases tolvmlockd. seelvmlockd(8)for more info. π--longhelpβ display long help text. the extended edition β¨--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. ποΈ--nolockingβ disable locking. > use with caution, concurrent commands may produce incorrect results. π fr fr, this one's spicy.--profile Stringβ an alias for--commandprofileor--metadataprofile, depending on the command.-q|--quiet ...β suppress output and log messages. this overrides--debugand--verbose. repeat it once to also suppress any prompts with answer 'no'. π€«--refreshβ if the LV is active, reload its metadata. in an environment whereudevis used to manage the/devcontent, usage of this option is highly recommended π. why? because refresh also regenerates udev events for an LV, based on which existing udev rules are applied to set the/devcontent and permissions. also, this operation may be useful if something has gone wrong, or if some form of manual LV sharing is being used. π--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's 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 info. π-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. β οΈ heads up: this 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. the audacity of that tool, honestly. π-v|--verbose ...β sets the verbose level. repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr. π£οΈ--versionβ display version information.-y|--yesβ do not prompt for confirmation interactively but always assume the answer yes. > use with extreme caution. (for automatic no, see-qq.) π¨ like bestie please read that twice.
π§ VARIABLES π§
these are the position_arg girlies π:
VGβ Volume Group name. seelvm(8)for valid names.LVβ Logical Volume name. seelvm(8)for valid names. an LV positional arg generally includes the VG name and LV name, e.g.VG/LV.Tagβ Tag name. seelvm(8)for information about tag names and using tags in place of a VG, LV or PV. π·οΈStringβ see the option description for information about the string content.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 of512bytes,k|Kis KiB,m|Mis MiB,g|Gis GiB,t|Tis TiB,p|Pis PiB,e|Eis EiB. > and don't get it twisted: this is not the same as the output control--units, where capital letters mean multiple of 1000. π
π 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. π±
π NOTES π
this is the part i told you not to skip, and i meant it. π
when you're using udev(7) to manage the /dev content, it's also highly recommended to use the --refresh option. that way, the necessary udev events are generated too, and the associated udev rules are properly applied. β¨
if the --refresh option is not used in this case, then LVM recreates the /dev content directly β and udev will not have proper records about the affected symlinks and nodes. also, any node permissions defined by udev rules are not applied. π
and that, in turn, may cause problems for other system components that rely on reading the udev database to get the list of /dev symlinks and nodes, and which rely on the permissions based on udev rules. so likeβ¦ just use --refresh. it's the moment. π
π SEE ALSO π
the whole extended friend group, no one gets left out π«Ά:
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!! π she was brought to you by Red Hat, Inc., running LVM TOOLS 2.03.44(2), dated 2026-10-27 β so you know she's fresh β¨. go make some special files in /dev, use --refresh if udev is in the chat, and remember: this command should usually not be needed, so if you're here a lot, go check on your other system components. love u, bye πππ¦
π¦ 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