Article ID: 120137, created on Feb 14, 2014, last review on May 11, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


A container, based on standard templates, gets modified permissions on some files after migration:

Before the migration:

[root@vz ~]#  ls -alh /vz/private/101/fs/root/etc/localtime
lrw-r--r-T 1 root root 45 Oct 18  2006 /vz/private/101/fs/root/etc/localtime -> ////redhat-as4/glibc-2.3.4-2.25/etc/localtime

T-bit is set, indicating that it's a COW'ed file, the content of which has been modified and is now different from the corresponding target in the template area.

After the migration:

[root@vz2 ~]# ls -alh /vz/private/101/fs/root/etc/localtime
lrwxrwxrwx 1 root root 45 Oct 18  2006 /vz/private/101/fs/root/etc/localtime -> ////redhat-as4/glibc-2.3.4-2.25/etc/localtime

T-bit is lost, and the file starts to point to the template area again, so the original content of the file is effectively lost.


Migration utilities incorrectly handle COW'ed files (product bug PCLIN-32402).

Note, that standard templates are considered deprecated in favor of EZ templates, so it is highly recommended to move to the newer versions of OS templates.


Perform VZFS optimization prior to the migration:

# vzfsutil -t /vz/template --oA=d /vz/private/101

Search Words

symlinks standard template migration

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF