1PVCK(8) System Manager's Manual PVCK(8)
2
3
4
6 pvck - Check the consistency of physical volume(s)
7
9 pvck position_args
10 [ option_args ]
11
13 pvck checks the LVM metadata for consistency on PVs.
14
16 pvck PV ...
17 [ --labelsector Number ]
18 [ COMMON_OPTIONS ]
19
20 Common options for lvm:
21 [ -d|--debug ]
22 [ -h|--help ]
23 [ -q|--quiet ]
24 [ -t|--test ]
25 [ -v|--verbose ]
26 [ -y|--yes ]
27 [ --commandprofile String ]
28 [ --config String ]
29 [ --driverloaded y|n ]
30 [ --lockopt String ]
31 [ --longhelp ]
32 [ --nolocking ]
33 [ --profile String ]
34 [ --version ]
35
37 --commandprofile String
38 The command profile to use for command configuration. See
39 lvm.conf(5) for more information about profiles.
40
41 --config String
42 Config settings for the command. These override lvm.conf set‐
43 tings. The String arg uses the same format as lvm.conf, or may
44 use section/field syntax. See lvm.conf(5) for more information
45 about config.
46
47 -d|--debug ...
48 Set debug level. Repeat from 1 to 6 times to increase the detail
49 of messages sent to the log file and/or syslog (if configured).
50
51 --driverloaded y|n
52 If set to no, the command will not attempt to use device-mapper.
53 For testing and debugging.
54
55 -h|--help
56 Display help text.
57
58 --labelsector Number
59 By default the PV is labelled with an LVM2 identifier in its
60 second sector (sector 1). This lets you use a different sector
61 near the start of the disk (between 0 and 3 inclusive - see
62 LABEL_SCAN_SECTORS in the source). Use with care.
63
64 --lockopt String
65 Used to pass options for special cases to lvmlockd. See lvm‐
66 lockd(8) for more information.
67
68 --longhelp
69 Display long help text.
70
71 --nolocking
72 Disable locking.
73
74 --profile String
75 An alias for --commandprofile or --metadataprofile, depending on
76 the command.
77
78 -q|--quiet ...
79 Suppress output and log messages. Overrides --debug and --ver‐
80 bose. Repeat once to also suppress any prompts with answer
81 'no'.
82
83 -t|--test
84 Run in test mode. Commands will not update metadata. This is
85 implemented by disabling all metadata writing but nevertheless
86 returning success to the calling function. This may lead to
87 unusual error messages in multi-stage operations if a tool
88 relies on reading back metadata it believes has changed but
89 hasn't.
90
91 -v|--verbose ...
92 Set verbose level. Repeat from 1 to 4 times to increase the
93 detail of messages sent to stdout and stderr.
94
95 --version
96 Display version information.
97
98 -y|--yes
99 Do not prompt for confirmation interactively but always assume
100 the answer yes. Use with extreme caution. (For automatic no,
101 see -qq.)
102
104 PV
105 Physical Volume name, a device path under /dev. For commands
106 managing physical extents, a PV positional arg generally accepts
107 a suffix indicating a range (or multiple ranges) of physical
108 extents (PEs). When the first PE is omitted, it defaults to the
109 start of the device, and when the last PE is omitted it defaults
110 to end. Start and end range (inclusive): PV[:PE-PE]... Start
111 and length range (counting from 0): PV[:PE+PE]...
112
113 String
114 See the option description for information about the string con‐
115 tent.
116
117 Size[UNIT]
118 Size is an input number that accepts an optional unit. Input
119 units are always treated as base two values, regardless of capi‐
120 talization, e.g. 'k' and 'K' both refer to 1024. The default
121 input unit is specified by letter, followed by |UNIT. UNIT rep‐
122 resents other possible input units: bBsSkKmMgGtTpPeE. b|B is
123 bytes, s|S is sectors of 512 bytes, k|K is kilobytes, m|M is
124 megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes,
125 e|E is exabytes. (This should not be confused with the output
126 control --units, where capital letters mean multiple of 1000.)
127
129 See lvm(8) for information about environment variables used by lvm.
130 For example, LVM_VG_NAME can generally be substituted for a required VG
131 parameter.
132
134 If the partition table is corrupted or lost on /dev/sda, and you sus‐
135 pect there was an LVM partition at approximately 100 MiB, then this
136 area of the disk can be scanned using the --labelsector parameter with
137 a value of 204800 (100 * 1024 * 1024 / 512 = 204800).
138 pvck --labelsector 204800 /dev/sda
139
141 lvm(8) lvm.conf(5) lvmconfig(8)
142
143 pvchange(8) pvck(8) pvcreate(8) pvdisplay(8) pvmove(8) pvremove(8)
144 pvresize(8) pvs(8) pvscan(8)
145
146 vgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8) vgcreate(8) vgcon‐
147 vert(8) vgdisplay(8) vgexport(8) vgextend(8) vgimport(8) vgimport‐
148 clone(8) vgmerge(8) vgmknodes(8) vgreduce(8) vgremove(8) vgrename(8)
149 vgs(8) vgscan(8) vgsplit(8)
150
151 lvcreate(8) lvchange(8) lvconvert(8) lvdisplay(8) lvextend(8) lvre‐
152 duce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)
153
154 lvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti‐
155 vate(8) lvmdump(8)
156
157 dmeventd(8) lvmpolld(8) lvmlockd(8) lvmlockctl(8) cmirrord(8) lvmd‐
158 busd(8)
159
160 lvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)
161
162
163
164Red Hat, Inc. LVM TOOLS 2.03.02(2)-RHEL8 (2019-01-04) PVCK(8)