Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-25 00:20:51 +00:00
parent 2916f01228
commit 00aae9d884
4 changed files with 54 additions and 4 deletions

View File

@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
- Change the size of a logical volume to 120 GB:
`lvresize --size {{120G}} {{volume_group}}/{{logical_volume}}`
`lvresize {{[-L|--size]}} 120G {{volume_group}}/{{logical_volume}}`
- Extend the size of a logical volume as well as the underlying filesystem by 120 GB:
`lvresize --size +{{120G}} --resizefs {{volume_group}}/{{logical_volume}}`
`lvresize {{[-L|--size]}} +120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`
- Extend the size of a logical volume to 100% of the free physical volume space:
`lvresize --size {{100}}%FREE {{volume_group}}/{{logical_volume}}`
`lvresize {{[-l|--extents]}} 100%FREE {{volume_group}}/{{logical_volume}}`
- Reduce the size of a logical volume as well as the underlying filesystem by 120 GB:
`lvresize --size -{{120G}} --resizefs {{volume_group}}/{{logical_volume}}`
`lvresize {{[-L|--size]}} -120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`