LVCONVERT(8) (NAME) lvconvert - LVM (SYNOPSIS) lvconvert _ [] _ (DESCRIPTION) lvconvert (LV) (mirror) RAID (thin pool) (cache). . (LV type) (redundancy) (segtype) . : lvs -o name,segtype LV (LV) (device mapper dm) . ( dm) . (sub LV) . . . : lvs -a linear () (stripe) striped . . mirror raid1 (mirroring) . RAID : raid0/raid0_meta raid5 ( raid5_ls) raid6 ( raid6_zr) raid10 ( raid10_near). raid5 raid6 (stripe) (parity) . . raid5 raid6 . RAID (rotate) . ( layouts) / (I/O) RAID . lvmraid(7) . raid5 : (raid5_la) (raid5_ls raid5) (raid5_ra) (raid5_rs) raid5_n . raid6 : (raid6_zr raid6) (raid6_nr) (raid6_nc). n_ RAID ( raid5_n raid6 raid5_n striped/raid0/raid0_meta). raid6 RAID raid5 raid6 : raid6_ls_6 raid6_rs_6 raid6_la_6 raid6_ra_6. raid5 ( raid5_rs raid6_rs_6 ). raid10 ( raid10_near) (sub LVs) . . RAID (stripesize) (stripes) . RAID raid1 striped/raid0/raid0_meta : linear -> raid1 -> raid5_n ( ) -> striped/raid0/raid0_meta. (USAGE) (LV) (linear). lvconvert --type linear LV [ COMMON_OPTIONS ] [ PV ... ] -- (striped). lvconvert --type striped LV [ -I|--stripesize Size[k|UNIT] ] [ -R|--regionsize Size[m|UNIT] ] [ -i|--interval Number ] [ --stripes Number ] [ COMMON_OPTIONS ] [ PV ... ] -- (mirror) ( raid1 ): lvconvert --type mirror LV [ -m|--mirrors [+|-]Number ] [ -I|--stripesize Size[k|UNIT] ] [ -R|--regionsize Size[m|UNIT] ] [ -i|--interval Number ] [ --stripes Number ] [ --mirrorlog core|disk ] [ COMMON_OPTIONS ] [ PV ... ] -- RAID RAID ( RAID raid1 ). lvconvert --type raid LV [ -m|--mirrors [+|-]Number ] [ -I|--stripesize Size[k|UNIT] ] [ -R|--regionsize Size[m|UNIT] ] [ -i|--interval Number ] [ --stripes Number ] [ COMMON_OPTIONS ] [ PV ... ] -- raid1 mirror . lvconvert -m|--mirrors [+|-]Number LV [ -R|--regionsize Size[m|UNIT] ] [ -i|--interval Number ] [ --mirrorlog core|disk ] [ COMMON_OPTIONS ] [ PV ... ] -- raid (stripe). lvconvert --stripes Number LV1 [ -i|--interval Number ] [ -R|--regionsize Size[m|UNIT] ] [ -I|--stripesize Size[k|UNIT] ] [ COMMON_OPTIONS ] [ PV ... ] LV1: raid -- raid (stripe size). lvconvert -I|--stripesize Size[k|UNIT] LV1 [ -i|--interval Number ] [ -R|--regionsize Size[m|UNIT] ] [ COMMON_OPTIONS ] LV1: raid -- raid1 mirror . lvconvert --splitmirrors Number -n|--name LV_new LV1 [ COMMON_OPTIONS ] [ PV ... ] LV1: cache mirror raid1 -- raid1 . lvconvert --splitmirrors Number --trackchanges LV1 [ COMMON_OPTIONS ] [ PV ... ] LV1: cache raid1 -- raid1 . lvconvert --mergemirrors VG|LV1|Tag ... [ COMMON_OPTIONS ] LV1: linear raid -- (thin LV) . lvconvert --type thin --thinpool LV LV1 [ -T|--thin ] [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ --originname LV_new ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped cache raid thin zero error -- . lvconvert --type thin LV1 [ -T|--thin ] [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped cache raid vdo writecache zero error -- (cache) . lvconvert --type cache --cachepool LV LV1 [ -H|--cache ] [ -Z|--zero y|n ] [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ --cachemetadataformat auto|1|2 ] [ --cachemode writethrough|writeback|passthrough ] [ --cachepolicy String ] [ --cachesettings String ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped raid thin thinpool vdo vdopool vdopooldata zero error -- writecache writecache . lvconvert --type writecache --cachevol LV LV1 [ --cachesettings String ] [ COMMON_OPTIONS ] LV1: linear striped raid thinpool -- (cache) . lvconvert --type cache --cachevol LV LV1 [ -H|--cache ] [ -Z|--zero y|n ] [ -c|--chunksize Size[k|UNIT] ] [ --cachemetadataformat auto|1|2 ] [ --cachemode writethrough|writeback|passthrough ] [ --cachepolicy String ] [ --cachesettings String ] [ --poolmetadatasize Size[m|UNIT] ] [ COMMON_OPTIONS ] LV1: linear striped raid thinpool -- writecache . lvconvert --type writecache --cachedevice PV LV1 [ --cachesize Size[m|UNIT] ] [ --cachesettings String ] [ COMMON_OPTIONS ] LV1: linear striped raid thinpool -- (cache) . lvconvert --type cache --cachedevice PV LV1 [ -c|--chunksize Size[k|UNIT] ] [ --cachesize Size[m|UNIT] ] [ --cachesettings String ] [ COMMON_OPTIONS ] LV1: linear striped raid thinpool -- (thin-pool). lvconvert --type thin-pool LV1 [ -I|--stripesize Size[k|UNIT] ] [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ --stripes Number ] [ --discards passdown|nopassdown|ignore ] [ --errorwhenfull y|n ] [ --pooldatavdo y|n ] [ --compression y|n ] [ --deduplication y|n ] [ --vdosettings String ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped cache raid vdo writecache zero error -- (cache-pool). lvconvert --type cache-pool LV1 [ -Z|--zero y|n ] [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ --cachemetadataformat auto|1|2 ] [ --cachemode writethrough|writeback|passthrough ] [ --cachepolicy String ] [ --cachesettings String ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped raid zero error -- vdopool. lvconvert --type vdo-pool LV1 [ -n|--name LV_new ] [ -V|--virtualsize Size[m|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ --compression y|n ] [ --deduplication y|n ] [ --vdosettings String ] [ --metadataprofile String ] [ COMMON_OPTIONS ] LV1: linear striped cache raid -- . lvconvert --splitcache LV1 [ --cachesettings String ] [ COMMON_OPTIONS ] LV1: cache cachepool thinpool vdopool writecache -- (thin LV) . lvconvert --mergethin LV1 ... [ COMMON_OPTIONS ] LV1: thin -- COW . lvconvert --mergesnapshot LV1 ... [ -i|--interval Number ] [ COMMON_OPTIONS ] LV1: snapshot -- COW ( ) ( ) splitsnapshot. lvconvert --type snapshot LV LV1 [ -s|--snapshot ] [ -c|--chunksize Size[k|UNIT] ] [ -Z|--zero y|n ] [ COMMON_OPTIONS ] LV1: linear striped -- PV raid mirror. . . lvconvert --repair LV1 [ -i|--interval Number ] [ -k|--setactivationskip y|n ] [ --usepolicies ] [ --poolmetadataspare y|n ] [ COMMON_OPTIONS ] [ PV ... ] LV1: cache cachepool mirror raid thinpool -- PV raid PV . lvconvert --replace PV LV1 [ COMMON_OPTIONS ] [ PV ... ] LV1: raid -- . lvconvert --startpoll LV1 [ COMMON_OPTIONS ] LV1: mirror raid -- raid. lvconvert --raidintegrity y|n LV1 [ --raidintegritymode String ] [ --raidintegrityblocksize Number ] [ --integritysettings String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: raid -- : [ -b|--background ] [ -f|--force ] [ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] [ --noudevsync ] lvm: [ -d|--debug ] [ -h|--help ] [ -q|--quiet ] [ -t|--test ] [ -v|--verbose ] [ -y|--yes ] [ --commandprofile String ] [ --config String ] [ --devices PV ] [ --devicesfile String ] [ --driverloaded y|n ] [ --journal String ] [ --lockopt String ] [ --longhelp ] [ --nohints ] [ --nolocking ] [ --profile String ] [ --version ] (OPTIONS) --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit (PEs) (VG) . VG LV vgchange/lvchange . normal PV . inherit VG LV . contiguous PE PE . cling PV PE LV . PE normal anywhere ( PV ) . PV PV . lvm(8) . -b|--background (polling) . -H|--cache (cache LV) (cache pool) . --type cache --type cache-pool . LVM lvmcache(7) . --cachedevice PV . --cachemetadataformat auto|1|2 (cache target) . --cachemode writethrough|writeback|passthrough . writeback . writethrough . passthrough . --cachepolicy String . lvmcache(7) . --cachepool LV (cache pool). --cachesettings String dm-cache dm-writecache . 'option=value' 'option1=value option2=value' . lvmcache(7) . --cachesize Size[m|UNIT] . --cachevol LV (cache volume). -c|--chunksize Size[k|UNIT] (chunk size) . . . . --commandprofile String . lvm.conf(5) . --compression y|n VDO . lvmvdo(7) . --config String lvm.conf(5) . String lvm.conf . -d|--debug ... (). . --deduplication y|n (deduplication) VDO . lvmvdo(7) . --devices PV . . --devicesfile String LVM . /etc/lvm/devices/ lvmdevices(8) . --discards passdown|nopassdown|ignore discard : ignore discard . nopassdown . passdown . --driverloaded y|n no device-mapper ( ). --errorwhenfull y|n . yes / no () . -f|--force ... . . -h|--help . --integritysettings String dm-integrity . lvmraid(7) . -i|--interval Number ( ). --journal String systemd lvm.conf. --lockopt String lvmlockd. lvmlockd(8) . --longhelp . --merge --mergethin --mergemirrors --mergesnapshot . --mergemirrors raid1 . --splitmirrors --trackchanges . --mergesnapshot COW . . --mergethin . . --metadataprofile String . lvm.conf(5) . --mirrorlog core|disk "mirror" ( "raid1" ). disk . core ( ). -m|--mirrors [+|-]Number --mirrors 1 . -n|--name String . "lvol#" . --nohints (hints file) PV. PV . --nolocking . . --noudevsync udev. udev . --originname LV (thin LV) . . --pooldatavdo y|n VDO (pool data volume). --poolmetadata LV . --poolmetadatasize Size[m|UNIT] . --poolmetadataspare y|n (spare pool metadata LV) (VG). --profile String --commandprofile --metadataprofile . -q|--quiet ... . --debug --verbose . . --raidintegrity y|n raid dm-integrity. --raidintegrityblocksize Number dm-integrity raid. ( ) . --raidintegritymode String ( journal) (bitmap) . -r|--readahead auto|none|Number (read ahead) . auto . none . -R|--regionsize Size[m|UNIT] raid mirror. lvm.conf(5) activation/raid_region_size . --repair PV raid mirror . lvmraid(7) lvmthin(7) . --replace PV PV raid PV . PV . -k|--setactivationskip y|n (yes) (no) (activation skip) . -s|--snapshot COW --splitsnapshot. --splitcache . . --uncache . --splitmirrors Number raid1 mirror . --name . --splitsnapshot COW . . --startpoll (polling) . --stripes Number (stripes) . . -I|--stripesize Size[k|UNIT] (stripe size) . --swapmetadata . . -t|--test (test). . -T|--thin . --type thin --type thin-pool --virtualsize . lvmthin(7) . --thinpool LV (thin pool LV). --trackchanges --splitmirrors raid1. raid1 . --type linear|striped|snapshot|raid|mirror|thin|thin-pool|vdo|vdo-pool| cache|cache-pool|writecache ( segtype). (raid mirror striped linear) lvmraid(7) . (thin thin-pool) lvmthin(7) . (cache cache-pool) lvmcache(7) . (snapshot) . VDO (vdo) lvmvdo(7) . ( --stripes --mirrors --snapshot --virtualsize --thin --cache). . --uncache . . --splitcache . --usepolicies lvm.conf(5) . --vdopool LV VDO. VDO lvmvdo(7) . --vdosettings String VDO VDO. 'option=value' 'option1=value option2=value' . -v|--verbose ... . stdout stderr . --version . -V|--virtualsize Size[m|UNIT] . lvmthin(7) . -W|--wipesignatures y|n . --yes . -y|--yes (yes) . . -Z|--zero y|n ( ) . . (VARIABLES) VG (Volume Group). lvm(8) . LV (Logical Volume). lvm(8) . LV VG LV VG/LV. LV1 (raid raid ). PV (Physical Volume) /dev . PV ( ) (PE) . PE PE . ( ): PV[:PE-PE]... ( ): PV[:PE+PE]... Tag (Tag). VG LV PV lvm(8) . String . . Size[UNIT] . () 'k' 'K' . |UNIT . UNIT : b|B (bytes) s|S (sectors) k|K (KiB) m|M (MiB) g|G (GiB) t|T (TiB) p|P (PiB) e|E (EiB). ( -\-units .) (ENVIRONMENT VARIABLES) lvm lvm(8) . LVM_VG_NAME VG . (ADVANCED USAGE) . (region size) . lvconvert -R|--regionsize Size[m|UNIT] LV1 [ COMMON_OPTIONS ] LV1: raid -- mirror. lvconvert --mirrorlog core|disk LV1 [ COMMON_OPTIONS ] [ PV ... ] LV1: mirror -- . lvconvert -T|--thin --thinpool LV LV1 [ --type thin ] (implied) [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ --originname LV_new ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped cache raid thin zero error -- LV . lvconvert -T|--thin LV1 [ --type thin ] (implied) [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped cache raid vdo writecache zero error -- . lvconvert -H|--cache --cachepool LV LV1 [ --type cache ] (implied) [ -Z|--zero y|n ] [ -c|--chunksize Size[k|UNIT] ] [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ --cachemetadataformat auto|1|2 ] [ --cachemode writethrough|writeback|passthrough ] [ --cachepolicy String ] [ --cachesettings String ] [ --poolmetadata LV ] [ --poolmetadatasize Size[m|UNIT] ] [ --poolmetadataspare y|n ] [ --metadataprofile String ] [ COMMON_OPTIONS ] [ PV ... ] LV1: linear striped raid thin thinpool vdo vdopool vdopooldata zero error -- (cache) . lvconvert -H|--cache --cachevol LV LV1 [ -Z|--zero y|n ] [ -c|--chunksize Size[k|UNIT] ] [ --cachemetadataformat auto|1|2 ] [ --cachemode writethrough|writeback|passthrough ] [ --cachepolicy String ] [ --cachesettings String ] [ --poolmetadatasize Size[m|UNIT] ] [ COMMON_OPTIONS ] LV1: linear striped raid thinpool -- vdopool. lvconvert --vdopool LV [ --type vdo-pool ] (implied) [ -r|--readahead auto|none|Number ] [ -W|--wipesignatures y|n ] [ -Z|--zero y|n ] [ -n|--name LV_new ] [ -V|--virtualsize Size[m|UNIT] ] [ --compression y|n ] [ --deduplication y|n ] [ --vdosettings String ] [ --metadataprofile String ] [ COMMON_OPTIONS ] -- . lvconvert --uncache LV1 [ --cachesettings String ] [ COMMON_OPTIONS ] LV1: cache thinpool vdopool writecache -- ( ). lvconvert --swapmetadata --poolmetadata LV LV1 [ -c|--chunksize Size[k|UNIT] ] [ COMMON_OPTIONS ] LV1: cachepool thinpool -- ( --mergemirrors ). ( --mergethin ). COW ( --mergesnapshot ). lvconvert --merge VG|LV1|Tag ... [ -i|--interval Number ] [ COMMON_OPTIONS ] LV1: linear striped snapshot raid thin -- COW . lvconvert --splitsnapshot LV1 [ COMMON_OPTIONS ] LV1: snapshot -- COW ( ) ( ) splitsnapshot. lvconvert -s|--snapshot LV LV1 [ --type snapshot ] (implied) [ -c|--chunksize Size[k|UNIT] ] [ -Z|--zero y|n ] [ COMMON_OPTIONS ] LV1: linear striped -- ( --startpoll ) /. lvconvert LV1 [ COMMON_OPTIONS ] LV1: mirror raid -- (NOTES) : lvconvert --thinpool LV1 --poolmetadata LV2 LV1 LV1 . LV1 LV2 ( ). : lvconvert --cachepool LV1 --poolmetadata LV2 LV1 LV1 . LV1 LV2 ( ). (EXAMPLES) : lvconvert --type mirror --mirrors 1 vg/lvol1 RAID1: lvconvert --type raid1 --mirrors 1 vg/lvol1 : lvconvert --mirrorlog core vg/lvol1 : lvconvert --mirrorlog disk vg/lvol1 mirror raid1 : lvconvert --type linear vg/lvol1 mirror raid1 : lvconvert --type raid1 vg/lvol1 PV: lvconvert --mirrors 1 vg/lvol1 /dev/sda:0-15 /dev/sdb:0-15 PV : lvconvert --type linear vg/lvol1 /dev/sda mirror raid1 : lvconvert --splitmirrors 1 --name lv_split vg/lvol1 raid1 raid1 : lvconvert --splitmirrors 1 --trackchanges vg/lvol1 --splitmirrors --trackchanges raid1: lvconvert --mergemirrors vg/lvol1_rimage_1 PV /dev/sdb1 PV /dev/sdf1 raid1/4/5/6/10: lvconvert --replace /dev/sdb1 vg/lvol1 /dev/sdf1 /dev/sd[b-d]1 /dev/sd[f-h]1 raid1: lvconvert --replace /dev/sdb1 --replace /dev/sdc1 --replace /dev/sdd1 vg/lvol1 /dev/sd[fgh]1 /dev/sd[bc]1 /dev/sd[gh]1 raid6: lvconvert --replace /dev/sdb1 --replace /dev/sdc1 vg/lvol1 /dev/sd[gh]1 (thick LV) (thin- pool) thinLV 1GiB: lvconvert --type thin --poolmetadatasize 1G vg/lvol1 VDO: lvconvert --type thin-pool --pooldatavdo y vg/lvol1 : lvconvert --type thin --thinpool vg/tpool1 vg/lvol1 "external": lvconvert --type thin --thinpool vg/tpool1 --originname external vg/lvol1 : lvconvert --type cache-pool --poolmetadata vg/poolmeta1 vg/lvol1 (chunk size) : lvconvert --type cache --cachepool vg/cpool1 -c 128 vg/lvol1 : lvconvert --splitcache vg/lvol1 : lvconvert --uncache vg/lvol1 (SEE ALSO) lvm(8), lvm.conf(5), lvmconfig(8), lvmdevices(8), pvchange(8), pvck(8), pvcreate(8), pvdisplay(8), pvmove(8), pvremove(8), pvresize(8), pvs(8), pvscan(8), vgcfgbackup(8), vgcfgrestore(8), vgchange(8), vgck(8), vgcreate(8), vgconvert(8), vgdisplay(8), vgexport(8), vgextend(8), vgimport(8), vgimportclone(8), vgimportdevices(8), vgmerge(8), vgmknodes(8), vgreduce(8), vgremove(8), vgrename(8), vgs(8), vgscan(8), vgsplit(8), lvcreate(8), lvchange(8), lvconvert(8), lvdisplay(8), lvextend(8), lvreduce(8), lvremove(8), lvrename(8), lvresize(8), lvs(8), lvscan(8), lvm-fullreport(8), lvm-lvpoll(8), blkdeactivate(8), lvmdump(8), dmeventd(8), lvmpolld(8), lvmlockd(8), lvmlockctl(8), cmirrord(8), lvmdbusd(8), fsadm(8), lvmsystemid(7), lvmreport(7), lvmcache(7), lvmraid(7), lvmthin(7), lvmvdo(7), lvmautoactivation(7) lvm2 LVCONVERT(8)