{"id":3242,"date":"2022-12-20T16:43:56","date_gmt":"2022-12-20T19:43:56","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pvresize-man8\/"},"modified":"2022-12-20T16:43:56","modified_gmt":"2022-12-20T19:43:56","slug":"pvresize-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pvresize-man8\/","title":{"rendered":"PVRESIZE (man8)"},"content":{"rendered":"<h1 align=\"center\">PVRESIZE<\/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=\"#NOTES\">NOTES<\/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\">pvresize \u2212 Resize physical volume(s)<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvresize<\/b> <i>position_args<\/i> <br \/> [ <i>option_args<\/i> ]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pvresize resizes a PV. The PV may already be in a VG and may have active LVs allocated on it.<\/p>\n<h2>USAGE <a name=\"USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pvresize<\/b> <i>PV<\/i> &#8230;<\/p>\n<p style=\"margin-left:17%;\">[ <b>\u2212\u2212setphysicalvolumesize<\/b> <i>Size<\/i>[m|UNIT] ] <br \/> [ <b>\u2212\u2212reportformat basic<\/b>|<b>json<\/b> ] <br \/> [ COMMON_OPTIONS ]<\/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=\"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=\"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=\"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=\"38%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212reportformat basic<\/b>|<b>json<\/b><\/p>\n<\/td>\n<td width=\"51%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Overrides current output format for reports which is defined globally by the report\/output_format setting in lvm.conf. <b>basic<\/b> is the original format with columns and rows. If there is more than one report per command, each report is prefixed with the report name for identification. <b>json<\/b> produces report output in JSON format. See <b>lvmreport<\/b>(7) 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=\"55%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212setphysicalvolumesize<\/b> <i>Size<\/i>[m|UNIT]<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\">Overrides the automatically detected size of the PV. Use with care, or prior to reducing the physical size of the device.<\/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>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pvresize will refuse to shrink a PV if it has allocated extents beyond the new end.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Expand a PV after enlarging the partition. <b><br \/> pvresize \/dev\/sda1<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Shrink a PV prior to shrinking the partition (ensure that the PV size is appropriate for the intended new partition size). <b><br \/> pvresize \u2212\u2212setphysicalvolumesize 40G \/dev\/sda1<\/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>  pvresize \u2212 Resize physical volume(s) <\/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,379],"class_list":["post-3242","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pvresize"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3242","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=3242"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3242\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}