Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-16 00:22:19 +00:00
parent cb2b02c321
commit a3dc1769f5
31 changed files with 139 additions and 93 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 {{[-L|--size]}} 120G {{volume_group}}/{{logical_volume}}`
`sudo 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 {{[-L|--size]}} +120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`
`sudo 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 {{[-l|--extents]}} 100%FREE {{volume_group}}/{{logical_volume}}`
`sudo 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 {{[-L|--size]}} -120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`
`sudo lvresize {{[-L|--size]}} -120G {{[-r|--resizefs]}} {{volume_group}}/{{logical_volume}}`