vzrestore to other storage

tsaenger

Renowned Member
Mar 10, 2010
136
2
83
Hello,

i got an backup from an existing vzcontainer generated with vzdump. This container stored at the local-Storage-Folder.
Now i would like to restore this container with vzrestore, but it can not be stored at the locale-Storage-Folder because of low Disk.
I generated a new Storeage-Folder called backup with 2TB free HDD.
How can i restore this backup to an other storeage-Folder?
vzresotre name.tgz 104 wont work.

Thanks for help

Tobias
 
Do you run your system on a raid volume? if yes, expand the raid volume with additional disks and expand the lvm volume.

OpenVZ containers are always stored on /var/lib/vz, therefore you need to expand this lvm volume by adding physical drives (and growing the partition).
 
hi,

yes i am using Raid:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg0-root 35G 31G 2.6G 93% /
tmpfs 7.8G 0 7.8G 0% /lib/init/rw
udev 7.8G 220K 7.8G 1% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/md0 248M 39M 197M 17% /boot
/dev/mapper/vg0-home 2.7T 415G 2.2T 16% /home

how do i expand the lvm volume, that /var/lib/vz will be included?
Do i have to resize vg0-home an create a new vg0-vz with more space?

Thanks a lot

Tobias
 
you are using softraid, not supported. your system is not installed by our installer, you got a quite unsuitable partitioning.

your home is huge, but / is very small. this mean you should have a big /var/lib/vz instead of the big home. I stop working on this thread, maybe others from the community can help.
 
Hello
Sorry if I include another similar theme
I want to make a new machine from the backup of another (openvz)
I have the .tar generated from another machine


vzdump -dumpdir /var/BK/ 705
especially in the LOCAL storage.


Now I need to make another machine from the backups, but in another storage (/mnt/NFS1/private/) (the name of this storage is NFS1)
I try to
vzrestore --storage NFS1 vm204.tar 101
From already thank you very much
 
Hello
Sorry if I include another similar theme
I want to make a new machine from the backup of another (openvz)
I have the .tar generated from another machine


vzdump -dumpdir /var/BK/ 705
especially in the LOCAL storage.


Now I need to make another machine from the backups, but in another storage (/mnt/NFS1/private/) (the name of this storage is NFS1)
I try to
vzrestore --storage NFS1 vm204.tar 101

This will work in next version.
 
Hello
thanks for answering.
Very good team work holding Proxmox.
regards
 

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!