xenserver problem VM disappeared
-
Greedings, I hope that i will find here the quickest answer to my problem. I have an issue with VM. This morning i have restored a pervious VM copy on a SSD disk. The name of the VM copy was " RESTORE_MSSQL-EXPRESS-2014". On the same disk the orgianl VM was stored and called " MSSQL-EXPRESS-2014". After starting up program VmBackup script at 15:30 it was saved with the name of the original VM "MSSQL-EXPRESS-2014" while the backup that was stored there "RESTORE_MSSQL-EXPRESS-2014" disappeared. I cant find it in xencenter anymore. Your aid on this matter would be appreciated.
-
What backup script are you using?
-
VmBackup.py on xenserver 7.2
-
I'm not familiar with that script.
-
how to find a lost VM
-
Does the disk for the disappeared vm show up in the xenserver datastore?
Check the SR, click on Storage tab.
If you see the disk there you an probably just recreate the vm from New VM wizard -
No, not see the disk.
-
@dariosplit said in xenserver problem VM disappeared:
No, not see the disk.
Restore from backup, if you've deleted the disk from the storage array your only choice is to recover.
-
On a side note, why are you using a backup script when you can use XOCE (Xen Orchestra Community Edition).
-
I didn't delete it, it was working fine untill 9 AM untill 3:30 PM then it just disappeared and ofcourse there was no backup during that time
-
@dustinb3403 Vmbackup worked through cron perfectly
-
@dariosplit said in xenserver problem VM disappeared:
I didn't delete it, it was working fine untill 9 AM untill 3:30 PM then it just disappeared and ofcourse there was no backup during that time
Have you performed a SR scan yet? If you can take a look and see if the disks are listed through XC, after you've scanned.
You might still find the disks and they might be orphaned.
-
@dariosplit said in xenserver problem VM disappeared:
@dustinb3403 Vmbackup worked through cron perfectly
It's not about cron or the script itself. XO (and XOCE as a branch to it) are about a better management platform with logging and everything in a single pane of glass management interface.
You might not have deleted the VM, it doesn't mean a cleanup job didn't or another admin by mistake.
-
Or your recovery job might have come in after the restore and deleted the original VM. I know some scripts have that functionality.
-
Looks like this is what he's using? https://github.com/NAUbackup/VmBackup
DO NOT RUN THIS SCRIPT UNLESS YOU ARE COMFORTABLE WITH THESE ACTIONS. For vm-export: (a) xe vm-snapshot, (b) xe template-param-set, (c) xe vm-export, (d) xe vm-uninstall on the vm-snapshot. For vdi-export: (a) xe vdi-snapshot, (b) xe vdi-param-set, (c) xe vdi-export, (d) xe vdi-destroy on the vdi-snapshot.
No idea what this actually means, but I'm guessing the backup script deleted your base disk (the snapshot?) for the recovered VM?
-
@dustinb3403 said in xenserver problem VM disappeared:
On a side note, why are you using a backup script when you can use XOCE (Xen Orchestra Community Edition).
Can't +1 this enough, it truly is great.
-
@bnrstnr NAUBackup, yeah I used that and immediately got rid of it when I found XO.
It's a solid script but dangerous if you screw up.
-
IIRC it does delete the original VM once the restore is completed.
I used it for about a month and it was why I was looking for alternatives and found XO so many years ago now.
-
Thank you all for your help but sadly i lost my VM, what is worst i dont Know why or how.
I will try with XO -
@dariosplit said in xenserver problem VM disappeared:
Thank you all for your help but sadly i lost my VM, what is worst i dont Know why or how.
I will try with XOSorry to hear that.