we are using acronis cyber protection to backup virtuozzo containers on our HWN. 40.000 devices are doing daily backup fine on 200 HWNs, but a few container daily backups are failing . for example virtual server (device) h1474622:
07:21 AM — 07:22 AM (25 sec)
Protection plan 'h1474622-device-daily'
Status:Error
Customer:vsrird
Device:1474622
Plan:h1474622-device-daily
Started by:On schedule
Start time:Sep 14, 2024, 07:21:52 AM
Finish time:Sep 14, 2024, 07:22:18 AM
Duration:25 sec
Operation failed because the Virtuozzo API returned an error 'Virtual machine '138D79BA-BE1B-4952-B93F-C2A96D3A2AFC' is not found.'
Can you help me to debug it ? I have access to the acronis console, and to the HWN via ssh as root
Assistant
I'm sorry to hear you're experiencing issues with the backups. Based on the error message:
code
Operation failed because the Virtuozzo API returned an error 'Virtual machine '138D79BA-BE1B-4952-B93F-C2A96D3A2AFC' is not found.'
This indicates that the Acronis backup agent is attempting to interact with a virtual machine (VM) identified by the UUID 138D79BA-BE1B-4952-B93F-C2A96D3A2AFC, but the Virtuozzo API reports that this VM does not exist. Let's go through the steps to debug this issue.
1. Verify the VM's Existence on the HWN
SSH into the HWN:
Log in to the HWN where the problematic container (device) h1474622 resides:
bash
ssh root@<HWN_IP_ADDRESS>
List all VMs and Containers:
Depending on your Virtuozzo version, use the appropriate command to list all the VMs and containers along with their UUIDs:
For Virtuozzo 7 and above:
bash
prlctl list -a -i
For older versions:
bash
vzlist -a -o veid,name,uuid
Check for the UUID:
Search for the UUID 138D79BA-BE1B-4952-B93F-C2A96D3A2AFC in the output. You can use grep to simplify this:
bash
prlctl list -a -i | grep -i "138D79BA-BE1B-4952-B93F-C2A96D3A2AFC"
If the VM does not exist:
It might have been deleted or moved.
Proceed to step 2 to verify the backup configuration.
If the VM exists:
There could be an issue with the VM’s registration or state.
Proceed to step 3.
2. Verify the Backup Plan in Acronis Console
Access the Acronis Console:
Login to your Acronis management console.
Locate the Backup Plan:
Find the protection plan named h1474622-device-daily.
Check which devices and VMs are included in this plan.
Verify the VM Association:
Ensure that the VM with UUID 138D79BA-BE1B-4952-B93F-C2A96D3A2AFC is correctly associated with h1474622.
If the VM has been recreated or cloned, it might have a different UUID now.
Update the Backup Plan:
If necessary, update the backup plan to include the correct VM.
Remove any entries that refer to non-existent VMs.
3. Check VM Registration and State
Check VM Registration:
Sometimes VMs can become unregistered. To register a VM:
bash
prlctl register /path/to/vm/config.pvs
Check VM State:
Ensure the VM is in a running or stopped state and not in an invalid or corrupted state.
Repair the VM (if necessary):
If the VM is corrupt, you might need to repair it.
4. Examine Virtuozzo Logs for Errors
Locate the Logs:
Virtuozzo logs are typically located in /var/log/.
Check the Following Logs:
vzctl.log
parallels.log
Any other relevant logs like messages or syslog.
Look for Errors at the Time of Backup Failure:
Check for any error messages around Sep 14, 2024, 07:22 AM.
5. Verify Acronis Agent Functionality
Check Agent Status:
Ensure the Acronis agent on the HWN is running properly.
bash
systemctl status acronis_agent
Restart the Agent:
bash
systemctl restart acronis_agent
Update the Agent:
Make sure the agent is up to date.
bash
acronis_agent_update
6. Test a Manual Backup
Try initiating a manual backup of the VM or container to see if it succeeds.
If the manual backup works, there might be an issue with the scheduled task.
If it fails, note any error messages for further analysis.
7. Check for Recent Changes
Hardware Changes:
Have there been any changes to the HWN hardware or storage?
Software Updates:
Were there any recent updates or patches applied to Virtuozzo or the Acronis software?
VM Modifications:
Has the VM been migrated, cloned, or had its configuration changed recently?
8. Review Acronis and Virtuozzo Compatibility
Ensure that the versions of Acronis Cyber Protection and Virtuozzo you're using are compatible.
Check the Acronis documentation for supported Virtuozzo versions.
9. Recreate the VM (if necessary)
If the VM is crucial and cannot be found or fixed, you might need to restore it from a previous backup or recreate it.
10. Contact Support
If none of the above steps resolve the issue:
Acronis Support: They can provide insights specific to the Acronis software.
Virtuozzo Support: If the issue seems to be with Virtuozzo.
Summary
Identify if the VM with the specified UUID exists.
Verify that the backup plan is correctly configured in the Acronis console.
Check for any recent changes that might affect the VM's UUID or state.
Examine logs for more detailed error messages.
Ensure all software is up to date and compatible.
By following these steps, you should be able to identify why the backup is failing for certain containers and resolve the issue. If you need further assistance, please provide any additional error messages or logs, and I'll be happy to help.