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
38
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!