Download Parallels Virtuozzo Containers for Linux
Transcript
Advanced Tasks 354 Upgrading VZFS It goes without saying that all new Virtuozzo Containers installations enjoy all the benefits of VZFS v2 without having to worry about compatibility with the previous VZFS version. On newly-installed systems both EZ templates and Container private areas are installed and created on the basis of VZFS v2. And even if you are upgrading your existing Virtuozzo system to version 4.0 (and thus, to VZFS v2), this process remains almost wholly transparent for the administrator. Even if you do not know anything about VZFS and its versions, the legacy Containers will continue operating as usual on VZFS v1. For newly-created Containers to use VZFS v2 and all its advantages, it is sufficient to issue a single vzpkg update cache command to recreate the caches of the installed OS EZ templates. So what exactly happens to VZFS when a Virtuozzo Containers 3.0 or 3.0 SP1 system is upgraded to version 4.0? Upgrading templates The first thing to note is that the upgrade does not affect standard Virtuozzo templates in any way. Both these templates and Container private areas based on these templates will continue to operate on the previous version of VZFS, and there is nothing the Hardware Node administrator can or should do in this respect. As to EZ templates, they are upgraded automatically to VZFS v2, and no additional actions are required for application templates. However, the OS EZ template caches on the basis of which new Containers are created will still use VZFS v1. So, you need to complete the following tasks to make all newly created Containers on the Hardware Node automatically use VZFS v2: Make sure that the value of the VEFORMAT parameter in the Virtuozzo global configuration file (/etc/vz/vz.conf) is set to vz4: # grep /etc/vz/vz.conf VEFORMAT="vz4" Recreate the OS EZ template caches on the basis of which new Containers will be created using the vzpkg remove cache and vzpkg create cache commands. For example, to upgrade the cache of the fedora-core-8-x86 OS EZ template, you can run the following commands on the Hardware Node: # vzpkg remove cache fedora-core-8-x86 # vzpkg create cache fedora-core-8-x86 From this moment on, when a Container is created on the basis of the fedora-core-8-x86 OS EZ template, its private area will use VZFS v2. At any time you can revert to VZFS v1 by changing the value of the VEFORMAT parameter in the Virtuozzo configuration file (/etc/vz/vz.conf) from vz4 to vz3. Upgrading Container private areas Upgrading templates is almost transparent, and the only thing where a manual intervention is possible is upgrading existing Containers to VZFS v2. Please keep in mind that this upgrading is not at all necessary to maintain the proper of operation of these Containers. Even though the corresponding EZ template has already been upgraded to VZFS v2, the Container can still use VZFS v1 and be perfectly compatible with the template. The process of upgrading such Containers can be regarded as an optimization only and as such can be planned for whatever convenient time after the upgrade of Virtuozzo proper.