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.