mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
lvchange: add page (#17933)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user