Skip to content

Instantly share code, notes, and snippets.

@djonko
Created September 5, 2022 00:24
Show Gist options
  • Save djonko/87a9b3296ac646bf9288760f184c7a14 to your computer and use it in GitHub Desktop.
Save djonko/87a9b3296ac646bf9288760f184c7a14 to your computer and use it in GitHub Desktop.
Increase or decrease disk size of LXC Container on Proxmox
#!/bin/bash
pct stop <id>
vzdump <id> -storage <storage> -compress lzo
pct destroy <id>
pct restore <id> /path/to/storeage/vzdump-lxc-<id>....tar.lzo --rootfs local:<newsize>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment