OpenVZ Forum


Home » General » Support » nfs and autofs
nfs and autofs [message #32900] Mon, 08 September 2008 13:49 Go to next message
ajw1980 is currently offline  ajw1980
Messages: 1
Registered: September 2008
Junior Member
So I've been playing around with openvz and I really need autofs and nfs working.

AFAICT bind mounts don't work with autofs, right? I did discover that I can create a new automount process on the HN with something like this:
automount --timeout=60 /vz/root/101/home file /etc/auto.openvz


Where /etc/auto.openvz contains this:
*       :/home/&


The HN mounts the correct directory from the NFS server and then the additional automount daemon does bind mounts to /vz/root/101/home. The VE then gets all the /home mounts correct.

Does anyone else do it like this? Are there any issues?

Andy
Re: nfs and autofs [message #32927 is a reply to message #32900] Tue, 09 September 2008 07:37 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi Andy,

well, looks like you are right, bindmounts are mounted on a Container's start and are not used with autofs.

But probably you can use nfs mounts right inside a Container?
http://wiki.openvz.org/NFS

Hope that helps.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: Server Doesnt Respond After Installing HyperVM/OpenVZ?
Next Topic: [solved] Dynamic Resource Allocation Not Working
Goto Forum:
  


Current Time: Wed Aug 07 20:25:49 GMT 2024

Total time taken to generate the page: 0.04727 seconds