VM disk wrong size

hanzfritz85

Member
Dec 15, 2018
43
0
11
35
sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 120G 0 disk
├─sda1 8:1 0 243M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 15.8G 0 part
├─debian--vg-root 254:0 0 14.8G 0 lvm /
└─debian--vg-swap_1 254:1 0 1G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
________________________________________

sudo parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 129GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary ext2 boot
2 257MB 17.2GB 16.9GB extended
5 257MB 17.2GB 16.9GB logical lvm


HDD size for this VM is set t o120GB.
Proxmox 4.3 with simple local ext4 disk as a storage, but the same situation is on 5.3 with lvm-thin dedicated disk.

Where did 129GB came from? Is this a bug?
 
GB vs. GiB

120 GiB * 1,024 * 1,024 * 1,024 = 128,84901888 GB ~ 129 GB

Dear LnxBil,
Can you please add more info to your answer? I got that Proxmox storage is sized in GiB, but I can't find it in documentation. And why size increment clearly states GB. Is this not the case where all the units should be the same?
 
Sorry, should have spent more time on that.
Yes, disk is created with GiB units.
Thank you!
 

Attachments

  • GiB.jpg
    GiB.jpg
    30.2 KB · Views: 14

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!