1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

lvextend: fix improper flag usage, add additional example (#16250)

This commit is contained in:
Ben C 2025-04-24 13:32:13 -04:00 committed by GitHub
parent a5833ce758
commit 33ff957538
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,12 +6,16 @@
- Increase a volume's size to 120 GB: - Increase a volume's size to 120 GB:
`lvextend {{[-L|--size]}} {{120G}} {{logical_volume}}` `sudo lvextend {{[-L|--size]}} {{120G}} {{logical_volume}}`
- Increase a volume's size by 40 GB as well as the underlying filesystem: - Increase a volume's size by 40 GB as well as the underlying filesystem:
`lvextend {{[-L|--size]}} +{{40G}} {{[-r|--resizefs]}} {{logical_volume}}` `sudo lvextend {{[-L|--size]}} +{{40G}} {{[-r|--resizefs]}} {{logical_volume}}`
- Increase a volume's size to 100% of the free physical volume space: - Increase a volume's size to 100% of the free physical volume space:
`lvextend {{[-L|--size]}} +{{100}}%FREE {{logical_volume}}` `sudo lvextend {{[-l|--extents]}} +{{100}}%FREE {{logical_volume}}`
- Increase a volume's size to 100% of the free physical volume space and resize the underlying filesystem:
`sudo lvextend {{[-l|--extents]}} +{{100}}%FREE {{[-r|--resizefs]}} {{logical_volume}}`