How to: Check/Show real virtual machine/virtual disks usage/used size from Proxmox VE (PVE) (Find largest VM from Proxmox) (qcow2, raw… etc.)

0.1 Login to terminal directly from Proxmox VE host or via SSH or via web gui

0.2 Make sure you know where your VM disks are stored, here we use “/rpool/images” as example. Note if you store VM disks in different locations, you need to execute the command within corresponding folders

1 Method 1 – du command (Find largest VM disks/folders)

1.1 Use following command, we can see the real usage from each VM/folder (Proxmox web gui only shows the provisioned size, not real disk usage)

du -h /rpool/images
du command showing real VM disk usage on Proxmox
du command showing real VM disk usage on Proxmox

2 Method 2 – ls command

While using du is easier to find the largest VM quickly, ls command is useful for finding out exact size of exact file

2.1 Use following command, we can see the exact size of exact file e.g. qcow2 files

ls -shl /rpool/images/101
ls command showing VM disks real usage and provisioned size
ls command showing VM disks real usage and provisioned size

Note

7.3G and 33K are the real usage (allocated size, in blocks), which means the file used 7.3G from our physical disk

52G and 704K is the File size (Which we see from Proxmox web gui) we can roughly think this as “Provisioned Size”


Leave a Reply

Your email address will not be published. Required fields are marked *