Linux Command
pvck
Detect consistency of LVM metadata of physical volumes
Supplementary instructions
pvck command is used to detect the consistency of LVM metadata of physical volumes. By default, the first 4 sectors in the physical volume store the LVM volume label. You can use the --labelsector option to specify other locations (for example: during data recovery).
grammar
pvck(options)(parameters)
Options
-d: debug mode;
-v: detailed information mode;
--labelsector: Specify the sector where the LVE volume label is located.
Parameters
Physical volume: Specify the device file corresponding to the physical volume to be checked.
Example
Use the pvck command to check the physical volume /dev/sdb1. Enter the following command at the command line:
pvck -v /dev/sdb1 #Check physical volume metadata
Scanning /dev/sdb1
Found label on /dev/sdb1, sector 1, type=LVM2 001
Found text metadata area: offset=4096, size=192512
Found LVM2 metadata record at offset=125952,
size=70656, offset2=0 size2=0


