AutoFS/NFS [message #4960] |
Fri, 04 August 2006 19:42 |
bkosick
Messages: 4 Registered: August 2006
|
Junior Member |
|
|
Hi All,
I have a non-VZ NFS server with a few exports that I use autofs/automount to mount /home and /software as needed. I am having issues getting autofs to work properly on a VZ-VPS
/usr/sbin/automount --timeout=60 /home file /etc/auto.home
[root@qavmXX ~]# !ps
ps ax | grep auto
27830 ttyp0 S 0:00 /usr/sbin/automount --timeout=60 /home file /etc/auto.home
27835 ttyp0 S+ 0:00 grep auto
[root@qavmXX ~]# ls -l /home/bkosick
ls: /home/bkosick: No such file or directory
There's no corresponding error in /var/log/messages
autofs works just fine on the HW node.
Anyone run into this before? I've read that VZ has issues with NFS server (SW-Soft thinks that NFS is too unstable under linux!) but that the client should work.
[Edit]
The Node is running FC5/2.6.16-1.2111_FC5.026test012smp the VPS is running RHEL4
Also, I just read a threat stating that there are 2-3 kernel patches to apply before NFS clients will work. Is this true? and if so where do I get them?
[Updated on: Fri, 04 August 2006 20:36] Report message to a moderator
|
|
|
Re: AutoFS/NFS [message #4972 is a reply to message #4960] |
Mon, 07 August 2006 06:20 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
1. In OpenVZ kernel from rpm autofs is off, so
if you want to use autofs on HOST with OpenVZ you should
recompile your kernel with CONFIG_AUTOFS_FS, CONFIG_AUTOFS4_FS
parameters on.
2. However autofs (and nfs) are not virtualized,
so you can't use it inside VE.
3. You can mount autofs somethere on HOST,
and then do --bind mount inside any VE you wish.
May be such scenario passes for you.
4. Yeap, there were some patches here at forum,
that makes autofs/nfs available in VE. Try to use search.
However, after such patching you kernel becomes unsecure.
HTH, vass.
[Updated on: Mon, 07 August 2006 06:21] Report message to a moderator
|
|
|
|
|
|
Re: AutoFS/NFS [message #5061 is a reply to message #5000] |
Wed, 09 August 2006 18:28 |
bkosick
Messages: 4 Registered: August 2006
|
Junior Member |
|
|
OK,
I've tested it out, and it doesn't seemd to work very well. I reported earlier that the autofs worked on the HW node with the fedora kernel... Well it does kinda...
For example. After starteing autofs on the HW node, you can do a "ls /home/bkosick" and it works fine. However if you immediately do the same thing on another user "ls /home/lchamp". It comes back with "No such file or directory". Wait a few minutes, and do the "ls /home/lchamp" command it suddenly works. Note that /home/bkosick is still mounted.
so with these still mounted, I perform the mount --bind command
mount --bind /home /vz/root/334/home
then enter the VPS, vzctl enter 334
and do an "ls /home/bkosick" it comes back with no such file or directory.
ls bkosick
ls: bkosick: No such file or directory
-bash-3.00# ls /home/bkosick
ls: /home/bkosick: No such file or directory
-bash-3.00# cd /home/bkosick
-bash-3.00# ls
ls: .: No such file or directory
Doh!
|
|
|