nfs and autofs [message #32900] |
Mon, 08 September 2008 13:49 |
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:
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 |
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...
|
|
|