mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-30 03:34:36 +02:00

* Update lvresize.md * Update lvresize.md * Update pages/linux/lvresize.md Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> * Update pages/linux/lvresize.md Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> * Update pages/linux/lvresize.md Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> * Update pages/linux/lvresize.md Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --------- Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
21 lines
752 B
Markdown
21 lines
752 B
Markdown
# lvresize
|
|
|
|
> Change the size of a logical volume.
|
|
> See also: `lvm`.
|
|
> More information: <https://manned.org/lvresize>.
|
|
|
|
- Change the size of a logical volume to 120 GB:
|
|
|
|
`lvresize {{[-L|--size]}} 120G {{volume_group}}/{{logical_volume}}`
|
|
|
|
- Extend the size of a logical volume as well as the underlying filesystem by 120 GB:
|
|
|
|
`lvresize {{[-L|--size]}} +120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`
|
|
|
|
- Extend the size of a logical volume to 100% of the free physical volume space:
|
|
|
|
`lvresize {{[-l|--extents]}} 100%FREE {{volume_group}}/{{logical_volume}}`
|
|
|
|
- Reduce the size of a logical volume as well as the underlying filesystem by 120 GB:
|
|
|
|
`lvresize {{[-L|--size]}} -120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`
|