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