{"id":3118,"date":"2022-12-20T16:43:32","date_gmt":"2022-12-20T19:43:32","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pvck-man8\/"},"modified":"2022-12-20T16:43:32","modified_gmt":"2022-12-20T19:43:32","slug":"pvck-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pvck-man8\/","title":{"rendered":"PVCK (man8)"},"content":{"rendered":"<h1 align=\"center\">PVCK<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#USAGE\">USAGE<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#VARIABLES\">VARIABLES<\/a><br \/> <a href=\"#ENVIRONMENT VARIABLES\">ENVIRONMENT VARIABLES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pvck \u2212 Check metadata on physical volumes<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvck<\/b> <i>option_args position_args<\/i> <br \/> [ <i>option_args<\/i> ]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212commandprofile<\/b> <i>String<\/i> <b><br \/> \u2212\u2212config<\/b> <i>String<\/i> <b><br \/> \u2212d<\/b>|<b>\u2212\u2212debug <br \/> \u2212\u2212driverloaded y<\/b>|<b>n <br \/> \u2212\u2212dump headers<\/b>|<b>metadata<\/b>|<b>metadata_all<\/b>|<b>metadata_search <br \/> \u2212f<\/b>|<b>\u2212\u2212file<\/b> <i>String<\/i> <b><br \/> \u2212h<\/b>|<b>\u2212\u2212help <br \/> \u2212\u2212labelsector<\/b> <i>Number<\/i> <b><br \/> \u2212\u2212lockopt<\/b> <i>String<\/i> <b><br \/> \u2212\u2212longhelp <br \/> \u2212\u2212nolocking <br \/> \u2212\u2212profile<\/b> <i>String<\/i> <b><br \/> \u2212\u2212[pv]metadatacopies 0<\/b>|<b>1<\/b>|<b>2 <br \/> \u2212q<\/b>|<b>\u2212\u2212quiet <br \/> \u2212\u2212repair <br \/> \u2212\u2212repairtype pv_header<\/b>|<b>metadata<\/b>|<b>label_header <br \/> \u2212\u2212settings<\/b> <i>String<\/i> <b><br \/> \u2212t<\/b>|<b>\u2212\u2212test <br \/> \u2212v<\/b>|<b>\u2212\u2212verbose <br \/> \u2212\u2212version <br \/> \u2212y<\/b>|<b>\u2212\u2212yes<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pvck checks and repairs LVM metadata on PVs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Dump options <br \/> headers<\/b> <br \/> Print LVM on-disk headers and structures: label_header, pv_header, mda_header(s), and metadata text. Warnings are printed if any values are incorrect. The label_header and pv_header both exist in a 512 byte sector, usually the second sector of the device. An mda_header exists in a 512 byte sector at offset 4096 bytes. A second mda_header can optionally exist near the end of the device. The metadata text exists in an area (about 1MiB by default) immediately following the mda_header sector. The metadata text is checked but not printed (see other options).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>metadata<\/b> <br \/> Print the current LVM VG metadata text (or save to a file), using headers to locate the latest copy of metadata. If headers are damaged, metadata may not be found (see metadata_search). Use \u2212\u2212settings &#8220;mda_num=2&#8221; to look in mda2 (the second mda at the end of the device, if used). The metadata text is printed to stdout or saved to a file with \u2212\u2212file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>metadata_all<\/b> <br \/> List all versions of VG metadata found in the metadata area, using headers to locate metadata. Full copies of all metadata are saved to a file with the \u2212\u2212file option. If headers are damaged, metadata may not be found (see metadata_search). Use \u2212\u2212settings &#8220;mda_num=2&#8221; as above. Use \u2212v to include descriptions and dates when listing metadata versions.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>metadata_search<\/b> <br \/> List all versions of VG metadata found in the metadata area, searching common locations so metadata can be found if headers are damaged. Full copies of all metadata are saved to a file with the \u2212\u2212file option. To save one specific version of metadata, use \u2212\u2212settings &#8220;metadata_offset=<offset>&#8220;, where the offset is taken from the list of versions found. Use \u2212v to include descriptions and dates when listing metadata versions.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>metadata_area<\/b> <br \/> Save the entire text metadata area to a file without processing.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Repair options <br \/> \u2212\u2212repair<\/b> <br \/> Repair headers and metadata on a PV. This uses a metadata input file that was extracted by \u2212\u2212dump, or a backup file (from \/etc\/lvm\/backup). When possible, use metadata saved by \u2212\u2212dump from another PV in the same VG (or from a second metadata area on the PV).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There are cases where the PV UUID needs to be specified for the PV being repaired. It is specified using \u2212\u2212settings &#8220;pv_uuid=<UUID>&#8220;. In particular, if the device name for the PV being repaired does not match the previous device name of the PV, then LVM may not be able to determine the correct PV UUID. When headers are damaged on more than one PV in a VG, it is important for the user to determine the correct PV UUID and specify it in \u2212\u2212settings. Otherwise, the wrong PV UUID could be used if device names have been swapped since the metadata was last written.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If a PV has no metadata areas and the pv_header is damaged, then the repair will not know to create no metadata areas during repair. It will by default repair metadata in mda1. To repair with no metadata areas, use -\u2212settings &#8220;mda_offset=0 mda_size=0&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There are cases where repair should be run on all PVs in the VG (using the same metadata file): if all PVs in the VG are damaged, if using an old metadata version, or if a backup file is used instead of raw metadata (taken from pvck dump.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Using \u2212\u2212repair is equivalent to running \u2212\u2212repairtype pv_header followed by -\u2212repairtype metadata.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212repairtype pv_header<\/b> <br \/> Repairs the header sector, containing the pv_header and label_header.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212repairtype metadata<\/b> <br \/> Repairs the mda_header and metadata text. It requires the headers to be correct (having been undamaged or already repaired).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212repairtype label_header<\/b> <br \/> Repairs label_header fields, leaving the pv_header (in the same sector) unchanged. (repairtype pv_header should usually be used instead.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Settings<\/b> <br \/> The \u2212\u2212settings option controls or overrides certain dump or repair behaviors. All offset and size values in settings are in bytes (units are not recognized.) These settings are subject to change.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mda_num=1|2<\/b> <br \/> Select which metadata area should be used. By default the first metadata area (1) is used. mda1 is always located at offset 4096. mda2, at the end of the device, often does not exist (it\u2019s not created by default.) If mda1 is erased, mda2, if it exists, will often still have metadata.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>metadata_offset=<\/b><i>bytes<\/i> <br \/> Select metadata text at this offset. Use with metadata_search to print\/save one instance of metadata text.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mda_offset=<\/b><i>bytes<\/i> <b>mda_size=<\/b><i>bytes<\/i> <br \/> Refers to a metadata area (mda) location and size. An mda includes an mda_header and circular metadata text buffer. Setting this forces metadata_search look for metadata in the given area instead of the standard locations. When set to zero with repair, it indicates no metadata areas should exist.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mda2_offset=<\/b><i>bytes<\/i> <b>mda2_size=<\/b><i>bytes<\/i> <br \/> When repairing a pv_header, this forces a specific offset and size for mda2 that should be recorded in the pv_header.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pv_uuid=<\/b><i>uuid<\/i> <br \/> Specify the PV UUID of the device being repaired. When not specified, repair will attempt to determine the correct PV UUID by matching a device name in the metadata.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>device_size=<\/b><i>bytes<\/i> <b><br \/> data_offset=<\/b><i>bytes<\/i> <br \/> When repairing a pv_header, the device_size, data_offset, and pvid can all be specified directly, in which case these values are not taken from a metadata file (where they usually come from), and the metadata file can be omitted. data_offset is the starting location of the first physical extent (data), which follows the first metadata area.<\/p>\n<h2>USAGE <a name=\"USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Check for metadata on a device<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvck<\/b> <i>PV<\/i> &#8230;<\/p>\n<p style=\"margin-left:17%;\">[ COMMON_OPTIONS ]<\/p>\n<p style=\"margin-left:11%;\">&#8211;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Check and print LVM headers and metadata on a device<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvck \u2212\u2212dump headers<\/b>|<b>metadata<\/b>|<b>metadata_all<\/b>|<b>metadata_search<\/b> <i>PV<\/i><\/p>\n<p style=\"margin-left:17%;\">[ <b>\u2212f<\/b>|<b>\u2212\u2212file<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212settings<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212[pv]metadatacopies 0<\/b>|<b>1<\/b>|<b>2<\/b> ] <br \/> [ COMMON_OPTIONS ]<\/p>\n<p style=\"margin-left:11%;\">&#8211;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Repair LVM headers or metadata on a device<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvck \u2212\u2212repairtype pv_header<\/b>|<b>metadata<\/b>|<b>label_header<\/b> <i>PV<\/i><\/p>\n<p style=\"margin-left:17%;\">[ <b>\u2212f<\/b>|<b>\u2212\u2212file<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212settings<\/b> <i>String<\/i> ] <br \/> [ COMMON_OPTIONS ]<\/p>\n<p style=\"margin-left:11%;\">&#8211;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Repair LVM headers and metadata on a device<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvck \u2212\u2212repair \u2212f<\/b>|<b>\u2212\u2212file<\/b> <i>String PV<\/i><\/p>\n<p style=\"margin-left:17%;\">[ <b>\u2212\u2212settings<\/b> <i>String<\/i> ] <br \/> [ COMMON_OPTIONS ]<\/p>\n<p style=\"margin-left:11%;\">&#8211;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Common options for command:<\/p>\n<p style=\"margin-left:17%;\">[ <b>\u2212\u2212labelsector<\/b> <i>Number<\/i> ]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Common options for lvm:<\/p>\n<p style=\"margin-left:17%;\">[ <b>\u2212d<\/b>|<b>\u2212\u2212debug<\/b> ] <br \/> [ <b>\u2212h<\/b>|<b>\u2212\u2212help<\/b> ] <br \/> [ <b>\u2212q<\/b>|<b>\u2212\u2212quiet<\/b> ] <br \/> [ <b>\u2212t<\/b>|<b>\u2212\u2212test<\/b> ] <br \/> [ <b>\u2212v<\/b>|<b>\u2212\u2212verbose<\/b> ] <br \/> [ <b>\u2212y<\/b>|<b>\u2212\u2212yes<\/b> ] <br \/> [ <b>\u2212\u2212commandprofile<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212config<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212driverloaded y<\/b>|<b>n<\/b> ] <br \/> [ <b>\u2212\u2212lockopt<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212longhelp<\/b> ] <br \/> [ <b>\u2212\u2212nolocking<\/b> ] <br \/> [ <b>\u2212\u2212profile<\/b> <i>String<\/i> ] <br \/> [ <b>\u2212\u2212version<\/b> ]<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212commandprofile<\/b> <i>String<\/i><\/p>\n<\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">The command profile to use for command configuration. See <b>lvm.conf<\/b>(5) for more information about profiles.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212config<\/b> <i>String<\/i><\/p>\n<\/td>\n<td width=\"66%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Config settings for the command. These override lvm.conf settings. The String arg uses the same format as lvm.conf, or may use section\/field syntax. See <b>lvm.conf<\/b>(5) for more information about config.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\"><b>\u2212d<\/b>|<b>\u2212\u2212debug<\/b> &#8230;<\/p>\n<\/td>\n<td width=\"68%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Set debug level. Repeat from 1 to 6 times to increase the detail of messages sent to the log file and\/or syslog (if configured).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"27%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212driverloaded y<\/b>|<b>n<\/b><\/p>\n<\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">If set to no, the command will not attempt to use device-mapper. For testing and debugging.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"80%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212dump headers<\/b>|<b>metadata<\/b>|<b>metadata_all<\/b>|<b>metadata_search<\/b><\/p>\n<\/td>\n<td width=\"9%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Dump headers and metadata from a PV for debugging and repair. Option values include: <b>headers<\/b> to print and check LVM headers, <b>metadata<\/b> to print or save the current text metadata, <b>metadata_all<\/b> to list or save all versions of metadata, <b>metadata_search<\/b> to list or save all versions of metadata, searching standard locations in case of damaged headers, <b>metadata_area<\/b> to save an entire text metadata area to a file.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\"><b>\u2212f<\/b>|<b>\u2212\u2212file<\/b> <i>String<\/i><\/p>\n<\/td>\n<td width=\"65%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Metadata file to read or write.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\"><b>\u2212h<\/b>|<b>\u2212\u2212help<\/b><\/p>\n<\/td>\n<td width=\"75%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Display help text.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212labelsector<\/b> <i>Number<\/i><\/p>\n<\/td>\n<td width=\"58%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">By default the PV is labelled with an LVM2 identifier in its second sector (sector 1). This lets you use a different sector near the start of the disk (between 0 and 3 inclusive \u2212 see LABEL_SCAN_SECTORS in the source). Use with care.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212lockopt<\/b> <i>String<\/i><\/p>\n<\/td>\n<td width=\"65%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Used to pass options for special cases to lvmlockd. See <b>lvmlockd<\/b>(8) for more information.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212longhelp<\/b><\/p>\n<\/td>\n<td width=\"74%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Display long help text.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"17%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212nolocking<\/b><\/p>\n<\/td>\n<td width=\"72%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Disable locking.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212profile<\/b> <i>String<\/i><\/p>\n<\/td>\n<td width=\"65%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">An alias for \u2212\u2212commandprofile or \u2212\u2212metadataprofile, depending on the command.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"40%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212[pv]metadatacopies 0<\/b>|<b>1<\/b>|<b>2<\/b><\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">The number of metadata areas to set aside on a PV for storing VG metadata. When 2, one copy of the VG metadata is stored at the front of the PV and a second copy is stored at the end. When 1, one copy of the VG metadata is stored at the front of the PV. When 0, no copies of the VG metadata are stored on the given PV. This may be useful in VGs containing many PVs (this places limitations on the ability to use vgsplit later.)<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\"><b>\u2212q<\/b>|<b>\u2212\u2212quiet<\/b> &#8230;<\/p>\n<\/td>\n<td width=\"68%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Suppress output and log messages. Overrides \u2212\u2212debug and \u2212\u2212verbose. Repeat once to also suppress any prompts with answer \u2019no\u2019.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212repair<\/b><\/p>\n<\/td>\n<td width=\"77%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Repair headers and metadata on a PV.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"67%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212repairtype pv_header<\/b>|<b>metadata<\/b>|<b>label_header<\/b><\/p>\n<\/td>\n<td width=\"22%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Repair headers and metadata on a PV. See command description.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"26%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212settings<\/b> <i>String<\/i><\/p>\n<\/td>\n<td width=\"63%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Specifies command specific settings in &#8220;Key = Value&#8221; form. Combine multiple settings in quotes, or repeat the settings option for each.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\"><b>\u2212t<\/b>|<b>\u2212\u2212test<\/b><\/p>\n<\/td>\n<td width=\"75%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Run in test mode. Commands will not update metadata. This is implemented by disabling all metadata writing but nevertheless returning success to the calling function. This may lead to unusual error messages in multi-stage operations if a tool relies on reading back metadata it believes has changed but hasn\u2019t.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\"><b>\u2212v<\/b>|<b>\u2212\u2212verbose<\/b> &#8230;<\/p>\n<\/td>\n<td width=\"65%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212version<\/b><\/p>\n<\/td>\n<td width=\"75%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Display version information.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><b>\u2212y<\/b>|<b>\u2212\u2212yes<\/b><\/p>\n<\/td>\n<td width=\"77%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic no, see \u2212qq.)<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<h2>VARIABLES <a name=\"VARIABLES\"><\/a> <\/h2>\n<td width=\"11%\"><\/td>\n<td width=\"3%\"><\/td>\n<td width=\"86%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><i>PV<\/i><\/p>\n<\/td>\n<td width=\"86%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Physical Volume name, a device path under \/dev. For commands managing physical extents, a PV positional arg generally accepts a suffix indicating a range (or multiple ranges) of physical extents (PEs). When the first PE is omitted, it defaults to the start of the device, and when the last PE is omitted it defaults to end. Start and end range (inclusive): <i>PV<\/i>[<b>:<\/b><i>PE<\/i><b>\u2212<\/b><i>PE<\/i>]&#8230; Start and length range (counting from 0): <i>PV<\/i>[<b>:<\/b><i>PE<\/i><b>+<\/b><i>PE<\/i>]&#8230;<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><i>String<\/i><\/p>\n<\/td>\n<td width=\"80%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">See the option description for information about the string content.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\"><i>Size<\/i>[UNIT]<\/p>\n<\/td>\n<td width=\"74%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Size is an input number that accepts an optional unit. Input units are always treated as base two values, regardless of capitalization, e.g. \u2019k\u2019 and \u2019K\u2019 both refer to 1024. The default input unit is specified by letter, followed by |UNIT. UNIT represents other possible input units: <b>bBsSkKmMgGtTpPeE<\/b>. b|B is bytes, s|S is sectors of 512 bytes, k|K is kilobytes, m|M is megabytes, g|G is gigabytes, t|T is terabytes, p|P is petabytes, e|E is exabytes. (This should not be confused with the output control \u2212\u2212units, where capital letters mean multiple of 1000.)<\/p>\n<h2>ENVIRONMENT VARIABLES <a name=\"ENVIRONMENT VARIABLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">See <b>lvm<\/b>(8) for information about environment variables used by lvm. For example, LVM_VG_NAME can generally be substituted for a required VG parameter.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">If the partition table is corrupted or lost on \/dev\/sda, and you suspect there was an LVM partition at approximately 100 MiB, then this area of the disk can be scanned using the <b>\u2212\u2212labelsector<\/b> parameter with a value of 204800 (100 bodies manpages.csv script_extrae_body.sh script.sh usr 1024 bodies manpages.csv script_extrae_body.sh script.sh usr 1024 \/ 512 = 204800). <b><br \/> pvck \u2212\u2212labelsector 204800 \/dev\/sda<\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvm<\/b>(8) <b>lvm.conf<\/b>(5) <b>lvmconfig<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvchange<\/b>(8) <b>pvck<\/b>(8) <b>pvcreate<\/b>(8) <b>pvdisplay<\/b>(8) <b>pvmove<\/b>(8) <b>pvremove<\/b>(8) <b>pvresize<\/b>(8) <b>pvs<\/b>(8) <b>pvscan<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>vgcfgbackup<\/b>(8) <b>vgcfgrestore<\/b>(8) <b>vgchange<\/b>(8) <b>vgck<\/b>(8) <b>vgcreate<\/b>(8) <b>vgconvert<\/b>(8) <b>vgdisplay<\/b>(8) <b>vgexport<\/b>(8) <b>vgextend<\/b>(8) <b>vgimport<\/b>(8) <b>vgimportclone<\/b>(8) <b>vgmerge<\/b>(8) <b>vgmknodes<\/b>(8) <b>vgreduce<\/b>(8) <b>vgremove<\/b>(8) <b>vgrename<\/b>(8) <b>vgs<\/b>(8) <b>vgscan<\/b>(8) <b>vgsplit<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvcreate<\/b>(8) <b>lvchange<\/b>(8) <b>lvconvert<\/b>(8) <b>lvdisplay<\/b>(8) <b>lvextend<\/b>(8) <b>lvreduce<\/b>(8) <b>lvremove<\/b>(8) <b>lvrename<\/b>(8) <b>lvresize<\/b>(8) <b>lvs<\/b>(8) <b>lvscan<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvm-fullreport<\/b>(8) <b>lvm-lvpoll<\/b>(8) <b>lvm2\u2212activation\u2212generator<\/b>(8) <b>blkdeactivate<\/b>(8) <b>lvmdump<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>dmeventd<\/b>(8) <b>lvmpolld<\/b>(8) <b>lvmlockd<\/b>(8) <b>lvmlockctl<\/b>(8) <b>cmirrord<\/b>(8) <b>lvmdbusd<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvmsystemid<\/b>(7) <b>lvmreport<\/b>(7) <b>lvmraid<\/b>(7) <b>lvmthin<\/b>(7) <b>lvmcache<\/b>(7)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pvck \u2212 Check metadata on physical volumes <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,266],"class_list":["post-3118","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pvck"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3118"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3118\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}