[SOLVED] Does dir storage support thin provisioning?

Discussion in 'Proxmox VE: Installation and configuration' started by JBB, Nov 18, 2018.

  1. JBB

    JBB Member

    Joined:
    Jan 23, 2015
    Messages:
    94
    Likes Received:
    1
    Reading the docs on storage, it says:

    "A number of storages, and the Qemu image format qcow2, support thin provisioning. "

    It doesn't actually tell you which storages support thin provisioning, but I can I assume that dir storage does not (unless the images stored on it are qcow2)?
     
  2. janos

    janos Member

    Joined:
    Aug 24, 2017
    Messages:
    147
    Likes Received:
    13
    Hello,

    Dir storages store RAW or QCOW2 images.
     
  3. JBB

    JBB Member

    Joined:
    Jan 23, 2015
    Messages:
    94
    Likes Received:
    1
    Thanks, so am I correct to assume that if the images are RAW on directory storage, then those images cannot shrink? I see the "discard" option is available on them in the GUI though - so I'm not sure.
     
  4. janos

    janos Member

    Joined:
    Aug 24, 2017
    Messages:
    147
    Likes Received:
    13
    Hello,

    Now what are you want? Thin provisioning or shrink? These are two different types of thing.
     
  5. JBB

    JBB Member

    Joined:
    Jan 23, 2015
    Messages:
    94
    Likes Received:
    1
    Ah OK. I didn't know they were separate. Ideally I want thin provisioning using RAW disk images.
     
  6. janos

    janos Member

    Joined:
    Aug 24, 2017
    Messages:
    147
    Likes Received:
    13
    This is not possible with DIR storage type. You need LVM or CEPH, etc for this ,where the underlayer storage supporting the thin provision itself.
     
  7. JBB

    JBB Member

    Joined:
    Jan 23, 2015
    Messages:
    94
    Likes Received:
    1
    OK thanks. The fact that the "discard" checkbox is available in the GUI on RAW images on DIR storage made me wonder.
     
  8. janos

    janos Member

    Joined:
    Aug 24, 2017
    Messages:
    147
    Likes Received:
    13
    Because other storage type support it (CEPH, LVM-Thin, etc).
     
    JBB likes this.
  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