Optimal way to LVM Thin a new NVME SSD???

ChAoS

Member
Apr 29, 2021
31
4
8
42
Hello Forum,

I got a new Samsung Pro 980 NVME SSD attached with full x4 Gen 4 PCIe.

Now I want to make it complete as an LVM thin provisioned storage for my VMs.
It is a standalone PVE Server.

In the past i went some way with creating GPT, pvcreate, lgcreate, lvcreate thinpool, lvextend etc. and speed was horrible!
Now I tested ONLY creating the LVM thin with the web-GUI "one click" wise. Moving a VM to that storage and installing a VM on this storage was amazing fast!
Can't imagine that this "easy way" is also the optimal way!
Moving a VM with a 80GB Raw storage weared my SSD with around 220GB (according to the SMART values, maybe they are not correct interpreted?).

WHAT is the optimal way to install and use such an SSD according to:
wearout
speed
aligining blocks (so it also results in wearout and speed if not coorectly aligned)
security (when I move over this SSD to another Proxmox)

Thx
Dirk
 
EDIT:
thinking sime SMART interpretation may not be correct:
Code:
Data Units Written:                 455,142 [233 GB]
Host Write Commands:                24,377,147

the Host Write Commands, if you calc it with 4K blocks it results in around 96 GB. This may be correct as Usage tells
Code:
Usage 4.90% (96.33 GB of 1.97 TB)

Whyever the moved dis uses 80 GB (seems thick provisioned) and the New VM uses only the thin provisions.

How is the "Data Units written (233GB) calculated?
 
Last edited:
455,142x 512B logical sectors would result in 233 GB.
Sorry,

can't follow it

455,142 x 512 Bytes results in
233032704 Bytes
which are 233 Megabytes or (calculated with 1024 instead of 1000) 222 Megabytes. Not Gigabytes...

EDIT:
Found that the value must be multiplied with 1000 - so it is correct.
 
Last edited: