Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: john56 on November 15, 2016, 06:33:10 PM

Title: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 15, 2016, 06:33:10 PM
Hello,
I use sme server 9.1 virtualized with hyperv under windows 2012 R2.
The whole works very well overall. However, when backing up by WindowsServer, the backup of sme server indicates an error.
The other machines virtualized under windows have no problem.
You will tell me that it is a windows problem so it does not do anything here, but it would seem that the backup of sme does not happen because it can not make backup because the sme is in Operation (maybe?). A search track could be the linux integration tools under hyperv that I did not use on the sme (I do not find them and I do not want to do stupidity ... more I'm afraid that, With each kernel change this causes a problem to see a kernel panic as I read on some forums).

Here is the error message:
Quote
Échecs de l’enregistreur
ID d’enregistreur : {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}
ID d’instance : {684009BB-88A8-49B3-BE04-677FD742892C}
Nom de l’enregistreur : Microsoft Hyper-V VSS Writer
État de l’enregistreur : 5
Résultat de l’échec : 80042336
Résultat de l’application : 80004005
Message de l’application : (null)
   Composant : 7C0255DE-DF0E-4559-9F9B-5A7F8E386C14
   Chemin logique : (null)
   Résultat du composant : 800423F4
   Message du composant : Impossible de créer le point de contrôle de sauvegarde pour l’ordinateur virtuel « BUZZ » : Erreur non spécifiée (0x80004005). (ID d’ordinateur virtuel 7C0255DE-DF0E-4559-9F9B-5A7F8E386C14)
       Spécification de fichier : D:\HyperV\BUZZ\Virtual Machines\\7C0255DE-DF0E-4559-9F9B-5A7F8E386C14.xml Récursif : 0
       Spécification de fichier : D:\HyperV\BUZZ\Virtual Hard Disks\\BUZZ.vhdx Récursif : 0
       Spécification de fichier : D:\HyperV\BUZZ\Snapshots\E67E7D38-3AF8-4957-BDB8-9223AE592313.xml Récursif : 0
       Spécification de fichier : D:\HyperV\BUZZ\Virtual Hard Disks\BUZZ_E67E7D38-3AF8-4957-BDB8-9223AE592313.avhdx Récursif : 0
*-----------------------------*


Sauvegarde de l’application
ID d’enregistreur : {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}
   Composant : 7C0255DE-DF0E-4559-9F9B-5A7F8E386C14
   Légende    : Online\BUZZ
   Chemin logique :
   Erreur         : 80780175
   Message d’erreur   : Le composant a été ignoré lors de la copie du cliché instantané.

   Erreur détaillée : 800423F4
   Message d’erreur détaillée : L’enregistreur a rencontré une erreur non temporaire. Si le processus de sauvegarde
est relancé, il est probable que l’erreur se reproduise.

Thank you for you precious help.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 15, 2016, 06:55:34 PM
I don't know anything about windows hyperv (and I admit that I won't touch it neither with a long pole...), anyway, thinking about ESX or virtualbox, is there any kind of "guest tools" to install onto VMs?

and, other question, is your SME the only linux machine?

BTW, you'd better use the backup feature and backup the content only, because the restoring time is almost identical..
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 15, 2016, 07:03:41 PM
Yes it is the only linux machine. I also backup with the standard backup dar.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 15, 2016, 08:16:34 PM
Yes it is the only linux machine.

don't ask me why but I already know the answer :-)

Quote
I also backup with the standard backup dar.

then don't backup the VM.. installing SME is a matter of few minutes, and the restoring will take the same time..
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 15, 2016, 08:43:21 PM

First, I would like to understand. In addition, the file server is a server in a school and there is a lot of data to restore (by the lan currently). So I would like to use the hyperv backup that it is with usb3 hard drive.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 15, 2016, 08:55:38 PM
well, since is a windows issue (I bet 55€c), I'd start from searching with google for "hyperv linux centos 6 client"..

if you find a solution, please give us feedback, thank you
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 15, 2016, 08:58:09 PM
I tried with "yum install hyperv-daemons" but that did not help me.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 15, 2016, 09:00:01 PM
well.. is that rpm available in Centos repos? can you give us some details? almost no one here is using hyperv, so you've to be verbose..
where did you find you have to install such a package?
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 15, 2016, 09:09:52 PM
https://www.centos.org/forums/viewtopic.php?t=48989
https://social.technet.microsoft.com/Forums/office/en-US/2e86d55b-d02f-4e5e-abc9-bf178e7c0871/rhelcentos-66-hypervdaemons?forum=linuxintegrationservices

and maybe https://oli.new-lan.de/2015/08/windows-server-backup-fehler-800423f4-bei-centos-6-7-vm-mit-selinux/
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 15, 2016, 09:19:14 PM
ok.. I see hyperv-daemons is available from centos' repos..
are you sure they are running?

please be aware that SME is not a plain centos, so maybe you have to tweak something..

I suggest you to create an empty test machine in hyperv and try to make it work..

after you installed the rpms, check that daemons are running after a reboot.. if not, you can follow this way:

Code: [Select]
config set servicename service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service SXYservicename

where servicename must be the same of the related file(s) you find in /etc/rc.d/init.d
XY gives the starting order.. the higher the number, the later it will be started

maybe you have to repeat the same thing for each service you install with those rpms..

try and let us know
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 15, 2016, 10:03:59 PM
Your message made me think about the real launch of services. So I resumed a forum that I had already read.

/etc/init.d/hypervkvpd start
/etc/init.d/hypervvssd start

And the backup just launched for the first time! Great!

Answer tomorrow morning!
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 16, 2016, 06:04:28 AM
it works ! That was the solution! Start the daemons ...
For information, The backup lasted one hour and the restoration also. (200 Go with a usb3 hard disk).

Thank you very much Stephano, your message helped me.

So, to install integration tools with hyperv (backup with vss), first you have to enable centos packets and :

Quote
yum install hyperv-daemons
/etc/init.d/hypervkvpd start
/etc/init.d/hypervvssd start

Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: guest22 on November 16, 2016, 06:15:32 AM
Please see the wiki on how to enable auto start services on (re)boot.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 16, 2016, 06:41:49 AM
You have right RequestedDeletion.  Have you a direct link to explain the command ?
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: guest22 on November 16, 2016, 06:43:36 AM
as an example: https://wiki.contribs.org/Random_Strong_Password_Generator#Start_at_boot (https://wiki.contribs.org/Random_Strong_Password_Generator#Start_at_boot)


By the looks of it, you need to create 2 services.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 16, 2016, 07:23:18 AM
You have right RequestedDeletion.  Have you a direct link to explain the command ?
See my previous post
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: guest22 on November 16, 2016, 07:28:28 AM
See my previous post


Correct Stefano, missed that.
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 16, 2016, 07:29:33 AM
Of course Stephano.
What is the command to watch boot log and the detailed process ? (I've an an error but not enough time to read it)
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 16, 2016, 07:32:07 AM
well.. take a look at /var/log/messages and dmesg
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 16, 2016, 07:32:36 AM
so. The final commands are

Quote
yum install hyperv-daemons

config set hypervkvpd service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S99hypervkvpd

config set hypervvssd service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S99hypervvssd
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 16, 2016, 07:34:23 AM
I'd say yes, but you're the only one that can confirm :-)
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 16, 2016, 06:39:51 PM
 :-P

I made a mistake in the seizure, for example

Quote
config set hypervkvpddddd service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S99hypervkvpddddd

Now I have the service hypervkvpddddd (unuseful) that appears in the server-manager, how do I delete it?

Thanks ;)
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 16, 2016, 06:49:06 PM
:-P

I made a mistake in the seizure, for example

Now I have the service hypervkvpddddd (unuseful) that appears in the server-manager, how do I delete it?

Thanks ;)

where do you see it? AFAIK there's no services in S-M, so I guess you're using a contrib
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: john56 on November 16, 2016, 07:29:25 PM
this one.
https://wiki.contribs.org/Service_Control
Title: Re: error backup sme 9.1 virtualized under hyperv (Windows)
Post by: Stefano on November 16, 2016, 09:38:54 PM
Delete the unuseful symbolic link and then
Code: [Select]
config delete unuseful_service