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

NAME

6       pvremove - Remove LVM label(s) from physical volume(s)
7

SYNOPSIS

9       pvremove position_args
10           [ option_args ]
11

DESCRIPTION

13       pvremove  wipes the label on a device so that LVM will no longer recog‐
14       nise it as a PV.
15
16       A PV cannot be removed from a VG while it is used by an active LV.
17
18       Repeat the force option (-ff) to forcibly remove a PV belonging  to  an
19       existing VG. Normally, vgreduce(8) should be used instead.
20

USAGE

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

OPTIONS

44       --commandprofile String
45              The command profile to use for command configuration.  See
46              lvm.conf(5) for more information about profiles.
47
48       --config String
49              Config settings for the command. These override lvm.conf set‐
50              tings.  The String arg uses the same format as lvm.conf, or may
51              use section/field syntax.  See lvm.conf(5) for more information
52              about config.
53
54       -d|--debug ...
55              Set debug level. Repeat from 1 to 6 times to increase the detail
56              of messages sent to the log file and/or syslog (if configured).
57
58       --driverloaded y|n
59              If set to no, the command will not attempt to use device-mapper.
60              For testing and debugging.
61
62       -f|--force ...
63              Override various checks, confirmations and protections.  Use
64              with extreme caution.
65
66       -h|--help
67              Display help text.
68
69       --lockopt String
70              Used to pass options for special cases to lvmlockd.  See lvm‐
71              lockd(8) for more information.
72
73       --longhelp
74              Display long help text.
75
76       --nolocking
77              Disable locking.
78
79       --profile String
80              An alias for --commandprofile or --metadataprofile, depending on
81              the command.
82
83       -q|--quiet ...
84              Suppress output and log messages. Overrides --debug and --ver‐
85              bose.  Repeat once to also suppress any prompts with answer
86              'no'.
87
88       --reportformat basic|json
89              Overrides current output format for reports which is defined
90              globally by the report/output_format setting in lvm.conf.  basic
91              is the original format with columns and rows.  If there is more
92              than one report per command, each report is prefixed with the
93              report name for identification. json produces report output in
94              JSON format. See lvmreport(7) for more information.
95
96       -t|--test
97              Run in test mode. Commands will not update metadata.  This is
98              implemented by disabling all metadata writing but nevertheless
99              returning success to the calling function. This may lead to
100              unusual error messages in multi-stage operations if a tool
101              relies on reading back metadata it believes has changed but
102              hasn't.
103
104       -v|--verbose ...
105              Set verbose level. Repeat from 1 to 4 times to increase the
106              detail of messages sent to stdout and stderr.
107
108       --version
109              Display version information.
110
111       -y|--yes
112              Do not prompt for confirmation interactively but always assume
113              the answer yes. Use with extreme caution.  (For automatic no,
114              see -qq.)
115

VARIABLES

117       PV
118              Physical  Volume  name,  a device path under /dev.  For commands
119              managing physical extents, a PV positional arg generally accepts
120              a  suffix  indicating  a  range (or multiple ranges) of physical
121              extents (PEs). When the first PE is omitted, it defaults to  the
122              start of the device, and when the last PE is omitted it defaults
123              to end.  Start and end range (inclusive):  PV[:PE-PE]...   Start
124              and length range (counting from 0): PV[:PE+PE]...
125
126       String
127              See the option description for information about the string con‐
128              tent.
129
130       Size[UNIT]
131              Size is an input number that accepts an  optional  unit.   Input
132              units are always treated as base two values, regardless of capi‐
133              talization, e.g. 'k' and 'K' both refer to  1024.   The  default
134              input unit is specified by letter, followed by |UNIT.  UNIT rep‐
135              resents other possible input units:  bBsSkKmMgGtTpPeE.   b|B  is
136              bytes,  s|S  is  sectors  of 512 bytes, k|K is kilobytes, m|M is
137              megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
138              e|E  is  exabytes.  (This should not be confused with the output
139              control --units, where capital letters mean multiple of 1000.)
140

ENVIRONMENT VARIABLES

142       See lvm(8) for information about environment  variables  used  by  lvm.
143       For example, LVM_VG_NAME can generally be substituted for a required VG
144       parameter.
145

SEE ALSO

147       lvm(8) lvm.conf(5) lvmconfig(8)
148
149       pvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)
150       pvresize(8) pvs(8) pvscan(8)
151
152       vgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon‐
153       vert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport‐
154       clone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)
155       vgs(8) vgscan(8) vgsplit(8)
156
157       lvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre‐
158       duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
159
160       lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
161       vate(8) lvmdump(8)
162
163       dmeventd(8) lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8)  lvmd‐
164       busd(8)
165
166       lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
167
168
169
170Red Hat, Inc.       LVM TOOLS 2.03.02(2)-RHEL8 (2019-01-04)        PVREMOVE(8)
Impressum