ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General discussion (http://forum.ispsystem.com//forumdisplay.php?f=33)
-   -   openvz backup failed (http://forum.ispsystem.com//showthread.php?t=3047)

Alsaleem 06-29-2017 03:50 AM

openvz backup failed
 
I have a script that runs when making a backup copy of virtual machine:

#!/bin/bash
/bin/rm -f `find /backup/201* -mtime +1 `
/bin/mkdir /backup/`date "+%Y%m%d"`
/bin/mkdir -p /backup/tmp/
/usr/sbin/vzdump --@mail --stop --compress --all --dumpdir /backup/`date "+%Y%m%d"`/ --tmpdir /backup/tmp/

On some containers I got the error:

277: Apr 30 09:00:15 ERROR: Backup of VM 1300 failed - command '/usr/sbin/vzctl start 277' failed with exit code 32

why does the panel starts the machine too early?

ksenya 06-30-2017 03:50 AM

Hello

VMmanager database keeps informtion about vm status. If it is disabled, but the database indicates that is should be activated, VMmanager will try to start it. That's why it's better to disable a virtual machine via VMmanager, for example, using mgrctl
/usr/local/mgr5/sbin/mgrctl -m vemgr vm.stop elid=277 sok=ok


All times are GMT +2. The time now is 06:57 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.