Article ID: 128345, created on Feb 15, 2016, last review on Feb 15, 2016

  • Applies to:
  • Virtuozzo
  • Virtual Automation 6.0

Symptoms

  1. Container backup fails with the following error:

    [root@vz ~]# vzabackup localhost -e 101
    ...
    * Operation with the Container ct-test is finished with errors: Failed to archive the Container service files.
    Backup operation for node 'vz' failed: Failed to archive the Container service files
    Error: Backup failed
    

    Sometimes the backup fails almost silently, and the latest related message, logged in VA Agent log /var/log/pva/agent/yyyy.mm.dd-vzagent.log, is

    T=00:31:46:152; L=(inf); PID=258273; TID=7fdf21744760; P=VZLOperatorCommon [doStageCmd] [doStageCmd] Processing stage backupServiceFiles
    
  2. Template directory in container's private area is not a symbolic link:

    [root@vz ~]# ls -l /vz/private/101/templates
    total 20
    drwxr-xr-x 2 root root  4096 Dec 28 02:35 centos-6-x86_64
    -rw-r--r-- 1 root root 13287 Dec 28 02:35 vzpackages
    

Cause

Container's private area has incorrect structure:

[root@vz ~]# ls -l /vz/private/101
total 20
drwxr-xr-x 2 root root 4096 Jan 27 02:34 dump
drwxr-xr-x 2 root root 4096 Jan 26 22:47 fs
drwx------ 4 root root 4096 Feb 16 00:10 root.hdd
drwxr-xr-x 2 root root 4096 Jan 26 22:47 scripts
lrwxrwxrwx 1 root root   18 Jan 26 22:47 templates    //this should be a link to root.hdd/templates
-rw-r--r-- 1 root root  710 Jan 26 22:47 ve.conf

Resolution

Move the template directory to root.hdd bundle and create a symbolic link:

[root@vz ~]# mv /vz/private/101/{,root.hdd/}templates
[root@vz ~]# ln -s root.hdd/templates /vz/private/101/templates 

In case if the templates directory is empty, apply the solution from the following article:

125606 vzpkg update fails after converting VZFS container to ploop

Search Words

Container service files

Failed to archive the Container service files

backupServiceFiles

319940068c5fa20655215d590b7be29b 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef 0889ab60fa6494de107aa7338c3c38b6

Email subscription for changes to this article
Save as PDF