Detaching Containers From Caches
Whereas the
vzcache
utility helps effectively gain disk space both on the Parallels server and within Containers, there may be situations when it is necessary to detach a Container from its cache and copy the cached files back to the Container private area. A typical example of this is migrating a Container to another Parallels server. The migration is not possible if there are links in the Container private area pointing to the
/vz/template/vzcaches
directory on the server.
To copy the cached files back to the Container private area, the
vzuncache
utility is used:
# vzuncache 101 -a
[Optimization messages skipped...]
Container 101 53 magic symlinks to convert
Container 101 will be detached from the following caches:
Cache name Size
dhcp0-84.sw.ru-2005030316237 607972K
Now Container 101 can safely be migrated to another Parallels server. Note that unlike
vzcache
, the
vzuncache
utility shall be called for only one Container at a time. The
-a
switch tells the utility to detach the Container from all the cache directories specified in its configuration file as the value of the
VZCACHE
parameter.
|