Results 1 to 2 of 2

Thread: Reinstalling, what happens to LVM?

  1. #1
    Join Date
    Aug 2008
    Beans
    21

    Exclamation Reinstalling, what happens to LVM?

    Hey all as the title suggests I am going to reinstall ubuntu very soon and would like to know what is going to happen to my lvm? Will my re-installation see it and allow me to reactivate it? Or will i have to do some witchcraft and wizardry to get it back up without losing data. PS Its a 10tb lvm which is almost full so i would really like this to work.

    Thanks!

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,907
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Reinstalling, what happens to LVM?

    You didn't specify which OS exactly, desktop or server. The destop live cd doesn't include the lvm2 package so by default it will not see the LVM. But if you boot into live mode first, install the lvm2 package and activate the LVM, then start the installer with the icon on the desktop (without rebooting the live mode), it should find it just fine and allow you to use it as you wish.
    Code:
    sudo apt-get install lvm2
    sudo vgchange -ay
    But don't forget that ubuntu doesn't assume what you want to do with partitions (including LVM logical volumes). You need to select each and specify the filesystem and mount point you want to use on it, using the manual install mode. Since you want to keep the data make sure you DO NOT select the format box.

    That should be it.

    If the OS is not running on the LVM another option is installing the OS first, and after that installing the lvm2 package, activating the LVM and making the correct entries in /etc/fstab.

    The server installer should see the existing LVM without any problems since it includes the package.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 7 Ultimate 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
  •