how to recover deleted raw file of VM

MaxBou

New Member
Oct 21, 2016
6
0
1
31
Hello,

I have accidentaly deleted this file : volume 'local:100/vm-100-disk-1.raw' does not exist
How to restore it ?

Another problem :

lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
TASK ERROR: command 'lxc-start -n 100' failed: exit code 1


root@sd-100275:/var/lib/vz/template/cache# pct shutdown 100
CT 100 not running
root@sd-100275:/var/lib/vz/template/cache# pct config 100
arch: amd64
cpulimit: 4
cpuunits: 1024
hostname: tristan.woble.fr
memory: 16196
net0: name=eth1,bridge=vmbr0,gw=163.172.220.1,hwaddr=00:50:56:00:f2:e7,ip=163.172.229.16/32,type=veth
net1: name=eth0,bridge=vmbr0,gw=163.172.220.1,hwaddr=00:50:56:00:f2:e9,ip=163.172.229.17/32,type=veth
ostype: centos
rootfs: local:100/vm-100-disk-1.raw,size=350G
swap: 16196
root@sd-100275:/var/lib/vz/template/cache# pveversion -v
proxmox-ve: 4.2-60 (running kernel: 4.4.15-1-pve)
pve-manager: 4.2-17 (running version: 4.2-17/e1400248)
pve-kernel-4.4.15-1-pve: 4.4.15-60
pve-kernel-4.2.2-1-pve: 4.2.2-16
lvm2: 2.02.116-pve2
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-43
qemu-server: 4.0-85
pve-firmware: 1.1-8
libpve-common-perl: 4.0-72
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-56
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6-1
pve-container: 1.0-72
pve-firewall: 2.0-29
pve-ha-manager: 1.0-33
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.3-4
lxcfs: 2.0.2-pve1
cgmanager: not correctly installed
criu: 1.6.0-1
 
I have accidentaly deleted this file : volume 'local:100/vm-100-disk-1.raw' does not exist
How to restore it ?

If you deleted it and have no backup strategy (which you always should if you run anything important) then its gone.

lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
TASK ERROR: command 'lxc-start -n 100' failed: exit code 1

Use
Code:
lxc-start -n 100 -F

to get an error explanation. But as it is the CT with the delete disk I assume that this is also the problem that it cannot start ;)

Also please stop bumping the thread all 10 minutes and deleting your old "thread-bump-messages", that's unfair regarding the other forum users.
 
I have /vzdump-lxc-100-2016_10_18-12_40_05.tmp# ls
backup error_log home lost+found opt razor-agent.log selinux var
boot etc lib media plus root sys
dev fastboot lib64 mnt proc sbin usr

Can I compress this folder and create new VM after that with this backup ?
I would like restore my VM with this dump !
 
If you deleted it and have no backup strategy (which you always should if you run anything important) then its gone. If you have some files, maybe you find some data on it. But I doubt that you can restore this completely.
 
There is no chance to restore data from recycle bin if you format disk by mistake in VMware, because all data will be erased immediately when you perform a formatting. However, formatting does erase all data permanently and completely. Simply say, you can restore data from virtual disk after quick format or complete format.
 
I have /vzdump-lxc-100-2016_10_18-12_40_05.tmp# ls
backup error_log home lost+found opt razor-agent.log selinux var
boot etc lib media plus root sys
dev fastboot lib64 mnt proc sbin usr

Can I compress this folder and create new VM after that with this backup ?
I would like restore my VM with this dump !
 

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!