Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : How to recover Deleted KVM Virtual machine



Threaded Mode | Print  

 How to recover Deleted KVM Virtual machine (7 Replies, Read 248 times)
ah.foroozani
Group: Member
Post Group: Newbie
Posts: 4
Status:
I need to recover one of virtual machine which has been deleted last weekI have recover the logical volume that used by vm
what could do now?i don't know how to register this LV drive to a new machine
Code
ACTIVE            '/dev/VG1/vsv1090-dwqclbich2ejkutl-onlidrk6mworbknp' [100.00 GiB] inherit
IP: --   

How to recover Deleted KVM Virtual machine
wolke
Group: NOC
Post Group: Working Member
Posts: 194
Status:
I never tried this but I would go and create a new vm at the same node with the exact same config. Then shutdown and replace the lv name in the vm´s xml configfile with the old one and start the vm.

Edited by wolke : February 11, 2019, 10:28 pm
IP: --   

How to recover Deleted KVM Virtual machine
ah.foroozani
Group: Member
Post Group: Newbie
Posts: 4
Status:
Quote From : wolke February 11, 2019, 10:27 pm
I never tried this but I would go and create a new vm at the same node with the exact same config. Then shutdown and replace the lv name in the vm´s xml configfile with the old one and start the vm.
where is that xml file?
IP: --   

How to recover Deleted KVM Virtual machine
wolke
Group: NOC
Post Group: Working Member
Posts: 194
Status:
use

Code
virsh edit vm-id

where vm-id is the VID of your dummy vm. (e.g. like v1019)
IP: --   

How to recover Deleted KVM Virtual machine
ah.foroozani
Group: Member
Post Group: Newbie
Posts: 4
Status:
Quote From : wolke February 12, 2019, 5:14 am
use

Code
virsh edit vm-id

where vm-id is the VID of your dummy vm. (e.g. like v1019)

so i need to change it like this?
Code
    <disk type='block' device='disk'>
      <driver name='qemu'  cache='none' />
      <source dev='/dev/VG1/vsv1090-dwqclbich2ejkutl-onlidrk6mworbknp'/>
      <target dev='hda' bus='ide' />

IP: --   

How to recover Deleted KVM Virtual machine
jevingala
Group: Virtualizor Team
Post Group: Elite Member
Posts: 384
Status:
Hi,
You will also need to update the lv name in disks table from phpmyadmin on panel.You can identify vps in disks table using vps_uuid found in vps table.


-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP: --   

How to recover Deleted KVM Virtual machine
ah.foroozani
Group: Member
Post Group: Newbie
Posts: 4
Status:
Quote From : jevingala February 12, 2019, 7:42 am
Hi,
You will also need to update the lv name in disks table from phpmyadmin on panel.You can identify vps in disks table using vps_uuid found in vps table.
thanks I have successfully recover my VM from LVM disk.
IP: --   

How to recover Deleted KVM Virtual machine
jevingala
Group: Virtualizor Team
Post Group: Elite Member
Posts: 384
Status:
Hi,
Did you tried to edit the vps and increase its size by 1Gb for test ?


-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 26, 2019, 9:36 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.253