mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 10:53:51 +02:00
lvextend, lvreduce, lvresize: add page (#4239)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
parent
cf27351f6e
commit
6310c08975
3 changed files with 41 additions and 0 deletions
15
pages/linux/lvextend.md
Normal file
15
pages/linux/lvextend.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# lvextend
|
||||
|
||||
> Increase the size of a logical volume.
|
||||
|
||||
- Increase a volume's size to 120GB:
|
||||
|
||||
`lvextend --size {{120G}} {{logical_volume}}`
|
||||
|
||||
- Increase a volume's size by 40GB as well as the underlying filesystem:
|
||||
|
||||
`lvextend --size +{{40G}} -r {{logical_volume}}`
|
||||
|
||||
- Increase a volume's size to 100% of the free phyiscal volume space:
|
||||
|
||||
`lvextend --size {{100}}%FREE {{logical_volume}}`
|
11
pages/linux/lvreduce.md
Normal file
11
pages/linux/lvreduce.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# lvreduce
|
||||
|
||||
> Reduce the size of a logical volume.
|
||||
|
||||
- Reduce a volume's size to 120GB:
|
||||
|
||||
`lvreduce --size {{120G}} {{logical_volume}}`
|
||||
|
||||
- Reduce a volume's size by 40GB as well as the underlying filesystem:
|
||||
|
||||
`lvreduce --size -{{40G}} -r {{logical_volume}}`
|
15
pages/linux/lvresize.md
Normal file
15
pages/linux/lvresize.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# lvresize
|
||||
|
||||
> Change the size of a logical volume.
|
||||
|
||||
- Change a volume's size to 120GB:
|
||||
|
||||
`lvresize -L {{120G}} {{logical_volume}}`
|
||||
|
||||
- Reduce a volume's size by 120GB as well as the underlying filesystem:
|
||||
|
||||
`lvresize --size -{{120G}} -r {{logical_volume}}`
|
||||
|
||||
- Increase a volume's size to 100% of the free phyiscal volume space:
|
||||
|
||||
`lvresize --size {{100}}%FREE {{logical_volume}}`
|
Loading…
Add table
Reference in a new issue