NFS problems in VE and HN [message #34295] |
Mon, 22 December 2008 12:04 |
Hirt
Messages: 2 Registered: December 2008
|
Junior Member |
|
|
Hi all!
First of all, I have already read the wiki post about NFS clients and modified my sysctl.conf. Actually I am trying to mount NFS volumes of a file server into my VEs and HN. The mount works well and I can list the root directories of the NFS shares (ls /opt/nfsshare lists all files with correct users and groups). I have exactly three mounts, one for downloads and two with home directories of two different user groups (staff, students). LDAP is used for authentification.
/etc/auto.autofs on /autofs type autofs (rw,fd=5,pgrp=14044,timeout=9000,minproto=5,maxproto=5,indirect)
fileserver:/export/staff on /autofs/staff type nfs (rw,vers=3,rsize=8192,wsize=8192,hard,intr,proto=tcp,timeo=600,retrans=2,sec=null,addr=fileserver)
fileserver:/export/student on /autofs/student type nfs (rw,vers=3,rsize=8192,wsize=8192,hard,intr,proto=tcp,timeo=600,retrans=2,sec=null,addr=fileserver)
# ls -la /local0/ | grep hirt
drwx--x--x 40 hirt users 4096 2008-12-19 18:20 hirt
So far I only used root to mount and ls the directories. If I login as a normal user via ssh I get a permission denied error:
]$ ssh hirt@ve2
hirt@linuxovz2's password:
Last login: Mon Dec 22 15:07:22 2008 from name.removed
-bash: /local0/hirt/.bash_profile: Permission denied
-bash-3.2$
Any suggentions on that? If I boot the system with the default fedora 9 kernel it works well and I can login and access the mounted directories as expected. If you look at the output of mount I posted a few lines ago you can see that tcp is used as protocol. I never configured the system to use tcp since all other boxes using the file server uses udp. Does the ovz kernel do any modifications to nfs mount and where to configure the behavior?
# uname -r
2.6.18-92.1.13.el5.028stab059.6
# vzctl --version
vzctl version 3.0.23
|
|
|
|
Re: NFS problems in VE and HN [message #34320 is a reply to message #34295] |
Tue, 23 December 2008 18:51 |
Hirt
Messages: 2 Registered: December 2008
|
Junior Member |
|
|
Quote: | As far as I understand you've tried to access ve2. How are you able to run any VE with default Fedora kernel?
|
I try to access ve2 in this example and I can't do this with the default fedora kernel. But if I boot the host with the default instead of the ovz kernel I can mount the nfs share, login via ssh with the user I used in the example. Then the permissions are applied as expected and I am able to create/edit/delete files in my the folders.
Quote: | Why don't you set appropriate options explicitly?
|
I set the options manually like I did in other systems where nfs shares are mounted and users are working with but on the ovz host and in the VEs it does not work too.
For me this problem is solved because we decided to install ubuntu. With the server version 8.04.1 nfs mounts works well now.
[Updated on: Tue, 23 December 2008 18:52] Report message to a moderator
|
|
|