Skip to content

Commit bd9e5c8

Browse files
lvresize: add vg to positional arg and example extend (#5150)
1 parent 9b64574 commit bd9e5c8

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

pages/linux/lvresize.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
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}}`

0 commit comments

Comments
 (0)