{
    "content": [
        {
            "type": "text",
            "text": "# PVRESIZE (info)\n\n## NAME\n\npvresize - Resize physical volume(s)\n\n## SYNOPSIS\n\npvresize positionargs\n[ optionargs ]\n\n## DESCRIPTION\n\npvresize  resizes  a PV. The PV may already be in a VG and may have ac-\ntive LVs allocated on it.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **USAGE**\n- **OPTIONS** (3 subsections)\n- **VARIABLES**\n- **ENVIRONMENT VARIABLES**\n- **NOTES**\n- **EXAMPLES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "PVRESIZE",
        "section": "",
        "mode": "info",
        "summary": "pvresize - Resize physical volume(s)",
        "synopsis": "pvresize positionargs\n[ optionargs ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--longhelp",
                "arg": null,
                "description": "Display long help text."
            },
            {
                "flag": "",
                "long": "--nolocking",
                "arg": null,
                "description": "Disable locking. --profile String An alias for --commandprofile or --metadataprofile, depending on the command. -q|--quiet ... Suppress output and log messages. Overrides --debug and --ver- bose. Repeat once to also suppress any prompts with answer 'no'. --reportformat basic|json Overrides current output format for reports which is defined globally by the report/outputformat setting in lvm.conf. basic 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. json produces report output in JSON format. See lvmreport(7) for more information. --setphysicalvolumesize Size[m|UNIT] Overrides the automatically detected size of the PV. Use with care, or prior to reducing the physical size of the device. -t|--test 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 un- usual error messages in multi-stage operations if a tool relies on reading back metadata it believes has changed but hasn't. -v|--verbose ... Set verbose level. Repeat from 1 to 4 times to increase the de- tail of messages sent to stdout and stderr."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Display version information. -y|--yes Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic no, see -qq.)"
            }
        ],
        "examples": [
            "Expand a PV after enlarging the partition.",
            "pvresize /dev/sda1",
            "Shrink  a  PV prior to shrinking the partition (ensure that the PV size",
            "is appropriate for the intended new partition size).",
            "pvresize --setphysicalvolumesize 40G /dev/sda1"
        ],
        "see_also": [
            {
                "name": "lvm",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm/8/json"
            },
            {
                "name": "lvm.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/lvm.conf/5/json"
            },
            {
                "name": "lvmconfig",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmconfig/8/json"
            },
            {
                "name": "pvchange",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvchange/8/json"
            },
            {
                "name": "pvck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvck/8/json"
            },
            {
                "name": "pvcreate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvcreate/8/json"
            },
            {
                "name": "pvdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvdisplay/8/json"
            },
            {
                "name": "pvmove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvmove/8/json"
            },
            {
                "name": "pvremove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvremove/8/json"
            },
            {
                "name": "pvresize",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvresize/8/json"
            },
            {
                "name": "pvs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvs/8/json"
            },
            {
                "name": "pvscan",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvscan/8/json"
            },
            {
                "name": "vgcfgbackup",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgcfgbackup/8/json"
            },
            {
                "name": "vgcfgrestore",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgcfgrestore/8/json"
            },
            {
                "name": "vgchange",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgchange/8/json"
            },
            {
                "name": "vgck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgck/8/json"
            },
            {
                "name": "vgcreate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgcreate/8/json"
            },
            {
                "name": "vert",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vert/8/json"
            },
            {
                "name": "vgdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgdisplay/8/json"
            },
            {
                "name": "vgexport",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgexport/8/json"
            },
            {
                "name": "vgextend",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgextend/8/json"
            },
            {
                "name": "vgimport",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgimport/8/json"
            },
            {
                "name": "clone",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/clone/8/json"
            },
            {
                "name": "vgmerge",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgmerge/8/json"
            },
            {
                "name": "vgmknodes",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgmknodes/8/json"
            },
            {
                "name": "vgreduce",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgreduce/8/json"
            },
            {
                "name": "vgremove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgremove/8/json"
            },
            {
                "name": "vgrename",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgrename/8/json"
            },
            {
                "name": "vgs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgs/8/json"
            },
            {
                "name": "vgscan",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgscan/8/json"
            },
            {
                "name": "vgsplit",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgsplit/8/json"
            },
            {
                "name": "lvcreate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvcreate/8/json"
            },
            {
                "name": "lvchange",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvchange/8/json"
            },
            {
                "name": "lvconvert",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvconvert/8/json"
            },
            {
                "name": "lvdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvdisplay/8/json"
            },
            {
                "name": "lvextend",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvextend/8/json"
            },
            {
                "name": "duce",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/duce/8/json"
            },
            {
                "name": "lvremove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvremove/8/json"
            },
            {
                "name": "lvrename",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvrename/8/json"
            },
            {
                "name": "lvresize",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvresize/8/json"
            },
            {
                "name": "lvs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvs/8/json"
            },
            {
                "name": "lvscan",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvscan/8/json"
            },
            {
                "name": "lvm-fullreport",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm-fullreport/8/json"
            },
            {
                "name": "lvm-lvpoll",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm-lvpoll/8/json"
            },
            {
                "name": "lvm2-activation-generator",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm2-activation-generator/8/json"
            },
            {
                "name": "vate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vate/8/json"
            },
            {
                "name": "lvmdump",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmdump/8/json"
            },
            {
                "name": "dmeventd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/dmeventd/8/json"
            },
            {
                "name": "lvmpolld",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmpolld/8/json"
            },
            {
                "name": "lvmlockd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmlockd/8/json"
            },
            {
                "name": "lvmlockctl",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmlockctl/8/json"
            },
            {
                "name": "cmirrord",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/cmirrord/8/json"
            },
            {
                "name": "busd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/busd/8/json"
            },
            {
                "name": "lvmsystemid",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmsystemid/7/json"
            },
            {
                "name": "lvmreport",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmreport/7/json"
            },
            {
                "name": "lvmraid",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmraid/7/json"
            },
            {
                "name": "lvmthin",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmthin/7/json"
            },
            {
                "name": "lvmcache",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmcache/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "USAGE",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 25,
                "subsections": [
                    {
                        "name": "--longhelp",
                        "lines": 2,
                        "long": "--longhelp"
                    },
                    {
                        "name": "--nolocking",
                        "lines": 34,
                        "long": "--nolocking"
                    },
                    {
                        "name": "--version",
                        "lines": 7,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "VARIABLES",
                "lines": 24,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 22,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pvresize - Resize physical volume(s)\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pvresize positionargs\n[ optionargs ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "pvresize  resizes  a PV. The PV may already be in a VG and may have ac-\ntive LVs allocated on it.\n",
                "subsections": []
            },
            "USAGE": {
                "content": "pvresize PV ...\n[    --setphysicalvolumesize Size[m|UNIT] ]\n[    --reportformat basic|json ]\n[ COMMONOPTIONS ]\n\nCommon options for lvm:\n[ -d|--debug ]\n[ -h|--help ]\n[ -q|--quiet ]\n[ -t|--test ]\n[ -v|--verbose ]\n[ -y|--yes ]\n[    --commandprofile String ]\n[    --config String ]\n[    --driverloaded y|n ]\n[    --lockopt String ]\n[    --longhelp ]\n[    --nolocking ]\n[    --profile String ]\n[    --version ]\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--commandprofile String\nThe command profile to use for command configuration.  See\nlvm.conf(5) for more information about profiles.\n\n--config String\nConfig settings for the command. These override lvm.conf set-\ntings.  The String arg uses the same format as lvm.conf, or may\nuse section/field syntax.  See lvm.conf(5) for more information\nabout config.\n\n-d|--debug ...\nSet debug level. Repeat from 1 to 6 times to increase the detail\nof messages sent to the log file and/or syslog (if configured).\n\n--driverloaded y|n\nIf set to no, the command will not attempt to use device-mapper.\nFor testing and debugging.\n\n-h|--help\nDisplay help text.\n\n--lockopt String\nUsed to pass options for special cases to lvmlockd.  See lvm-\nlockd(8) for more information.\n",
                "subsections": [
                    {
                        "name": "--longhelp",
                        "content": "Display long help text.\n",
                        "long": "--longhelp"
                    },
                    {
                        "name": "--nolocking",
                        "content": "Disable locking.\n\n--profile String\nAn alias for --commandprofile or --metadataprofile, depending on\nthe command.\n\n-q|--quiet ...\nSuppress output and log messages. Overrides --debug and --ver-\nbose.  Repeat once to also suppress any prompts with answer\n'no'.\n\n--reportformat basic|json\nOverrides current output format for reports which is defined\nglobally by the report/outputformat setting in lvm.conf.  basic\nis the original format with columns and rows.  If there is more\nthan one report per command, each report is prefixed with the\nreport name for identification. json produces report output in\nJSON format. See lvmreport(7) for more information.\n\n--setphysicalvolumesize Size[m|UNIT]\nOverrides the automatically detected size of the PV.  Use with\ncare, or prior to reducing the physical size of the device.\n\n-t|--test\nRun in test mode. Commands will not update metadata.  This is\nimplemented by disabling all metadata writing but nevertheless\nreturning success to the calling function. This may lead to un-\nusual error messages in multi-stage operations if a tool relies\non reading back metadata it believes has changed but hasn't.\n\n-v|--verbose ...\nSet verbose level. Repeat from 1 to 4 times to increase the de-\ntail of messages sent to stdout and stderr.\n",
                        "long": "--nolocking"
                    },
                    {
                        "name": "--version",
                        "content": "Display version information.\n\n-y|--yes\nDo not prompt for confirmation interactively but always assume\nthe answer yes. Use with extreme caution.  (For automatic no,\nsee -qq.)\n",
                        "long": "--version"
                    }
                ]
            },
            "VARIABLES": {
                "content": "PV\nPhysical  Volume  name,  a device path under /dev.  For commands\nmanaging physical extents, a PV positional arg generally accepts\na suffix indicating a range (or multiple ranges) of physical ex-\ntents (PEs). When the first PE is omitted, it  defaults  to  the\nstart of the device, and when the last PE is omitted it defaults\nto end.  Start and end range (inclusive):  PV[:PE-PE]...   Start\nand length range (counting from 0): PV[:PE+PE]...\n\nString\nSee the option description for information about the string con-\ntent.\n\nSize[UNIT]\nSize is an input number that accepts an  optional  unit.   Input\nunits are always treated as base two values, regardless of capi-\ntalization, e.g. 'k' and 'K' both refer to  1024.   The  default\ninput unit is specified by letter, followed by |UNIT.  UNIT rep-\nresents other possible input units:  bBsSkKmMgGtTpPeE.   b|B  is\nbytes,  s|S is sectors of 512 bytes, k|K is KiB, m|M is MiB, g|G\nis GiB, t|T is TiB, p|P is PiB, e|E is EiB.  (This should not be\nconfused  with the output control --units, where capital letters\nmean multiple of 1000.)\n",
                "subsections": []
            },
            "ENVIRONMENT VARIABLES": {
                "content": "See lvm(8) for information about environment  variables  used  by  lvm.\nFor example, LVMVGNAME can generally be substituted for a required VG\nparameter.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "pvresize will refuse to shrink a PV if it has allocated extents  beyond\nthe new end.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "Expand a PV after enlarging the partition.\npvresize /dev/sda1\n\nShrink  a  PV prior to shrinking the partition (ensure that the PV size\nis appropriate for the intended new partition size).\npvresize --setphysicalvolumesize 40G /dev/sda1\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "lvm(8) lvm.conf(5) lvmconfig(8)\n\npvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8)  pvmove(8)  pvremove(8)\npvresize(8) pvs(8) pvscan(8)\n\nvgcfgbackup(8)  vgcfgrestore(8)  vgchange(8) vgck(8) vgcreate(8) vgcon-\nvert(8)  vgdisplay(8)  vgexport(8)  vgextend(8)  vgimport(8)  vgimport-\nclone(8)  vgmerge(8)  vgmknodes(8)  vgreduce(8) vgremove(8) vgrename(8)\nvgs(8) vgscan(8) vgsplit(8)\n\nlvcreate(8) lvchange(8)  lvconvert(8)  lvdisplay(8)  lvextend(8)  lvre-\nduce(8) lvremove(8) lvrename(8) lvresize(8) lvs(8) lvscan(8)\n\nlvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeacti-\nvate(8) lvmdump(8)\n\ndmeventd(8) lvmpolld(8)  lvmlockd(8)  lvmlockctl(8)  cmirrord(8)  lvmd-\nbusd(8)\n\nlvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)\n\nRed Hat, Inc.          LVM TOOLS 2.03.11(2) (2021-01-08)           PVRESIZE(8)",
                "subsections": []
            }
        }
    }
}