[SOLVED] Added nvme disk but wrong size is shown

Lucas Rey

Well-Known Member
May 18, 2018
40
26
58
52
Hello community,
today I added a 1T nmve disk to my proxmox home server.

Code:
# parted /dev/nvme0n1 mklabel gpt
# parted -a opt /dev/nvme0n1 mkpart primary ext4 0% 100%
# lsblk
nvme0n1            259:0    0  1000G  0 disk
└─nvme0n1p1        259:2    0  1000G  0 part
# mkfs.ext4 -L nvme /dev/nvme0n1p1

Then mount it under /mnt/nvme and added storage from GUI (directory). Everything looks ok, except for the fact the Proxmox see it with wrong size:

CLI show as:
Code:
/dev/nvme0n1p1                916G   48K  870G   1% /mnt/mvne

But GUI show it as 461 GB:
Image 002.png

Moreover, the used space is increased constantly, from the time I got the screenshot is now at 263.34 GB. But what is this? The disk is empty!!!

Could someone explain what happening?
Thank you
Lucas
 
Why do you think the screenshot of whatever storage you are showing is actually pointing to the mount location you indicated ?
That's maybe because I'm a newbie :D
However I I think that because I selected NVME mount on storage view, so I thought that this reffering to such mount.

Here is the storage.cfg

Code:
dir: local
        path /var/lib/vz
        content vztmpl,iso,snippets,rootdir,images,backup
        prune-backups keep-last=2
        shared 0

cifs: backup_vm_nas
        path /mnt/pve/backup_vm_nas
        server x.x.x.x
        share backup_vm_nas
        content images,backup
        prune-backups keep-all=1
        username share

dir: NVME
        path /mnt/nvme
        content images,rootdir,vztmpl,backup,iso
        prune-backups keep-all=1
        shared 0

Howver even on pvesm status I can see a wrong sizing
Code:
# pvesm status
Name                 Type     Status           Total            Used       Available        %
NVME                  dir     active       451059328       264732544       186326784   58.69%
backup_vm_nas        cifs     active      6894323251      3448603407      3445719844   50.02%
local                 dir     active       451059328       264732544       186326784   58.69%

The strange thing is that NVME and local gets the same size!!
 
Last edited:
It looks like your drive is not actually mounted at /mnt/nvme and it is therefore just a directory on the Proxmox installation (local). What is the output of mount?
Did you add a line to /etc/fstab to mount the NVMe drive automatically on /mnt/nvme? Does the command mount /mnt/nvme show anything?
 
  • Like
Reactions: Lucas Rey
lvmthin is more recommended if you store only vm disks. gui of proxmox will do all things without cli..
 
Yes, I'll store some VM disks, but mainly VM backup and ISO, so I have to go with directory.

However, I adjusted the mount, and finally I got the right size! Thank you all to point me to the solution!

Code:
Name                 Type     Status           Total            Used       Available        %
NVME                  dir     active       960302096        51623820       859823852    5.38%
backup_vm_nas        cifs     active      6890557850      3451308417      3439249433   50.09%
local                 dir     active       451056640       228995584       222061056   50.77%
 
Last edited:

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!