Editing Using vzpkg and vzyum on x86 64

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 153: Line 153:
 
:<code>cachedir=/var/cache/yum-cache</code>
 
:<code>cachedir=/var/cache/yum-cache</code>
  
{{Note| <b>1)</b> With these changes, vzyum won´t be able to use a common cache directory to all [[container]]s as it used to do. Each [[container]] will have its own cache directory.
+
{{Note| With this changes, vzyum is not going to be able to use a common cache directory to all [[container]]s as it was used to do. Each [[container]] will have it's own cache directory.
To avoid to have a directory named /vz/template/centos/4/x86_64/yum-cache in each [[container]], it is preferable to use the correct cache directory /var/cache/yum-cache.
+
To avoid to have a directory named /vz/template/centos/4/x86_64/yum-cache in each [[container]], it is preferable to use the correct cache directory /var/cache/yum-cache.}}
  
<b>2)</b> To set up a common cache directory, you can use the autofs/automounter daemon together with [[Bind_mounts]] as described in <b>step 12</b>. Using a shared cache may save a lot of network traffic when installing new VPSs.}}
 
  
  
Line 392: Line 391:
  
  
===== STEP 12 =====
 
 
To share the vzyum cache directory between various [[containers]], <b>after all is set up</b>, edit your /etc/auto.master to include the following:
 
:<code>/vz/root/{vpsid}/var/cache/yum-cache    /etc/auto.vzyum</code>
 
Include one line for each installed or planned VPS, replacing {vpsid} with the adequate value.
 
 
Then, create a /etc/auto.vzyum file with only this line:
 
:<code>*    -bind,ro,nosuid,nodev :/var/cache/yum-cache/&</code>
 
This file won´t need to be changed, even after you add more containers.
 
Restart the automounter daemon.
 
 
{{Note| Make sure these changes won´t interfere with other automounts you may already have set up. If you don´t already use autofs/automount, it is safe to comment out other settings in auto.master.}}
 
  
 
== TESTING THE NEW CODE ==
 
== TESTING THE NEW CODE ==

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: