LVM newbie needs some help

Discussion in 'Proxmox VE: Installation and configuration' started by Alternativende, Aug 9, 2018.

  1. Alternativende

    Alternativende New Member

    Joined:
    Aug 27, 2015
    Messages:
    21
    Likes Received:
    0
    Hello guys,
    i have been using Proxmox now for quite a while in a few small setups. Now im doing a new installation on a brand new server with 6.55TB of disk space with the recent version.

    Im very confused about this new lvm-thin thing, i have read the wiki pages about it but still im confused.

    My goal with this new server is to migrate quite a few VM´s from older server´s to it. There are server running Windows 2k8 to 2k16 in RAW and some as qcow2, as well as a few Linux machines.

    I really don´t know if i need this whole LVM thing or not , because i need to make snapshots from time to time and i also have to make backups from VM´s and so on.

    Are there any big disadvantages if i would use a simple ext4 partition mounted to /var/lib/vz as i did the years before?

    And if not, how do i do this?
     
  2. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,600
    Likes Received:
    235
    generally lvmthin is closer to the hardware than a big file on a filesystem

    this all works with lvm thin

    you cannot make snapshots for raw files and this is the only way to have containers on a directory storage
    on lvmthin also containers can be snapshotted
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Alternativende

    Alternativende New Member

    Joined:
    Aug 27, 2015
    Messages:
    21
    Likes Received:
    0
    Hi,
    thanks for you reply. Ok then i guess i have to go with lvm thin. Could you recommend a How To to getting started?

    I have read this (https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM)) and did the steps as requested.

    As far as i understood i have to create a LV after the default installation of Proxmox, in my case this would be on sda3 and the size would be around 6.15TB. I have done this and I could access this storage when i was trying to create a new test VM.

    The thing that confused me was that Proxmox created two folders under /var/lib/vz that do not match with the folders on the "old" Proxmox. The first VM i was trying to migrate is saved under /var/lib/vz/images/VMID/VMdisk.qcow2. On the new Proxmox i just have:

    Code:
    /var/lib/vz# ls
    dump  lost+found  template
    
    instead of:

    Code:
    :/var/lib/vz# ls
    dump  images  private  root  template
    
    What i gonna have to do?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice