mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 09:49:50 +00:00
Update cheatsheets
This commit is contained in:
26
linux/lvresize
Normal file
26
linux/lvresize
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lvresize
|
||||
|
||||
> Change the size of a logical volume.
|
||||
> See also: `lvm`.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/lvresize.8.html>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user