← 返回命令列表

Linux command

qm-rescan 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Rescan all storages

qm rescan

Rescan storage for a specific VM

qm rescan --vmid [100]

Perform a dry run

qm rescan --dryrun 1

Example

tldr qm disk

说明

qm rescan is an alias for qm disk rescan that rescans all storages and updates disk sizes and unused disk images for virtual machines. When run without --vmid, it rescans storage for all VMs on the node.

参数

--dryrun _boolean_
Execute a test run without writing changes to VM configurations (default: 0).
--vmid _integer_
The unique ID of the VM (100-999999999). If omitted, all VMs are rescanned.

FAQ

What is the qm-rescan command used for?

qm rescan is an alias for qm disk rescan that rescans all storages and updates disk sizes and unused disk images for virtual machines. When run without --vmid, it rescans storage for all VMs on the node.

How do I run a basic qm-rescan example?

Run `qm rescan` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --dryrun _boolean_ do in qm-rescan?

Execute a test run without writing changes to VM configurations (default: 0).