John Alberts wrote: > Unification was just brought up on another recent thread and I have some > questions about it that google doesn't seem to be finding the answers > for me. > > Is there any good documentation for using unification? The > linux-vserver site mentions it briefly in the FAQ section, but that's > all I could really find. John I think I can help with a couple of these. > Specifically, I'm looking for: > 1. What I would do to initially implement unification on a host with > multiple guests currently running? mkdir /etc/vservers/$GUEST/apps/vunify > 2. Is there anything special when creating a new guest that I would > like to use unification? mkdir /etc/vservers/$GUEST/apps/vunify > 3. What is the process for upgrading the guests? Can they somehow be > upgraded on one guest os and have the other guests link to those new files? I don't think. I use these scripts: vhashify.sh #!/bin/bash echo Beginning guest unification for g in \ $(find /etc/vservers/*/* -name vunify | sort | cut -d '/' -f 4 ) ; \ do \ echo -e "\tHashifying $g" ; \ vserver $g hashify ; \ done echo Begin cleanup find /vservers/.hash -type f -links 1 -print0 | xargs -0 /bin/rm echo guest unification Complete Before I run the above script I run the following one. I do use CentOS so it uses yum/vyum. If you're using a different distribution or multiple distributions with different package management methods you'll have to pound this into a different shape. vupdate.sh #!/bin/bash updateGuest() { if [ -e /etc/vservers/$g/apps/pkgmgmt/internal ]; then echo using internal yum vserver $g exec yum -y update else echo using external vyum vyum $g -- -y update fi } echo Beginning guests update for g in \ $(find /etc/vservers/*/* -name vunify | sort | cut -d '/' -f 4 ) ; \ do \ echo -en "\tUpdating $g" ; \ updateGuest ; \ done echo guest updates Complete There is a vupdateworld script but I've never taken the time to see if it does what I want it to. Mine looks to see if package management is internalized. > 4. Are there any gotchas to look out for when using unification? > Special things that need to be done when adding or removing applications > or files from a single guest os that is using unification for instance? My understanding is if you're not using a RPM based distribution you may have to do a bit more preparation so the unification doesn't unify files it shouldn't. Good Computing, Rod -- > > Thanks > John Alberts > > > -- > John Alberts >