pct restore to lvm (how to restore lxc backup to a logical volume instead of raw image file)?

eth

Renowned Member
Feb 24, 2016
69
3
73
39
Hello,

I am moving a LXC from one Proxmox node to another. I keep my LXCs in LVM instead of raw images.
Backup was fine. But when I did a "pct restore" on the new node it tried to restore my backup to a raw image file in /var/lib/vz/images instead.

How can I properly restore a .lzo lxc backup into a logical volume (and create one at the same time)?

I couldn't find this in the manual.
 
Last edited:
You can specify the target storage using the --storage flag, for example:

# pct restore <VMID> local:backup/vzdump-lxc-XXX.tar --storage <yourlvmstorage>
 
Got it. "system_lvms" was the name for my lvm storage set in proxmox.

Code:
pct restore 103 vzdump-lxc-103-2016_03_15-06_09_03.tar.lzo --storage system_lvms
  Logical volume "vm-103-disk-1" created.

Thank you.
 
Last edited: