mirror of https://github.com/CrimsonTome/tldr.git
22 lines
711 B
Markdown
22 lines
711 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 --size {{120G}} {{volume_group}}/{{logical_volume}}`
|
|
|
|
- Extend the size of a logical volume as well as the underlying filesystem by 120 GB:
|
|
|
|
`lvresize --size +{{120G}} --resizefs {{volume_group}}/{{logical_volume}}`
|
|
|
|
- Extend the size of a logical volume to 100% of the free physical volume space:
|
|
|
|
`lvresize --size {{100}}%FREE {{volume_group}}/{{logical_volume}}`
|
|
|
|
- Reduce the size of a logical volume as well as the underlying filesystem by 120 GB:
|
|
|
|
`lvresize --size -{{120G}} --resizefs {{volume_group}}/{{logical_volume}}`
|