How to: Find which virtual machine (VM) occupying/using largest amount of storage/disk space from Proxmox VE (PVE)

1 Login to Proxmox VE web gui

2 Navigate to Datacenter -> Storage, note down the disk we want to check

3 Launch “Shell” for the node we want to check, or via SSH or directly from Proxmox host

4 Install “ncdu” utility

apt install -y ncdu

4 Use following command to check (Here we use “/rpool/images” as example)

ncdu /rpool/images

Note 1: Use Arrow keys to navigate, Left = Upper level folder, Right = Open the highlighted folder, Use “q” key to exit the program

Note 2: Change the directory to suit your situation

Example output

Output from ncdu for Proxmox VE
Output from ncdu for Proxmox VE

If we are not sure which folder, we can simply just use “ncdu /” to scan everything on the host.

ncdu /

Linux Command Line/ Terminal Disk Space Usage tool (Find largest folder/file)

For finding largest file/folder or showing disk space usage on Windows, refer to this one: How to: Find Largest file on Windows, Windows 7, Windows 10, Microsoft Windows, Windows Server (Disk Space Usage)

Ncdu (NCurses Disk Usage) is a command line tool to view and analyse disk space usage on Linux.

It can be easily installed on most Linux systems with package management system.

ncdu on Kali Linux 2020
ncdu on Kali Linux 2020

Debian/Kali Linux/Ubuntu etc. Linux installation

sudo apt install ncdu -y
sudo aptitude ncdu -y

RHEL/CentOS/Fedora etc. Linux installation

If EPEL repo is not installed yet, we have to install EPEL repo first

sudo yum -y install epel-release

Next, we can now install ncdu

sudo yum install ncdu -y

Using ncdu is simple.

Show current working directory info


Show info for a folder e.g. “/etc”

ncdu /etc

To show more info about a folder while in ncdu, press “i” key (Press “i” again to dismiss)

ncdu - i
ncdu – i

Press Shift + ? to show help document while in ncdu

ncdu help
ncdu help

Press “q” key to quit menus and the ncdu program