vzrestore disconnect halfway

P

pats

Guest
Hi,

Recently i had issue with my Main server and i tried to Restore dump on a Backup server(after installing Debian 6 + Proxmox).

root@prox2:~# vzrestore vzdump-openvz-100-2012_07_08-12_00_07.tar.lzo 101

But putty (ssh client) disconnected halfway.
Since there's no progress-bar or something i don't know how long back it got disconnected..

i login to ssh again, saw there's no vzrestore process in memory.
root@prox2:~# vzlist
Container(s) not found

But i noticed increase in disk usage, so i thought of taking a look
root@prox2:/var/lib/vz# du -h --max-depth=1
8.0K ./lock
8.0K ./root
64G ./private
16K ./template
4.0K ./dump
4.0K ./images
64G .
root@prox2:/var/lib/vz#

so private had some contents while root looked empty

root@prox2:/var/lib/vz# ls -l private
total 4
drwxr-xr-x 21 root root 4096 Jul 22 14:21 101
root@prox2:/var/lib/vz# ls -l root
total 4
drwxr-xr-x 2 root root 4096 Jul 22 13:29 101
root@prox2:/var/lib/vz# ls -l root/101
total 0
root@prox2:/var/lib/vz# ls -l private/101
total 120
lrwxrwxrwx 1 root root 39 Jul 22 14:21 aquota.group -> /proc/vz/vzaquota/00000017/aquota.group
lrwxrwxrwx 1 root root 38 Jul 22 14:21 aquota.user -> /proc/vz/vzaquota/00000017/aquota.user
dr-xr-xr-x 2 root root 4096 Jun 29 05:47 bin
dr-xr-xr-x 3 root root 4096 Jun 8 19:59 boot
drwxr-xr-x 5 root root 4096 Jun 29 04:41 dev
drwxr-xr-x 71 root root 12288 Jul 8 12:00 etc
drwx--x--x 1038 root root 32768 Jul 8 03:40 home
dr-xr-xr-x 9 root root 4096 Jun 29 05:08 lib
dr-xr-xr-x 7 root root 12288 Jun 29 05:12 lib64
drwxr-xr-x 2 root root 4096 Sep 23 2011 media
drwxr-xr-x 2 root root 4096 Sep 23 2011 mnt
drwxr-xr-x 8 root root 4096 Jul 2 02:10 opt
dr-xr-xr-x 2 root root 4096 Jun 8 19:57 proc
dr-xr-x--- 16 root root 4096 Jul 8 11:58 root
dr-xr-xr-x 2 root root 4096 Jun 29 04:33 sbin
lrwxrwxrwx 1 root root 25 Jul 22 14:21 scripts -> /usr/local/cpanel/scripts
drwxr-xr-x 2 root root 4096 Sep 23 2011 selinux
drwxr-xr-x 2 root root 4096 Sep 23 2011 srv
drwxr-xr-x 2 root root 4096 Sep 23 2011 sys
drwxrwxrwt 3 root root 4096 Jun 29 04:36 tmp
drwxr-xr-x 14 root root 4096 Jun 29 06:10 usr
drwxr-xr-x 21 root root 4096 Jun 29 05:47 var
root@prox2:/var/lib/vz#

So, can i 'rm -rf /var/lib/vz/private/101' and 'root/101' ?

Where other places i can look for files relating to half-baked 101 ?

Does vzrestore write any log file - where its located?

Also how can i check/test the file vzdump-openvz-100-2012_07_08-12_00_07.tar.lzo if the file is ok, no errors in it?

Thanks
 
Last edited by a moderator:
You should see a task on the task list.
yeah i found:
extracting archive '/root/vzdump-openvz-100-2012_07_08-12_00_07.tar.lzo'
tar: ./home/ospinter/mail/ospinter.co/lucy/.neomail-trash/cur/1157095052.000020.mbox:2,S: implausibly old time stamp 1969-12-31 18:00:00

Not sure if vzrestore exited due to 'implausibly old time stamp' or due to Session timed out on ssh.
Any ideas?
 
How do you guys tackle the ssh timeout? if the dump is big then definitely there will be session-timeout.

last time when i was rsync'ing some big backups from one server to another server they timed-out, and after that i always use 'rsync --progress' so now there is no timeout.

Anything like this in vzrestore? progress bar/percentage or verbose mode - some activity on-screen to keep-on the session?

thanks
 
Anything like this in vzrestore? progress bar/percentage or verbose mode - some activity on-screen to keep-on the session?

I do not get such timeouts here (the session is not idle if you run vzrestore). But maybe that is a ssh client setting (ServerAliveInterval).
 
I do not get such timeouts here (the session is not idle if you run vzrestore). But maybe that is a ssh client setting (ServerAliveInterval).

hmm... in Putty i see

Connection -> Sending of null packets to keep session active
Seconds between keepalives (0 to turn off)

i think i have to change keepalives from 0 and test ?
 

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!