LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lvconvert

converts or modifies the type, redundancy, or state of logical volumes

TLDR

Convert to RAID1
$ sudo lvconvert --type raid1 -m 1 /dev/vg_name/lv_name
copy
Remove mirroring (convert to linear)
$ sudo lvconvert -m 0 /dev/vg_name/lv_name
copy
Merge snapshot into origin
$ sudo lvconvert --merge /dev/vg_name/snapshot_lv
copy
Repair degraded RAID
$ sudo lvconvert --repair /dev/vg_name/lv_name
copy
Convert to thin pool
$ sudo lvconvert --type thin-pool --poolmetadata /dev/vg_name/meta_lv /dev/vg_name/pool_lv
copy

SYNOPSIS

lvconvert [options] vg/lv

DESCRIPTION

lvconvert converts or modifies the type, redundancy, or state of logical volumes. It can add/remove mirrors, convert between linear and RAID, merge snapshots, and convert to thin pools.

PARAMETERS

--type TYPE

Convert to specified type (raid1, linear, thin-pool, cache-pool)
-m, --mirrors N
Number of mirrors (0 removes mirroring)
--merge
Merge snapshot back into origin
--repair
Repair degraded RAID volume
--poolmetadata LV
Specify metadata LV for thin pool
--stripes N
Number of stripes for conversion

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

CAVEATS

Requires root privileges. Data migration may take time. Snapshot merge applies on next activation.

SEE ALSO

lvcreate(8), lvchange(8), lvextend(8), lvm(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid