Go Back   ISPsystem.com Forums > VMmanager > General discussion


Thread Tools
Old 06-29-2017, 03:50 AM   #1
Join Date: Sep 2016
Posts: 34
Alsaleem is on a distinguished road
Default 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?
Alsaleem is offline   Reply With Quote
Old 06-30-2017, 03:50 AM   #2
ISPsystem team
Join Date: Jul 2014
Posts: 409
ksenya is on a distinguished road


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
ksenya is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:10 PM.