LVM – How To Change Lv From Linear To Stripped? Is It Possible?

Home » CentOS » LVM – How To Change Lv From Linear To Stripped? Is It Possible?
CentOS No Comments

Hi All.

Currently I am trying to change a logical volume from linear to stripped because I would like to have a better write throughput. I would like to perform this change “live” without stopping access to this lv.

I have found two interesting examples:
http://community.hpe.com/t5/System-Administration/Need-to-move-the-data-from-Linear-LV-to-stripped-LV-on-RHEL-5-7/td-p/6134323

Converting Logical Volume so that it’s striped


Both say basically to:
– change the lv to a mirrored one by adding a stripped copy (~second device in RAID1)
– change it back to a non-mirrored one by removing the primary linear lv
(~first, source device in RAID1)

My os is:
$ cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core)
$ uname -r
3.10.0-229.14.1.el7.x86_64
$ rpm -qa | grep -i lvm lvm2-libs-2.02.115-3.el7_1.1.x86_64
lvm2-2.02.115-3.el7_1.1.x86_64

And the solution proposed in above examples does not work on it. After (lv xxx is only on /dev/sdb4 before):
# lvconvert –mirrors 1 –stripes 4 /dev/cinder-volumes/xxx /dev/sda4
/dev/sdc4 /dev/sdd4 /dev/sdf4
I am getting in “lvdisplay -m”:

— Logical volume –