qm rescan

Rescan all storages and update disk sizes and unused disk images of a virtual machine. More information: https://pve.proxmox.com/pve-docs/qm.1.html.

qm rescan vm_id

qm rescan --dryrun true vm_id