mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 16:46:30 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/linux/lvconvert
Normal file
29
tldr/linux/lvconvert
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lvconvert
|
||||
|
||||
> Convert or modify the type, redundancy, or state of logical volumes.
|
||||
> More information: <https://manned.org/lvconvert>.
|
||||
|
||||
- Convert a linear logical volume to RAID1 (add one mirror: two copies total):
|
||||
|
||||
`lvconvert --type raid1 {{[-m|--mirrors]}} 1 {{/dev/vg_name/lv_name}}`
|
||||
|
||||
- Remove mirroring and convert back to a linear logical volume:
|
||||
|
||||
`lvconvert {{[-m|--mirrors]}} 0 {{/dev/vg_name/lv_name}}`
|
||||
|
||||
- Merge a snapshot back into its origin logical volume (applies on next activation):
|
||||
|
||||
`lvconvert --merge {{/dev/vg_name/snapshot_lv}}`
|
||||
|
||||
- Repair a degraded RAID logical volume:
|
||||
|
||||
`lvconvert --repair {{/dev/vg_name/lv_name}}`
|
||||
|
||||
- Convert an existing logical volume into a thin pool with a separate metadata LV:
|
||||
|
||||
`lvconvert --type thin-pool --poolmetadata {{/dev/vg_name/pool_metadata_lv}} {{/dev/vg_name/pool_lv}}`
|
||||
Reference in New Issue
Block a user