<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I managed to do this  but i think in hard way. I think sharing this will help someone who want to join hard drives of virtual machines under lvm or removing hard drive in lvm group<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Lets say you have virtual machine having partition vda2,vdb1,vdc1 in lvm. the trick is to increase first image  by normal qemu-img resize virt-name(image of the first partition, in this case vda) new-big-space<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">then create  new partition table with fdisk( be careful with operating system like centos use -u -c switches). Reboot the virtual machine and increase volume of the first hard drive by normal pvresize vda2<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">dont expand volume group. then start to move other partitions to hard drive with space (pvmove /dev/vdb1 /dev/vda2). Repeat for all partitions to be removed. the problem with this pvmove is very slow. Remove migrated partition in lvm. If you still have free space in vda2 then do volume extend and resizing the file system. Migrating 500GB of partion took the whole night(12hrs). This can be worse for slow hard drives<br><br>--<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Lomayani<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br>--<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Lomayani<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 12, 2016 at 6:30 PM, Lomayani S. Laizer <span dir="ltr"><<a href="mailto:lomlaizer@gmail.com" target="_blank">lomlaizer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Am a having problem here. We have  virtual machines which are running under our old system. the virtual machine is having separate images(server1.img, server2.img, server3.img) which inside run lvm to combine all space. <br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">My problem is, we are migrating these virtual machines to ceph. I want combine this images of a single virtual machine to get one image and migrate it to ceph to easy backup issues on future. What is the best way to combine images  in lvm to get  one image with all data?<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Your help is highly appreciated.<br><br>--<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Lomayani<br></div></div>
</blockquote></div><br></div>