Forums Forums (
-   General discussion (
-   -   openvz backup failed (

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/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


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 02:02 PM.

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