OS Manuals

/usr/bin/lvchange

Logical Volume Manager 2 utilities

From lvm2 2.03.44-r1 (os), captured 2026-11-08 by running lvchange --help (exit 0). permalink

  Failed to find sysfs mount point
  WARNING: Running as a non-root user. Functionality may be unavailable.
  lvchange - Change the attributes of logical volume(s)

  Change a general LV attribute.
  For options listed in parentheses, any one is
  required, after which the others are optional.
  lvchange
	( -C|--contiguous y|n,
	  -k|--setactivationskip y|n,
	  -M|--persistent n,
	  -p|--permission rw|r,
	  -r|--readahead auto|none|Number,
	  -Z|--zero y|n,
	     --addtag Tag,
	     --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit,
	     --cachemode writethrough|writeback|passthrough,
	     --cachepolicy String,
	     --cachesettings String,
	     --compression y|n,
	     --deduplication y|n,
	     --deltag Tag,
	     --detachprofile,
	     --discards passdown|nopassdown|ignore,
	     --errorwhenfull y|n,
	     --integritysettings String,
	     --maxrecoveryrate Size[k|UNIT],
	     --metadataprofile String,
	     --minrecoveryrate Size[k|UNIT],
	     --setautoactivation y|n,
	     --vdosettings String,
	     --writebehind Number,
	     --writemostly PV[:t|n|y] )
	 VG|LV|Tag|Select ...
	[ -a|--activate y|n|ay ]
	[    --monitor y|n ]
	[    --poll y|n ]
	[ COMMON_OPTIONS ]

  Resynchronize a mirror or raid LV.
  Use to reset 'R' attribute on a not initially synchronized LV.
  lvchange --resync VG|LV|Tag|Select ...
	[ -a|--activate y|n|ay ]
	[ COMMON_OPTIONS ]

  Resynchronize or check a raid LV.
  lvchange --syncaction check|repair VG|LV|Tag|Select ...
	[ COMMON_OPTIONS ]

  Reconstruct data on specific PVs of a raid LV.
  lvchange --rebuild PV VG|LV|Tag|Select ...
	[ COMMON_OPTIONS ]

  Activate or deactivate an LV.
  lvchange -a|--activate y|n|ay VG|LV|Tag|Select ...
	[ -K|--ignoreactivationskip ]
	[ -P|--partial ]
	[    --activationmode partial|degraded|complete ]
	[    --ignorelockingfailure ]
	[    --monitor y|n ]
	[    --poll y|n ]
	[    --readonly ]
	[    --sysinit ]
	[ COMMON_OPTIONS ]

  Reactivate an LV using the latest metadata.
  lvchange --refresh VG|LV|Tag|Select ...
	[ -P|--partial ]
	[    --activationmode partial|degraded|complete ]
	[    --monitor y|n ]
	[    --poll y|n ]
	[ COMMON_OPTIONS ]

  Start or stop monitoring an LV from dmeventd.
  lvchange --monitor y|n VG|LV|Tag|Select ...
	[ COMMON_OPTIONS ]

  Start or stop processing an LV conversion.
  lvchange --poll y|n VG|LV|Tag|Select ...
	[    --monitor y|n ]
	[ COMMON_OPTIONS ]

  Make the minor device number persistent for an LV.
  lvchange --minor Number -M|--persistent y LV
	[ -a|--activate y|n|ay ]
	[ -j|--major Number ]
	[    --monitor y|n ]
	[    --poll y|n ]
	[ COMMON_OPTIONS ]

  Common options for command:
	[ -A|--autobackup y|n ]
	[ -f|--force ]
	[ -S|--select String ]
	[    --ignoremonitoring ]
	[    --noudevsync ]
	[    --reportformat basic|json|json_std ]

  Common options for lvm:
	[ -d|--debug ]
	[ -h|--help ]
	[ -q|--quiet ]
	[ -v|--verbose ]
	[ -y|--yes ]
	[ -t|--test ]
	[    --commandprofile String ]
	[    --config String ]
	[    --driverloaded y|n ]
	[    --nolocking ]
	[    --lockopt String ]
	[    --longhelp ]
	[    --profile String ]
	[    --version ]
	[    --devicesfile String ]
	[    --devices PV ]
	[    --nohints ]
	[    --journal String ]

  Use --longhelp to show all options and advanced commands.
Options (29)
OptionDescriptionSource
--addtag Taghelp
--allochelp
--cachemode writethrough|writeback|passthroughhelp
--cachepolicy Stringhelp
--cachesettings Stringhelp
--compression y|nhelp
--deduplication y|nhelp
--deltag Taghelp
--detachprofileDetaches a metadata profile from a VG or LV.help + man
--discards passdown|nopassdown|ignorehelp
--errorwhenfull y|nhelp
--integritysettings Stringhelp
--maxrecoveryrate Size[k|UNIThelp
--metadataprofile Stringhelp
--minrecoveryrate Size[k|UNIThelp
--setautoactivation y|nhelp
--vdosettings Stringhelp
--writebehind Numberhelp
--ignorelockingfailureAllows a command to continue with read-only metadata operations after locking failures. (in the manual page but not in --help)man
--ignoremonitoringDo not interact with dmeventd unless --monitor is specified. (in the manual page but not in --help)man
--longhelpDisplay long help text. (in the manual page but not in --help)man
--nohintsDo not use the hints file to locate devices for PVs. (in the manual page but not in --help)man
--nolockingDisable locking. (in the manual page but not in --help)man
--noudevsyncDisables udev synchronization. (in the manual page but not in --help)man
--readonlyPrevent the command from making changes, including activation and metadata updates. (in the manual page but not in --help)man
--refreshIf the LV is active, reload its metadata. (in the manual page but not in --help)man
--resyncInitiates mirror synchronization. (in the manual page but not in --help)man
--sysinitIndicates that vgchange/lvchange is being invoked from early system initialisation scripts (e.g. rc.sysinit or an initrd), before writable filesystems are available. (in the manual page but not in --help)man
--versionDisplay version information. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.