lvextend, lvreduce, lvresize: add page (#4239)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
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}}`
|
Reference in New Issue
Block a user