Re: nscd on VE [message #26839 is a reply to message #26830] |
Sat, 02 February 2008 23:59  |
edel
Messages: 3 Registered: January 2008 Location: Naga City, Philippines
|
Junior Member |
|
|
hello maratrus,
thank you very much for the reply.
i was already thnking of recompiling nscd before, however i couldnt find the source for centos5. and honestly, i didnt tried hard enough. since it's a nss, im thinking its part of glibc. not sure. maybe, when i have the time, i'll look into it.
i also tried setting setting up nsscache[1], but didnt get it to work.
for now, here's my workaround (for the benefit of others):
1. on HN, setup nss_ldap and nscd as usual
2. HN's /var/run/nscd is on tmpfs (1mb)
3. HN's /var/db/nscd is on 10mb loopback-mounted image
4. mount (--bind) HN's /var/{run,db}/nscd to /vz/root/${VEID}/var/{run,db}/nscd (via $VEID.mount)
reason for #2/3 is that i dont want to give HN's /var partition open/fully accessible to VEs.
and it appears working.
i got this idea from the mysql/shared hosting form the openvz wiki.
openvz is great!
thanks.
--edel
[1] http://code.google.com/p/nsscache/
|
|
|