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