Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-04 00:18:21 +00:00
parent 46b75bdb29
commit 7bb915f683
11 changed files with 192 additions and 17 deletions

33
tldr/linux/lvchange Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lvchange
> Change attributes or the activation state of logical volumes.
> More information: <https://manned.org/lvchange>.
- Activate a logical volume:
`lvchange {{[-a|--activate]}} y {{/dev/vg_name/lv_name}}`
- Deactivate a logical volume:
`lvchange {{[-a|--activate]}} n {{/dev/vg_name/lv_name}}`
- Enable autoactivation for a logical volume:
`lvchange {{[-a|--activate]}} ay {{/dev/vg_name/lv_name}}`
- Set a logical volume to read-only (use `rw` for read-write):
`lvchange {{[-p|--permission]}} r {{/dev/vg_name/lv_name}}`
- Skip activation for a logical volume:
`lvchange {{[-k|--setactivationskip]}} y {{/dev/vg_name/lv_name}}`
- Refresh a logical volume using the latest metadata:
`lvchange --refresh {{/dev/vg_name/lv_name}}`