Files
cheatsheet-tldr/tldr/linux/qm-disk-rescan
2025-11-23 00:23:40 +00:00

22 lines
611 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm disk rescan
> Rescan all storages and update disk sizes and unused disk images of virtual machines.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html#cli_qm_disk_rescan>.
- Rescan all storages and update disk sizes and unused disk images:
`qm {{[di|disk]}} {{[resc|rescan]}}`
- Perform a dry-run of a rescan and do not write any changes to configurations:
`qm {{[di|disk]}} {{[resc|rescan]}} --dryrun`
- Specify a virtual machine by its ID:
`qm {{[di|disk]}} {{[resc|rescan]}} --vmid {{100}}`