iscsi datastore incorrect size

leksand

Well-Known Member
Aug 28, 2020
77
1
48
39
External storage is attached to the pve via open-iscsi + multipath.
Incorrectly displayed volume was 3TB LUN size, pve showed 3.3 TB. Stretched to 5TB LAN after pvresize shows 5.5 TB in pve.

At the same time, pvdisplay shows correctly:
before magnification
--- Physical volume ---
PV Name /dev/mapper/naspve
VG Name nas
PV Size 3.00 Tb / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 Min
Total PE 786431
Free PE 123391
Allocated PE 663040

after the increase
--- Physical volume ---
PV Name /dev/mapper/naspve
VG Name nas
PV Size <5.00 TiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 Min
Total PE 1310719
Free PE 647679
Allocated PE 663040

How to understand the incorrect mapping?
Will over provisioning (the storage type is just LVM) fail?
 

Attachments

  • datastore incorrect size.png
    datastore incorrect size.png
    2.2 KB · Views: 2
You know the difference between Terabyte and Tebibyte? This is what you see here.

I know about byte = 8 bits, but what does bits have to do with it.
Also the size is specified in TB.

Terabyte (TB), a unit of information (often measuring storage capacity)
Terabit (Tb), a unit of information (often measuring data transfer).