{
    "content": [
        {
            "type": "text",
            "text": "# lvresize (man)\n\n## NAME\n\nlvresize - Resize a logical volume\n\n## SYNOPSIS\n\nlvresize optionargs positionargs\n[ optionargs ]\n[ positionargs ]\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\n-A|--autobackup y|n\n--commandprofile String\n--config String\n-d|--debug\n--driverloaded y|n\n-l|--extents [+|-]Number[PERCENT]\n-f|--force\n-h|--help\n--lockopt String\n--longhelp\n-n|--nofsck\n--nolocking\n--nosync\n--noudevsync\n--poolmetadatasize [+]Size[m|UNIT]\n--profile String\n-q|--quiet\n--reportformat basic|json\n-r|--resizefs\n-L|--size [+|-]Size[m|UNIT]\n-i|--stripes Number\n-I|--stripesize Size[k|UNIT]\n-t|--test\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\n-v|--verbose\n--version\n-y|--yes\n\n## DESCRIPTION\n\nlvresize  resizes  an  LV in the same way as lvextend and lvreduce. See lvextend(8) and lvre‐‐\nduce(8) for more information.\n\n## TLDR\n\n> Change the size of a logical volume.\n\n- Change the size of a logical volume to 120 GB:\n  `sudo lvresize {{-L|--size}} 120G {{volume_group}}/{{logical_volume}}`\n- Extend the size of a logical volume as well as the underlying filesystem by 120 GB:\n  `sudo lvresize {{-L|--size}} +120G {{-r|--resizefs}} {{volume_group}}/{{logical_volume}}`\n- Extend the size of a logical volume to 100% of the free physical volume space:\n  `sudo lvresize {{-l|--extents}} 100%FREE {{volume_group}}/{{logical_volume}}`\n- Reduce the size of a logical volume as well as the underlying filesystem by 120 GB:\n  `sudo lvresize {{-L|--size}} -120G {{-r|--resizefs}} {{volume_group}}/{{logical_volume}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **USAGE**\n- **OPTIONS** (19 subsections)\n- **VARIABLES**\n- **ENVIRONMENT VARIABLES**\n- **EXAMPLES** (1 subsections)\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "lvresize",
        "section": "",
        "mode": "man",
        "summary": "lvresize - Resize a logical volume",
        "synopsis": "lvresize optionargs positionargs\n[ optionargs ]\n[ positionargs ]\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\n-A|--autobackup y|n\n--commandprofile String\n--config String\n-d|--debug\n--driverloaded y|n\n-l|--extents [+|-]Number[PERCENT]\n-f|--force\n-h|--help\n--lockopt String\n--longhelp\n-n|--nofsck\n--nolocking\n--nosync\n--noudevsync\n--poolmetadatasize [+]Size[m|UNIT]\n--profile String\n-q|--quiet\n--reportformat basic|json\n-r|--resizefs\n-L|--size [+|-]Size[m|UNIT]\n-i|--stripes Number\n-I|--stripesize Size[k|UNIT]\n-t|--test\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\n-v|--verbose\n--version\n-y|--yes",
        "tldr_summary": "Change the size of a logical volume.",
        "tldr_examples": [
            {
                "description": "Change the size of a logical volume to 120 GB",
                "command": "sudo lvresize {{-L|--size}} 120G {{volume_group}}/{{logical_volume}}"
            },
            {
                "description": "Extend the size of a logical volume as well as the underlying filesystem by 120 GB",
                "command": "sudo lvresize {{-L|--size}} +120G {{-r|--resizefs}} {{volume_group}}/{{logical_volume}}"
            },
            {
                "description": "Extend the size of a logical volume to 100% of the free physical volume space",
                "command": "sudo lvresize {{-l|--extents}} 100%FREE {{volume_group}}/{{logical_volume}}"
            },
            {
                "description": "Reduce the size of a logical volume as well as the underlying filesystem by 120 GB",
                "command": "sudo lvresize {{-L|--size}} -120G {{-r|--resizefs}} {{volume_group}}/{{logical_volume}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-A",
                "long": "--autobackup",
                "arg": null,
                "description": "Specifies if metadata should be backed up automatically after a change. Enabling this is strongly advised! See vgcfgbackup(8) for more information. --commandprofile String The command profile to use for command configuration. See lvm.conf(5) for more infor‐ mation about profiles. --config String 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 lvm.conf(5) for more information about config."
            },
            {
                "flag": "-d",
                "long": "--debug",
                "arg": null,
                "description": "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). --driverloaded y|n If set to no, the command will not attempt to use device-mapper. For testing and de‐ bugging."
            },
            {
                "flag": "-l",
                "long": "--extents",
                "arg": null,
                "description": "Specifies the new size of the LV in logical extents. The --size and --extents options are alternate methods of specifying size. The total number of physical extents used will be greater when redundant data is needed for RAID levels. An alternate syntax allows the size to be determined indirectly as a percentage of the size of a related VG, LV, or set of PVs. The suffix %VG denotes the total size of the VG, the suffix %FREE the remaining free space in the VG, and the suffix %PVS the free space in the specified PVs. For a snapshot, the size can be expressed as a percentage of the total size of the origin LV with the suffix %ORIGIN (100%ORIGIN provides space for the whole origin). When expressed as a percentage, the size defines an upper limit for the num‐ ber of logical extents in the new LV. The precise number of logical extents in the new LV is not determined until the command has completed. When the plus + or minus - pre‐ fix is used, the value is not an absolute size, but is relative and added or sub‐ tracted from the current size."
            },
            {
                "flag": "-f",
                "long": "--force",
                "arg": null,
                "description": "Override various checks, confirmations and protections. Use with extreme caution."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display help text. --lockopt String Used to pass options for special cases to lvmlockd. See lvmlockd(8) for more informa‐ tion."
            },
            {
                "flag": "",
                "long": "--longhelp",
                "arg": null,
                "description": "Display long help text."
            },
            {
                "flag": "-n",
                "long": "--nofsck",
                "arg": null,
                "description": "Do not perform fsck before resizing filesystem when filesystem requires it. You may need to use --force to proceed with this option."
            },
            {
                "flag": "",
                "long": "--nolocking",
                "arg": null,
                "description": "Disable locking."
            },
            {
                "flag": "",
                "long": "--nosync",
                "arg": null,
                "description": "Causes the creation of mirror, raid1, raid4, raid5 and raid10 to skip the initial syn‐ chronization. In case of mirror, raid1 and raid10, any data written afterwards will be mirrored, but the original contents will not be copied. In case of raid4 and raid5, no parity blocks will be written, though any data written afterwards will cause parity blocks to be stored. This is useful for skipping a potentially long and resource in‐ tensive initial sync of an empty mirror/raid1/raid4/raid5 and raid10 LV. This option is not valid for raid6, because raid6 relies on proper parity (P and Q Syndromes) be‐ ing created during initial synchronization in order to reconstruct proper user date in case of device failures. raid0 and raid0meta do not provide any data copies or par‐ ity support and thus do not support initial synchronization."
            },
            {
                "flag": "",
                "long": "--noudevsync",
                "arg": null,
                "description": "Disables udev synchronisation. The process will not wait for notification from udev. It will continue irrespective of any possible udev processing in the background. Only use this if udev is not running or has rules that ignore the devices LVM creates. --poolmetadatasize [+]Size[m|UNIT] Specifies the new size of the pool metadata LV. The plus prefix + can be used, in which case the value is added to the current size. --profile String An alias for --commandprofile or --metadataprofile, depending on the command."
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Suppress output and log messages. Overrides --debug and --verbose. 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 re‐ port/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 lvmre‐‐ port(7) for more information."
            },
            {
                "flag": "-r",
                "long": "--resizefs",
                "arg": null,
                "description": "Resize underlying filesystem together with the LV using fsadm(8)."
            },
            {
                "flag": "-L",
                "long": "--size",
                "arg": null,
                "description": "Specifies the new size of the LV. The --size and --extents options are alternate methods of specifying size. The total number of physical extents used will be greater when redundant data is needed for RAID levels. When the plus + or minus - prefix is used, the value is not an absolute size, but is relative and added or subtracted from the current size."
            },
            {
                "flag": "-i",
                "long": "--stripes",
                "arg": null,
                "description": "Specifies the number of stripes in a striped LV. This is the number of PVs (devices) that a striped LV is spread across. Data that appears sequential in the LV is spread across multiple devices in units of the stripe size (see --stripesize). This does not change existing allocated space, but only applies to space being allocated by the com‐ mand. When creating a RAID 4/5/6 LV, this number does not include the extra devices that are required for parity. The largest number depends on the RAID type (raid0: 64, raid10: 32, raid4/5: 63, raid6: 62), and when unspecified, the default depends on the RAID type (raid0: 2, raid10: 2, raid4/5: 3, raid6: 5.) To stripe a new raid LV across all PVs by default, see lvm.conf allocation/raidstripealldevices."
            },
            {
                "flag": "-I",
                "long": "--stripesize",
                "arg": null,
                "description": "The amount of data that is written to one device before moving to the next in a striped LV."
            },
            {
                "flag": "-t",
                "long": "--test",
                "arg": null,
                "description": "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 read‐ ing back metadata it believes has changed but hasn't. --type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool The LV type, also known as \"segment type\" or \"segtype\". See usage descriptions for the specific ways to use these types. For more information about redundancy and per‐ formance (raid<N>, mirror, striped, linear) see lvmraid(7). For thin provisioning (thin, thin-pool) see lvmthin(7). For performance caching (cache, cache-pool) see lvmcache(7). For copy-on-write snapshots (snapshot) see usage definitions. For VDO (vdo) see lvmvdo(7). Several commands omit an explicit type option because the type is inferred from other options or shortcuts (e.g. --stripes, --mirrors, --snapshot, --virtualsize, --thin, --cache, --vdo). Use inferred types with care because it can lead to unexpected results."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Display version information."
            },
            {
                "flag": "-y",
                "long": "--yes",
                "arg": null,
                "description": "Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic no, see -qq.)"
            }
        ],
        "examples": [
            "Extend an LV by 16MB using specific physical extents:"
        ],
        "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": "can",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/can/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": "vgconvert",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgconvert/8/json"
            },
            {
                "name": "vgdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgdisplay/8/json"
            },
            {
                "name": "export",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/export/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": "vgimportclone",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgimportclone/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": "move",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/move/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": "lvreduce",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvreduce/8/json"
            },
            {
                "name": "lvremove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvremove/8/json"
            },
            {
                "name": "name",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/name/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": "blkdeactivate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/blkdeactivate/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": "lvmdbusd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmdbusd/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": 33,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "USAGE",
                "lines": 53,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 13,
                "subsections": [
                    {
                        "name": "-A --autobackup",
                        "lines": 12,
                        "flag": "-A",
                        "long": "--autobackup"
                    },
                    {
                        "name": "-d --debug",
                        "lines": 7,
                        "flag": "-d",
                        "long": "--debug"
                    },
                    {
                        "name": "-l --extents -",
                        "lines": 14,
                        "flag": "-l",
                        "long": "--extents"
                    },
                    {
                        "name": "-f --force",
                        "lines": 2,
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-h --help",
                        "lines": 6,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--longhelp",
                        "lines": 2,
                        "long": "--longhelp"
                    },
                    {
                        "name": "-n --nofsck",
                        "lines": 3,
                        "flag": "-n",
                        "long": "--nofsck"
                    },
                    {
                        "name": "--nolocking",
                        "lines": 2,
                        "long": "--nolocking"
                    },
                    {
                        "name": "--nosync",
                        "lines": 11,
                        "long": "--nosync"
                    },
                    {
                        "name": "--noudevsync",
                        "lines": 11,
                        "long": "--noudevsync"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 10,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-r --resizefs",
                        "lines": 2,
                        "flag": "-r",
                        "long": "--resizefs"
                    },
                    {
                        "name": "-L --size -",
                        "lines": 6,
                        "flag": "-L",
                        "long": "--size"
                    },
                    {
                        "name": "-i --stripes",
                        "lines": 10,
                        "flag": "-i",
                        "long": "--stripes"
                    },
                    {
                        "name": "-I --stripesize",
                        "lines": 3,
                        "flag": "-I",
                        "long": "--stripesize"
                    },
                    {
                        "name": "-t --test",
                        "lines": 16,
                        "flag": "-t",
                        "long": "--test"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "-y --yes",
                        "lines": 3,
                        "flag": "-y",
                        "long": "--yes"
                    }
                ]
            },
            {
                "name": "VARIABLES",
                "lines": 25,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "lvresize -L+16M vg1/lv1 /dev/sda:0-1 /dev/sdb:0-1",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 21,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "lvresize - Resize a logical volume\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "lvresize optionargs positionargs\n[ optionargs ]\n[ positionargs ]\n\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\n-A|--autobackup y|n\n--commandprofile String\n--config String\n-d|--debug\n--driverloaded y|n\n-l|--extents [+|-]Number[PERCENT]\n-f|--force\n-h|--help\n--lockopt String\n--longhelp\n-n|--nofsck\n--nolocking\n--nosync\n--noudevsync\n--poolmetadatasize [+]Size[m|UNIT]\n--profile String\n-q|--quiet\n--reportformat basic|json\n-r|--resizefs\n-L|--size [+|-]Size[m|UNIT]\n-i|--stripes Number\n-I|--stripesize Size[k|UNIT]\n-t|--test\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\n-v|--verbose\n--version\n-y|--yes\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "lvresize  resizes  an  LV in the same way as lvextend and lvreduce. See lvextend(8) and lvre‐‐\nduce(8) for more information.\n\nIn the usage section below, --size Size can be replaced with --extents Number.  See both  de‐\nscriptions the options section.\n",
                "subsections": []
            },
            "USAGE": {
                "content": "Resize an LV by a specified size.\n\nlvresize -L|--size [+|-]Size[m|UNIT] LV\n[ -l|--extents [+|-]Number[PERCENT] ]\n[ -r|--resizefs ]\n[    --poolmetadatasize [+]Size[m|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nResize an LV by specified PV extents.\n\nlvresize LV PV ...\n[ -r|--resizefs ]\n[ COMMONOPTIONS ]\n-\n\nResize a pool metadata SubLV by a specified size.\n\nlvresize --poolmetadatasize [+]Size[m|UNIT] LVthinpool\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCommon options for command:\n[ -A|--autobackup y|n ]\n[ -f|--force ]\n[ -n|--nofsck ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --alloc contiguous|cling|clingbytags|normal|anywhere|inherit ]\n[    --nosync ]\n[    --noudevsync ]\n[    --reportformat basic|json ]\n[    --type linear|striped|snapshot|mir‐‐\nror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool ]\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": "--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\nDetermines the allocation policy when a command needs to allocate Physical Extents\n(PEs) from the VG. Each VG and LV has an allocation policy which can be changed with\nvgchange/lvchange, or overriden on the command line.  normal applies common sense\nrules such as not placing parallel stripes on the same PV.  inherit applies the VG\npolicy to an LV.  contiguous requires new PEs be placed adjacent to existing PEs.\ncling places new PEs on the same PV as existing PEs in the same stripe of the LV.  If\nthere are sufficient PEs for an allocation, but normal does not use them, anywhere\nwill use them even if it reduces performance, e.g. by placing two stripes on the same\nPV.  Optional positional PV args on the command line can also be used to limit which\nPVs the command will use for allocation.  See lvm(8) for more information about allo‐\ncation.\n",
                "subsections": [
                    {
                        "name": "-A --autobackup",
                        "content": "Specifies if metadata should be backed up automatically after a change.  Enabling this\nis strongly advised! See vgcfgbackup(8) for more information.\n\n--commandprofile String\nThe command profile to use for command configuration.  See lvm.conf(5) for more infor‐\nmation about profiles.\n\n--config String\nConfig settings for the command. These override lvm.conf settings.  The String arg\nuses the same format as lvm.conf, or may use section/field syntax.  See lvm.conf(5)\nfor more information about config.\n",
                        "flag": "-A",
                        "long": "--autobackup"
                    },
                    {
                        "name": "-d --debug",
                        "content": "Set debug level. Repeat from 1 to 6 times to increase the detail of messages sent to\nthe 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.  For testing and de‐\nbugging.\n",
                        "flag": "-d",
                        "long": "--debug"
                    },
                    {
                        "name": "-l --extents -",
                        "content": "Specifies the new size of the LV in logical extents.  The --size and --extents options\nare alternate methods of specifying size.  The total number of physical extents used\nwill be greater when redundant data is needed for RAID levels.  An alternate syntax\nallows the size to be determined indirectly as a percentage of the size of a related\nVG, LV, or set of PVs. The suffix %VG denotes the total size of the VG, the suffix\n%FREE the remaining free space in the VG, and the suffix %PVS the free space in the\nspecified PVs.  For a snapshot, the size can be expressed as a percentage of the total\nsize of the origin LV with the suffix %ORIGIN (100%ORIGIN provides space for the whole\norigin).  When expressed as a percentage, the size defines an upper limit for the num‐\nber of logical extents in the new LV. The precise number of logical extents in the new\nLV is not determined until the command has completed.  When the plus + or minus - pre‐\nfix is used, the value is not an absolute size, but is relative and added or sub‐\ntracted from the current size.\n",
                        "flag": "-l",
                        "long": "--extents"
                    },
                    {
                        "name": "-f --force",
                        "content": "Override various checks, confirmations and protections.  Use with extreme caution.\n",
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-h --help",
                        "content": "Display help text.\n\n--lockopt String\nUsed to pass options for special cases to lvmlockd.  See lvmlockd(8) for more informa‐\ntion.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--longhelp",
                        "content": "Display long help text.\n",
                        "long": "--longhelp"
                    },
                    {
                        "name": "-n --nofsck",
                        "content": "Do not perform fsck before resizing filesystem when filesystem requires it. You may\nneed to use --force to proceed with this option.\n",
                        "flag": "-n",
                        "long": "--nofsck"
                    },
                    {
                        "name": "--nolocking",
                        "content": "Disable locking.\n",
                        "long": "--nolocking"
                    },
                    {
                        "name": "--nosync",
                        "content": "Causes the creation of mirror, raid1, raid4, raid5 and raid10 to skip the initial syn‐\nchronization. In case of mirror, raid1 and raid10, any data written afterwards will be\nmirrored, but the original contents will not be copied. In case of raid4 and raid5, no\nparity blocks will be written, though any data written afterwards will cause parity\nblocks to be stored.  This is useful for skipping a potentially long and resource in‐\ntensive initial sync of an empty mirror/raid1/raid4/raid5 and raid10 LV.  This option\nis not valid for raid6, because raid6 relies on proper parity (P and Q Syndromes) be‐\ning created during initial synchronization in order to reconstruct proper user date in\ncase of device failures.  raid0 and raid0meta do not provide any data copies or par‐\nity support and thus do not support initial synchronization.\n",
                        "long": "--nosync"
                    },
                    {
                        "name": "--noudevsync",
                        "content": "Disables udev synchronisation. The process will not wait for notification from udev.\nIt will continue irrespective of any possible udev processing in the background. Only\nuse this if udev is not running or has rules that ignore the devices LVM creates.\n\n--poolmetadatasize [+]Size[m|UNIT]\nSpecifies the new size of the pool metadata LV.  The plus prefix + can be used, in\nwhich case the value is added to the current size.\n\n--profile String\nAn alias for --commandprofile or --metadataprofile, depending on the command.\n",
                        "long": "--noudevsync"
                    },
                    {
                        "name": "-q --quiet",
                        "content": "Suppress output and log messages. Overrides --debug and --verbose.  Repeat once to\nalso suppress any prompts with answer 'no'.\n\n--reportformat basic|json\nOverrides current output format for reports which is defined globally by the re‐\nport/outputformat setting in lvm.conf.  basic is the original format with columns and\nrows.  If there is more than one report per command, each report is prefixed with the\nreport name for identification. json produces report output in JSON format. See lvmre‐‐\nport(7) for more information.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-r --resizefs",
                        "content": "Resize underlying filesystem together with the LV using fsadm(8).\n",
                        "flag": "-r",
                        "long": "--resizefs"
                    },
                    {
                        "name": "-L --size -",
                        "content": "Specifies the new size of the LV.  The --size and --extents options are alternate\nmethods of specifying size.  The total number of physical extents used will be greater\nwhen redundant data is needed for RAID levels.  When the plus + or minus - prefix is\nused, the value is not an absolute size, but is relative and added or subtracted from\nthe current size.\n",
                        "flag": "-L",
                        "long": "--size"
                    },
                    {
                        "name": "-i --stripes",
                        "content": "Specifies the number of stripes in a striped LV. This is the number of PVs (devices)\nthat a striped LV is spread across. Data that appears sequential in the LV is spread\nacross multiple devices in units of the stripe size (see --stripesize). This does not\nchange existing allocated space, but only applies to space being allocated by the com‐\nmand.  When creating a RAID 4/5/6 LV, this number does not include the extra devices\nthat are required for parity. The largest number depends on the RAID type (raid0: 64,\nraid10: 32, raid4/5: 63, raid6: 62), and when unspecified, the default depends on the\nRAID type (raid0: 2, raid10: 2, raid4/5: 3, raid6: 5.)  To stripe a new raid LV across\nall PVs by default, see lvm.conf allocation/raidstripealldevices.\n",
                        "flag": "-i",
                        "long": "--stripes"
                    },
                    {
                        "name": "-I --stripesize",
                        "content": "The amount of data that is written to one device before moving to the next in a\nstriped LV.\n",
                        "flag": "-I",
                        "long": "--stripesize"
                    },
                    {
                        "name": "-t --test",
                        "content": "Run in test mode. Commands will not update metadata.  This is implemented by disabling\nall metadata writing but nevertheless returning success to the calling function. This\nmay lead to unusual error messages in multi-stage operations if a tool relies on read‐\ning back metadata it believes has changed but hasn't.\n\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\nThe LV type, also known as \"segment type\" or \"segtype\".  See usage descriptions for\nthe specific ways to use these types.  For more information about redundancy and per‐\nformance (raid<N>, mirror, striped, linear) see lvmraid(7).  For thin provisioning\n(thin, thin-pool) see lvmthin(7).  For performance caching (cache, cache-pool) see\nlvmcache(7).  For copy-on-write snapshots (snapshot) see usage definitions.  For VDO\n(vdo) see lvmvdo(7).  Several commands omit an explicit type option because the type\nis inferred from other options or shortcuts (e.g. --stripes, --mirrors, --snapshot,\n--virtualsize, --thin, --cache, --vdo).  Use inferred types with care because it can\nlead to unexpected results.\n",
                        "flag": "-t",
                        "long": "--test"
                    },
                    {
                        "name": "-v --verbose",
                        "content": "Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to\nstdout and stderr.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "--version",
                        "content": "Display version information.\n",
                        "long": "--version"
                    },
                    {
                        "name": "-y --yes",
                        "content": "Do not prompt for confirmation interactively but always assume the answer yes. Use\nwith extreme caution.  (For automatic no, see -qq.)\n",
                        "flag": "-y",
                        "long": "--yes"
                    }
                ]
            },
            "VARIABLES": {
                "content": "LV\nLogical  Volume name.  See lvm(8) for valid names.  An LV positional arg generally in‐\ncludes the VG name and LV name, e.g. VG/LV.  LV followed by <type> indicates that  an\nLV of the given type is required. (raid represents raid<N> type)\n\nPV\nPhysical  Volume  name,  a device path under /dev.  For commands managing physical ex‐\ntents, a PV positional arg generally accepts a suffix indicating a range (or  multiple\nranges)  of  physical  extents (PEs). When the first PE is omitted, it defaults to the\nstart of the device, and when the last PE is omitted it defaults to  end.   Start  and\nend  range  (inclusive):  PV[:PE-PE]...   Start  and  length  range (counting from 0):\nPV[:PE+PE]...\n\nString\nSee the option description for information about the string content.\n\nSize[UNIT]\nSize is an input number that accepts an optional unit.  Input units are always treated\nas base two values, regardless of capitalization, e.g. 'k' and 'K' both refer to 1024.\nThe default input unit is specified by letter, followed  by  |UNIT.   UNIT  represents\nother  possible  input  units:  bBsSkKmMgGtTpPeE.  b|B is bytes, s|S is sectors of 512\nbytes, k|K is KiB, m|M is MiB, g|G is GiB, t|T is TiB, p|P is PiB, e|E is EiB.   (This\nshould  not  be  confused  with the output control --units, where capital letters mean\nmultiple of 1000.)\n",
                "subsections": []
            },
            "ENVIRONMENT VARIABLES": {
                "content": "See lvm(8) for information about environment variables used by lvm.  For example, LVMVGNAME\ncan generally be substituted for a required VG parameter.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "Extend an LV by 16MB using specific physical extents:",
                "subsections": [
                    {
                        "name": "lvresize -L+16M vg1/lv1 /dev/sda:0-1 /dev/sdb:0-1",
                        "content": ""
                    }
                ]
            },
            "SEE ALSO": {
                "content": "lvm(8) lvm.conf(5) lvmconfig(8)\n\npvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8) pvmove(8) pvremove(8) pvresize(8) pvs(8) pvs‐‐\ncan(8)\n\nvgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8) vgcreate(8) vgconvert(8) vgdisplay(8)  vg‐‐\nexport(8)  vgextend(8) vgimport(8) vgimportclone(8) vgmerge(8) vgmknodes(8) vgreduce(8) vgre‐‐\nmove(8) vgrename(8) vgs(8) vgscan(8) vgsplit(8)\n\nlvcreate(8) lvchange(8) lvconvert(8) lvdisplay(8) lvextend(8) lvreduce(8)  lvremove(8)  lvre‐‐\nname(8) lvresize(8) lvs(8) lvscan(8)\n\nlvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeactivate(8) lvmdump(8)\n\ndmeventd(8) lvmpolld(8) lvmlockd(8) lvmlockctl(8) cmirrord(8) lvmdbusd(8)\n\nlvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)\n\n\n\nRed Hat, Inc.                     LVM TOOLS 2.03.11(2) (2021-01-08)                      LVRESIZE(8)",
                "subsections": []
            }
        }
    }
}