[PVE-User] Creating VM with thin provisioning (please help me understand it).

Leandro Roggerone leandro at tecnetmza.com.ar
Thu Mar 5 17:26:55 CET 2020


Hi guys , here i am trying to get used to pve. (I came from VM ware EXSi).
Im used to use "thin provisioning" option in vmware.
It allowed me to set maximum drive space allocation but vm will use
minimum and dynamically grow as guest OS needs
.
How should I accomplish same on pve  ?
I created a VM and set 200GB at the storage capacity but can not set any
flag about thin provisioning.
Now , If I list lslbl , it  shows that created VM is taking the 200GB.
root at pve:~# lsblk
NAME                         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                            8:0    0  5.5T  0 disk
├─sda1                         8:1    0 1007K  0 part
├─sda2                         8:2    0  512M  0 part
└─sda3                         8:3    0  3.9T  0 part
  ├─pve-swap                 253:0    0    8G  0 lvm  [SWAP]
  ├─pve-root                 253:1    0  1.2T  0 lvm  /
  ├─pve-data_tmeta           253:2    0 15.8G  0 lvm
  │ └─pve-data-tpool         253:4    0  1.9T  0 lvm
  │   ├─pve-data             253:5    0  1.9T  0 lvm
  │   └─pve-vm--100--disk--0 253:6    0  200G  0 lvm
  └─pve-data_tdata           253:3    0  1.9T  0 lvm
    └─pve-data-tpool         253:4    0  1.9T  0 lvm
      ├─pve-data             253:5    0  1.9T  0 lvm
      └─pve-vm--100--disk--0 253:6    0  200G  0 lvm
sr0                           11:0    1 1024M  0 rom


I can see from gui , that is is possible to expand disk.
So ... perhaps I should assign a little storage at beginning and then
manually expand if needed.
Please share your idea about this.
I need to begin creating some VMs and work on them , I dont want to create
in a wrong way and have to destroy later.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


More information about the pve-user mailing list