I am slowly moving content from Notion to this Wiki. Some things will be missing!
Where necessary, the organisational structure and information will be updated.

Tom's Wiki

Forget-me-not

User Tools

Site Tools


lab:docs:g:shrink-lxc

Shrink LXC storage

Application: Proxmox Category: Guide

Step 1: Stop the container

snippet.bash
pct stop 100

Step 2: Create a backup of the container

snippet.bash
vzdump 100 -storage raid-extra -compress gzip

Step 3: Delete the container

snippet.bash
pct destroy 100

Step 4: Restore the container

snippet.bash
pct restore 100 /path/vzdump-lxc-100.date.tar.gz --rootfs local-lvm:3

Where “3” is the new size of the rootfs in GB.

lab/docs/g/shrink-lxc.txt · Last modified: Tue 12 Mar 2024 (22:10) by 127.0.0.1