← 返回命令列表

Linux command

pct-resize 命令

文本

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

常用示例

Resize

pct resize 100 rootfs 20G

Add

pct resize 100 rootfs +10G

说明

pct resize changes the size of a Proxmox LXC container's storage volume. The filesystem inside the container is automatically resized along with the underlying storage.

参数

vmid
The numeric ID of the container
disk
The disk to resize (rootfs or mpN for mount points)
size
New size (absolute like 20G) or relative (like +10G)

FAQ

What is the pct-resize command used for?

pct resize changes the size of a Proxmox LXC container's storage volume. The filesystem inside the container is automatically resized along with the underlying storage.

How do I run a basic pct-resize example?

Run `pct resize 100 rootfs 20G` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does vmid do in pct-resize?

The numeric ID of the container