1VGREMOVE(8)                 System Manager's Manual                VGREMOVE(8)
2
3
4

NAME

6       vgremove - Remove volume group(s)
7

SYNOPSIS

9       vgremove position_args
10           [ option_args ]
11

DESCRIPTION

13       vgremove  removes  one or more VGs. If LVs exist in the VG, a prompt is
14       used to confirm LV removal.
15
16       If one or more PVs in the VG are lost, consider vgreduce  --removemiss‐
17       ing to make the VG metadata consistent again.
18
19       Repeat  the force option (-ff) to forcibly remove LVs in the VG without
20       confirmation.
21

USAGE

23       vgremove VG|Tag|Select ...
24           [ -f|--force ]
25           [ -S|--select String ]
26           [    --noudevsync ]
27           [    --reportformat basic|json ]
28           [ COMMON_OPTIONS ]
29
30       Common options for lvm:
31           [ -d|--debug ]
32           [ -h|--help ]
33           [ -q|--quiet ]
34           [ -t|--test ]
35           [ -v|--verbose ]
36           [ -y|--yes ]
37           [    --commandprofile String ]
38           [    --config String ]
39           [    --driverloaded y|n ]
40           [    --lockopt String ]
41           [    --longhelp ]
42           [    --nolocking ]
43           [    --profile String ]
44           [    --version ]
45

OPTIONS

47       --commandprofile String
48              The command profile to use for command configuration.  See
49              lvm.conf(5) for more information about profiles.
50
51       --config String
52              Config settings for the command. These override lvm.conf set‐
53              tings.  The String arg uses the same format as lvm.conf, or may
54              use section/field syntax.  See lvm.conf(5) for more information
55              about config.
56
57       -d|--debug ...
58              Set debug level. Repeat from 1 to 6 times to increase the detail
59              of messages sent to the log file and/or syslog (if configured).
60
61       --driverloaded y|n
62              If set to no, the command will not attempt to use device-mapper.
63              For testing and debugging.
64
65       -f|--force ...
66              Override various checks, confirmations and protections.  Use
67              with extreme caution.
68
69       -h|--help
70              Display help text.
71
72       --lockopt String
73              Used to pass options for special cases to lvmlockd.  See lvm‐
74              lockd(8) for more information.
75
76       --longhelp
77              Display long help text.
78
79       --nolocking
80              Disable locking.
81
82       --noudevsync
83              Disables udev synchronisation. The process will not wait for no‐
84              tification from udev. It will continue irrespective of any pos‐
85              sible udev processing in the background. Only use this if udev
86              is not running or has rules that ignore the devices LVM creates.
87
88       --profile String
89              An alias for --commandprofile or --metadataprofile, depending on
90              the command.
91
92       -q|--quiet ...
93              Suppress output and log messages. Overrides --debug and --ver‐
94              bose.  Repeat once to also suppress any prompts with answer
95              'no'.
96
97       --reportformat basic|json
98              Overrides current output format for reports which is defined
99              globally by the report/output_format setting in lvm.conf.  basic
100              is the original format with columns and rows.  If there is more
101              than one report per command, each report is prefixed with the
102              report name for identification. json produces report output in
103              JSON format. See lvmreport(7) for more information.
104
105       -S|--select String
106              Select objects for processing and reporting based on specified
107              criteria.  The criteria syntax is described by --select help and
108              lvmreport(7).  For reporting commands, one row is displayed for
109              each object matching the criteria.  See --options help for se‐
110              lectable object fields.  Rows can be displayed with an addi‐
111              tional "selected" field (-o selected) showing 1 if the row
112              matches the selection and 0 otherwise.  For non-reporting com‐
113              mands which process LVM entities, the selection is used to
114              choose items to process.
115
116       -t|--test
117              Run in test mode. Commands will not update metadata.  This is
118              implemented by disabling all metadata writing but nevertheless
119              returning success to the calling function. This may lead to un‐
120              usual error messages in multi-stage operations if a tool relies
121              on reading back metadata it believes has changed but hasn't.
122
123       -v|--verbose ...
124              Set verbose level. Repeat from 1 to 4 times to increase the de‐
125              tail of messages sent to stdout and stderr.
126
127       --version
128              Display version information.
129
130       -y|--yes
131              Do not prompt for confirmation interactively but always assume
132              the answer yes. Use with extreme caution.  (For automatic no,
133              see -qq.)
134

VARIABLES

136       VG
137              Volume Group name.  See lvm(8) for valid names.
138
139       Tag
140              Tag name.  See lvm(8) for information about tag names and  using
141              tags in place of a VG, LV or PV.
142
143       Select
144              Select  indicates  that  a  required positional parameter can be
145              omitted if the --select option is used.  No arg appears in  this
146              position.
147
148       String
149              See the option description for information about the string con‐
150              tent.
151
152       Size[UNIT]
153              Size is an input number that accepts an  optional  unit.   Input
154              units are always treated as base two values, regardless of capi‐
155              talization, e.g. 'k' and 'K' both refer to  1024.   The  default
156              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
157              resents other possible input units:  bBsSkKmMgGtTpPeE.   b|B  is
158              bytes,  s|S is sectors of 512 bytes, k|K is KiB, m|M is MiB, g|G
159              is GiB, t|T is TiB, p|P is PiB, e|E is EiB.  (This should not be
160              confused  with the output control --units, where capital letters
161              mean multiple of 1000.)
162

ENVIRONMENT VARIABLES

164       See lvm(8) for information about environment  variables  used  by  lvm.
165       For example, LVM_VG_NAME can generally be substituted for a required VG
166       parameter.
167

SEE ALSO

169       lvm(8) lvm.conf(5) lvmconfig(8)
170
171       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
172       pvresize(8) pvs(8) pvscan(8)
173
174       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
175       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
176       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
177       vgs(8) vgscan(8) vgsplit(8)
178
179       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
180       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
181
182       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
183       vate(8) lvmdump(8)
184
185       dmeventd(8) lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8)  lvmd‐
186       busd(8)
187
188       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
189
190
191
192Red Hat, Inc.          LVM TOOLS 2.03.11(2) (2021-01-08)           VGREMOVE(8)
Impressum