Linux "vgmerge" Command Line Options and Examples
Merge volume groups

vgmerge merges two existing VGs. The inactive source VG is merged into the destination VG if physical extent sizes are equal and PV and LV summaries of both VGs fit into the destination VG's limits.


Usage:

vgmerge position_args
      [ option_args ]






Command Line Options:

-A|--autobackup
Specifies if metadata should be backed up automatically after a change. Enabling this is stronglyadvised! See vgcfgbackup(8) for more information.
vgmerge -A|--autobackup ...
--commandprofile
The command profile to use for command configuration. See lvm.conf(5) for more information about pro‐files.
vgmerge --commandprofile ...
--config
Config settings for the command. These override lvm.conf settings. The String arg uses the same formatas lvm.conf, or may use section/field syntax. See lvm.conf(5) for more information about config.
vgmerge --config ...
-d|--debug
Set debug level. Repeat from 1 to 6 times to increase the detail of messages sent to the log fileand/or syslog (if configured).
vgmerge -d|--debug ...
--driverloaded
If set to no, the command will not attempt to use device-mapper. For testing and debugging.
vgmerge --driverloaded ...
-h|--help
Display help text.
vgmerge -h|--help ...
-l|--list
Display merged destination VG like vgdisplay -v.
vgmerge -l|--list ...
--longhelp
Display long help text.
vgmerge --longhelp ...
--profile
An alias for --commandprofile or --metadataprofile, depending on the command.
vgmerge --profile ...
-q|--quiet
Suppress output and log messages. Overrides --debug and --verbose. Repeat once to also suppress anyprompts with answer 'no'.
vgmerge -q|--quiet ...
-t|--test
Run in test mode. Commands will not update metadata. This is implemented by disabling all metadatawriting but nevertheless returning success to the calling function. This may lead to unusual error mes‐sages in multi-stage operations if a tool relies on reading back metadata it believes has changed buthasn't.
vgmerge -t|--test ...
-v|--verbose
Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout andstderr.
vgmerge -v|--verbose ...
--version
Display version information.
vgmerge --version ...
-y|--yes
Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme cau‐tion. (For automatic no, see -qq.)VARIABLESVGVolume Group name. See lvm(8) for valid names.StringSee the option description for information about the string content.Size[UNIT]Size is an input number that accepts an optional unit. Input units are always treated as base two val‐ues, regardless of capitalization, e.g. 'k' and 'K' both refer to 1024. The default input unit isspecified by letter, followed by |UNIT. UNIT represents other possible input units: bBsSkKmMgGtTpPeE.b|B is bytes, s|S is sectors of 512 bytes, k|K is kilobytes, m|M is megabytes, g|G is gigabytes, t|T isterabytes, p|P is petabytes, e|E is exabytes. (This should not be confused with the output control
vgmerge -y|--yes ...
--units,
ENVIRONMENT VARIABLESSee lvm(8) for information about environment variables used by lvm. For example, LVM_VG_NAME can generally besubstituted for a required VG parameter.EXAMPLESMerge an inactive VG named "vg00" into the active or inactive VG named "databases", giving verbose runtimeinformation.vgmerge -v databases vg00
vgmerge --units, ...