vzrestore

bread-baker

Member
Mar 6, 2010
432
0
16
if you do use this temporary fix, then before doing a pve software upgrade, make /etc/vz/conf a regular directory and not a symlink, else the pve upgrade may fail.

Code:
mv /etc/vz/conf /etc/vz/conf-
ln -s /etc/pve/local/openvz  /etc/vz/conf

then vzrestore as normal
Code:
vzrestore vzdump-openvz-525-2011_09_24-23_33_30.tar 3525
INFO: restore openvz backup 'vzdump-openvz-525-2011_09_24-23_33_30.tar' using ID 3525
INFO: extracting archive 'vzdump-openvz-525-2011_09_24-23_33_30.tar'
tar: write error
INFO: Total bytes read: 428308480 (409MiB, 9.5MiB/s)
INFO: extracting configuration to '/etc/vz/conf/3525.conf'
INFO: restore openvz backup 'vzdump-openvz-525-2011_09_24-23_33_30.tar' successful


Code:
vzctl start 3525
Starting container ...
Container is mounted
Adding IP address(es): 10.100.100.253
Setting CPU units: 1000
Setting CPUs: 1
Container start in progress...

vzctl  enter 3525
entered into CT 3525



the above worked for 4 squeeze vz's
 
Last edited:
without the link the vzrestore dont work right. thanks bread-baker for the workaround.
i also get this error :
Code:
INFO: extracting archive 'vzdump-openvz-900107-2011_10_05-13_50_54.tar'
tar: write error
INFO: Total bytes read: 1088296960 (1.1GiB, 71MiB/s)
i don't why - but it works (on the first test).

when i try to move ve-pve.auto.conf-sample to new folder i get this.
Code:
root@xxx:/etc/vz/conf-# mv ve-pve.auto.conf-sample ../conf/
mv: failed to preserve ownership for `../conf/ve-pve.auto.conf-sample': Function not implemented
mv: preserving permissions for `../conf/ve-pve.auto.conf-sample': Function not implemented
it works - but the error message is strage. should i wrote tickets for that stuff?

btw. great work!
 

Code:
vzrestore vzdump-openvz-102-2011_10_05-16_23_22.tar
Code:

needs a vmid at the end . like

vzrestore vzdump-openvz-102-2011_10_05-16_23_22.tar 1234


I seem to remember that it used to be a vmid was not needed.
 
Last edited:

Code:
vzrestore vzdump-openvz-102-2011_10_05-16_23_22.tar
Code:

needs a vmid at the end . like

vzrestore vzdump-openvz-102-2011_10_05-16_23_22.tar 1234


I seem to remember that it used to be a vmid was not needed.

sorryy
ok ok ok thansk :)


So when you OpenVZ support