OpenVZ Forum


Home » General » Support » VZ NFS problem ... (NFS)
VZ NFS problem ... [message #38399] Mon, 14 December 2009 21:29 Go to next message
vleduc is currently offline  vleduc
Messages: 1
Registered: December 2009
Junior Member
Hi.

I ve got a real problem with my NFS Server :

- The master host :

[root@master etc]# showmount -e
Export list for master.mydomain.com:
/www a.b.c.d

- The container :

[root@slave etc]# showmount -e a.b.c.d
Export list for master.mydomain.com:
/www a.b.c.d

[root@slave etc]# mount -t nfs a.b.c.d:/www /www
mount: a.b.c.d:/www failed, reason given by server: Permission denied

So i looked into logs :

[root@master etc]# tail -2 /var/log/messages
Dec 14 15:01:56 a.b.c.d mountd[4660]: authenticated mount request from slave:917 for /www (/www)
Dec 14 15:01:56 m1710v01 mountd[4660]: Cannot export /www, possibly unsupported filesystem or fsid= required

Sometimes, the message changes :

"kernel: Could not export filesystem via NFS with VZQUOTA on"

So i tried first to disable iptables, cfs, and all the protections to be sure there is no mistake.

I ve attached mountd with full debugging with strace, in order to match the differents strings (send, recv, read, write ...).

But there s no way. The fact is when the service nfsd is running on another box, with a RHEL5 for example, my VZ slave can mount the share. In fact the problem comes from the "master". I mean that between the master and the master-Rhel5 i cant see any difference.

Furthermore :

[root@master etc]# grep rpc /proc/filesystems
nodev rpc_pipefs
[root@master etc]# grep nfs /proc/filesystems
nodev nfs
nodev nfs4
nodev nfsd

The slave can see (and mount) NFS too. The master is unable to mount with localhost during a test.

[root@master etc]# cat exports
/www slave(rw,sync,no_wdelay,insecure_locks,no_root_squash)

Ive disabled VZQUOTA for my slave, but it doesnt seems to change ...

Could yo help me please ?

[Updated on: Tue, 15 December 2009 09:37] by Moderator

Report message to a moderator

Re: VZ NFS problem ... [message #38403 is a reply to message #38399] Tue, 15 December 2009 09:37 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi,
Quote:

"kernel: Could not export filesystem via NFS with VZQUOTA on"


Here is the answer - the problem is that you export (on the server side) via NFS a directory located on a partition with VZQUOTA enabled.
NFS server works with filesystem on a very low level and if a client changes something on a NFS volume, VZQUOTA won't know about that => thus it will work incorrectly => it was prohibited to export a partition with VZQUOTA enabled via NFS.

Just disable VZQUOTA on NFS server for the partition being exported and that should work.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: 2.6.18-164.2.1.el5.028stab066.7 VMCORE
Next Topic: Where gone diskstats on 028stab066.7 ?
Goto Forum:
  


Current Time: Thu Jul 18 15:26:19 GMT 2024

Total time taken to generate the page: 0.02646 seconds