Disk space used

proxwolfe

Well-Known Member
Jun 20, 2020
501
52
48
49
Hi,

I have a plain vanilla pve installation (6.4.13) on one of my servers.

In addition to the system disk I have added in another ssd (/dev/sdd) for vms and cts. It is holds 238gb and is mounted as /mnt/vmstore. No vms/cts are installed yet.

When I run df /dev/sdd the output is (as expected)

Filesystem 1K-blocks Used Available Use% Mounted on udev 12009984 0 12009984 0% /dev

but when I run df /mnt/vmstore (which is supposed to be the same disk) the output is

Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/pve-root 28510260 2756108 24282872 11% /

The PVE webgui tells me (under Storage) that 9.7% of the disk is used and when I want to restore a vm from another pve installation, the system tells me that I there are 24gb of 29gb free.

What the hell is going on?

Thanks!
 
Dont use "df" so see available space if you are using LVM or ZFS. If it is a LVM use the lvm commands like lvdisplay, vgdisplay and so on. If it is a ZFS storage use the zfs commands like zfs list.

How did you partition a format the SSD?
 
The ssd is not partitioned. Just directly formatted to ext4. (df should be okay then, right?)
 
For plain ext4 that should be fine.

"/dev/mapper/pve-root" should by the way be your proxmox root partition not your "/mnt/vmstore". Are you sure your "/dev/sdd" is successfully mounted? If it is not successfully mounted "/mnt/vmstore" is just a empty mountpoint and therefore it is just a folder and part of your root partition. So in that case it would make totally sense if "df /mnt/vmstore" would give you the information on your root partition and not but not on your new SSD.

By the way...ext4 isn't ideal as a VM storage. With LVM or ZFS your virtual disks could be stored on block level. With ext4 you can only store them on file level.
 
Last edited:
"/dev/mapper/pve-root" should by the way be your proxmox root partition not your "/mnt/vmstore". Are you sure your "/dev/sdd" is successfully mounted? If it is not successfully mounted "/mnt/vmstore" is just a empty mountpoint and therefore it is just a folder and part of your root partition. So in that case it would make totally sense if "df /mnt/vmstore" would give you the information on your root partition and not but not on your new SSD.

You are right: The ssd was not mounted correctly.

The problem was that I had tried to mount it via /etc/fstab using its UUID.

Only I had used "uuid" instead of "UUID" :rolleyes:

Thanks for your help!
 

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!