File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# lvresize
22
33> Change the size of a logical volume.
4+ > More information: < https://man7.org/linux/man-pages/man8/lvresize.8.html > .
45
5- - Change a volume's size to 120GB:
6+ - Change the size of a logical volume to 120GB:
67
7- ` lvresize -L {{120G}} {{logical_volume}} `
8+ ` lvresize --size {{120G}} {{volume_group}}/ {{logical_volume}} `
89
9- - Reduce a volume's size by 120GB as well as the underlying filesystem:
10+ - Extend the size of a logical volume as well as the underlying filesystem by 120GB :
1011
11- ` lvresize --size - {{120G}} -r {{logical_volume}} `
12+ ` lvresize --size + {{120G}} --resizefs {{volume_group}}/ {{logical_volume}} `
1213
13- - Increase a volume's size to 100% of the free physical volume space:
14+ - Extend the size of a logical volume to 100% of the free physical volume space:
1415
15- ` lvresize --size {{100}}%FREE {{logical_volume}} `
16+ ` lvresize --size {{100}}%FREE {{volume_group}}/{{logical_volume}} `
17+
18+ - Reduce the size of a logical volume as well as the underlying filesystem by 120GB:
19+
20+ ` lvresize --size -{{120G}} --resizefs {{volume_group}}/{{logical_volume}} `
You can’t perform that action at this time.
0 commit comments