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

NAME

6       vgexport - Unregister volume group(s) from the system
7

SYNOPSIS

9       vgexport option_args position_args
10           [ option_args ]
11

DESCRIPTION

13       vgexport  changes  a VG into the exported state, which ensures that the
14       VG and its disks are not being used, and cannot be used until the VG is
15       imported  by vgimport(8).  Putting a VG into an unusable, offline state
16       can be useful when doing things like moving a  VG's  disks  to  another
17       system.   Exporting  a  VG  provides some protection from its LVs being
18       accidentally used, or being used by an  automated  system  before  it's
19       ready.
20
21       A VG cannot be exported until all of its LVs are inactive.
22
23       LVM commands will ignore an exported VG or report an error if a command
24       tries to use it.
25
26       For an exported VG, the vgs command will display attribute, and the pvs
27       command  will  display attribute.  Both vgs and pvs will display report
28       field.
29
30       vgexport clears the VG system ID, and vgimport sets the VG system ID to
31       match the host running vgimport (if the host has a system ID).
32

USAGE

34       Export specified VGs.
35
36       vgexport VG|Tag|Select ...
37           [ -S|--select String ]
38           [ COMMON_OPTIONS ]
39
40       Export all VGs.
41
42       vgexport -a|--all
43           [ COMMON_OPTIONS ]
44
45       Common options for command:
46           [    --reportformat basic|json ]
47
48       Common options for lvm:
49           [ -d|--debug ]
50           [ -h|--help ]
51           [ -q|--quiet ]
52           [ -t|--test ]
53           [ -v|--verbose ]
54           [ -y|--yes ]
55           [    --commandprofile String ]
56           [    --config String ]
57           [    --driverloaded y|n ]
58           [    --lockopt String ]
59           [    --longhelp ]
60           [    --nolocking ]
61           [    --profile String ]
62           [    --version ]
63

OPTIONS

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

VARIABLES

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

ENVIRONMENT VARIABLES

175       See lvm(8) for information about environment  variables  used  by  lvm.
176       For example, LVM_VG_NAME can generally be substituted for a required VG
177       parameter.
178

SEE ALSO

180       lvm(8) lvm.conf(5) lvmconfig(8)
181
182       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
183       pvresize(8) pvs(8) pvscan(8)
184
185       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
186       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
187       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
188       vgs(8) vgscan(8) vgsplit(8)
189
190       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
191       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
192
193       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
194       vate(8) lvmdump(8)
195
196       dmeventd(8) lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8)  lvmd‐
197       busd(8)
198
199       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
200
201
202
203Red Hat, Inc.       LVM TOOLS 2.03.02(2)-RHEL8 (2019-01-04)        VGEXPORT(8)
Impressum