Skip to content

Instantly share code, notes, and snippets.

@rickytato
Created January 22, 2020 13:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickytato/02d8737267f7b143d6e8f7cfd8bac8a1 to your computer and use it in GitHub Desktop.
Save rickytato/02d8737267f7b143d6e8f7cfd8bac8a1 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>
@88plug
Copy link

88plug commented Sep 2, 2021

path/to/storeage is found when running the initial vzdump
is size in gb, like "64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment