auotmount shares for vzyum updates
Mon, 06/13/2011 - 10:08 — sandipNote: The directions at "http://wiki.openvz.org/Install
To share the vzyum cache directory between various containers. Edit "/etc/auto.master" to include the following:
/vz/root/{vpsid}/var/cache/yum -cache /etc/auto.vzyum
Include one line for each installed or planned VPS, replacing {vpsid} with the adequate value.
Then, create "/etc/auto.vzyum" file with only this line:
share -bind,ro,nosuid,nodev :/var/cache/yum-cache/share
Restart the automounter daemon.
Edit "/vz/template/centos/5/x86_64/
cachedir=/var/cache/yum-cache/ share
Create the corresponding cachedir:
mkdir /var/cache/yum-cache/share
Test with:
vzyum {vpsid} clean all
This should create all of the yum cache directory at "/var/cache/yum-cache/share" location and should be available to the openvz container via bind mount.
Update OpenVZ containers
Wed, 07/09/2008 - 16:51 — sandipIf you manage several OpenVZ containers, here is a simple bash script to keep the OpenVZ containers upto date.
#!/bin/bash
# vzyum_updates.sh
# updates VEs
VE_LIST=$(/usr/sbin/vzlist -H -o veid | grep -v Warning)
for VE in ${VE_LIST}
do
/usr/bin/vzyum $VE update
done
exit 0
- sandip's blog
- Login or register to post comments