Results 1 to 10 of 14

Thread: Recover LVM

Hybrid View

  1. #1
    Join Date
    May 2010
    Beans
    17

    Recover LVM

    Hi,

    Need help.

    I setup LVM on a box and transferred some files to a logical volume. Installed Ubuntu on the box after exporting the volumegroup. So, I have no backup of LVM.

    Now, on my box, I did this:

    vgimport vg01

    vgdisplay shows no PE allocated and no volumes available.

    Anything I can do to get the volume back?

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,746
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Recover LVM

    I haven't tried export/import procedure of LVM, but in order to use LVM you need to activate it with something like:
    sudo vgchange -ay

    Provided all the necessary info is there, it should activate it and list the available LVs.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    May 2010
    Beans
    17

    Re: Recover LVM

    Quote Originally Posted by darkod View Post
    I haven't tried export/import procedure of LVM, but in order to use LVM you need to activate it with something like:
    sudo vgchange -ay

    Provided all the necessary info is there, it should activate it and list the available LVs.
    I have tried this and it tells me 0 logical volumes available. lvdisplay shows no logical volumes available either.

  4. #4
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,746
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Recover LVM

    lvdisplay is after they are activated. For searching before LVM is activated you use pvscan, vgscan and lvscan.

    But even without any search vgchange should activate all LVM devices it finds.

    It seems the export/import process was not done successfully. So because of that, vgchange is not activating any LVM because there is none to activate. See if pvscan can detect any physical devices at all.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  5. #5
    Join Date
    May 2010
    Beans
    17

    Re: Recover LVM

    Quote Originally Posted by darkod View Post
    lvdisplay is after they are activated. For searching before LVM is activated you use pvscan, vgscan and lvscan.

    But even without any search vgchange should activate all LVM devices it finds.

    It seems the export/import process was not done successfully. So because of that, vgchange is not activating any LVM because there is none to activate. See if pvscan can detect any physical devices at all.
    I have done the respective pvscan, lvscan, vgscan. The vg was detected automatically as exported so I imported it. But no lvs are showing. I'm wondering why the heck it's disappeared, along with a good 2TB of data

  6. #6
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,746
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Recover LVM

    I have no clue. Maybe the export procedure was missing something, for example it might not have exported the LVs as you expected.

    I assume you no longer have the original disks?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •