Migrating LVM Partitions to New Logical Volume (Drive) – Part VI

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

30 Responses

  1. rahman ansari says:

    Very nice step sir…

  2. nagaswamy kumar says:

    Hi Babin,

    Thanks for your wonderful and very useful Information.

    I have one issue : My old LV has ext4 FS but i need to move this data in New LUN with XFS FS . this is how


  3. felipe says:

    title says moving to a new Volume Group, but the steps show moving to a new Physical Volume. Blog title is inaccurate

  4. krishna says:

    Hello Babin,

    the steps work’s for a vg with single lv.

    i have a question what if we have 3 lvs from single vg :

    sp09lonprod1:~ # vgs
    VG #PV #LV #SN Attr VSize VFree
    datavg 1 3 0 wz–n- 37.00g 1020.00m
    sp09lonprod1:~ # lvs
    LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
    appserverlv datavg -wi-ao– 30.00g
    loglv datavg -wi-ao– 5.00g
    mrlv datavg -wi-ao– 1.00g

    sp09lonprod1:~ # df -h
    Filesystem Size Used Avail Use% Mounted on

    30G 17G 12G 59% /appserver
    1008M 34M 924M 4% /mr
    5.0G 147M 4.6G 4% /log

    == ==
    we maintain only a single disk to clients ( even though we have a an option of adding a new disk to existing vg and extending F/S

    but we don’t do that in our org.) , now i need to migrate all my data and lvs to new disk . how can i do if i follow your steps,

    i normally do with making backup (tar the exixting f/s) and crating a new vg and new lvs on new disk and then copying all the data to the respective mount points after making F/s.. but its to long and time taking..

    can you help me to make this short.

    currents disk’s;

    sp09lonprod1:~ # fdisk -l |grep -i sd
    Disk /dev/sdb: 39.7 GB, 39728447488 bytes
    /dev/sdb1 1 4830 38796272 8e Linux LVM
    Disk /dev/sda: 16.1 GB, 16106127360 bytes
    /dev/sda1 * 1 64 512000 83 Linux
    /dev/sda2 64 1959 15215616 8e Linux LVM

    sdb1(30GB) needs to be moved to new disk xx of 65gb

    the same size of existing lvs of old disk need to be presented to the new disk

    do i need to create 3 pvs as per required size on new disk and do as your steps specified in this doc ???

    Thanks in advance,

  5. Reeta says:

    Very useful technote. All steps are very neatly explained and worked perfectly for me.

  6. Shailesh Gupta says:

    Hi Babin,

    My colleague had created VM onVirtual Box. It is arround 50 GB total. out of that as follows
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 35G 12G 22G 34% /
    /dev/sda1 190M 12M 169M 7% /boot
    /dev/sda3 13G 12G 465M 97% /data
    none 1.1G 0 1.1G 0% /dev/shm
    Main Application is running on /data. It is about to full the data partition.
    It is not lvm partition.

    Please give me any suggestion.
    is any way extend the /data size or reduce the size of / and increase the /data partion.

  7. anil rathod says:

    Hi Babin,
    Thanks for such nice article.
    I am having some scenario such as we want to move the Stripped LV using pvmove to another server.
    Can you help us regarding the same. As I have mentioned that these are Stripped LV so destination should have the Stripped LV after migration.

    Thank you,
    Anil Rarthod

  8. fahid says:

    Babin I need your help!

    I have a VM image with two virtual disks. On this VM, there is only one volume group, vg0. But vg0 is made of two physical volumes – one from each disk.

    I have added a third disk and cloned the two primary partitions on the above OS, but now need to copy over the LVM partitions to the disk. How can I do this in Suse 11? I thinking to just copy the whole vg0 over to the new disk, not sure how…


  9. Dharma says:

    Thanks for giving such a technics

  10. anis says:

    I am very new to linux.just a doubt,If I use lvmove for migration.the lvextend and filesystem resize also required to reflect the new size of disk in lvm.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.