Re: [Vserver] nfs client problems

From: dmanye <dmanye_at_urv.cat>
Date: Fri 02 Jun 2006 - 12:32:53 BST
Message-ID: <448021E5.6060702@urv.cat>

hi again,

now either the host and the vserver have permission to mount the share.
with this now i can "see" inside the share. but the lock problem
remains: if i mount with -o nolock the mount is immediate, but without
it it last about a couple of minutes.

i've seen that exists a lockd kernel module. if i load it from the
vserver it complaints that cannot find /lib/modules/... and if i load
from the host... the same 2 minute delay again.

if i look at the host's dmesg i see:
lockd_down: no lockd running.
portmap: server localhost not responding, timed out
RPC: failes to contact portmap (errno -5)

portmap should be running because nis in the vserver works as expected:
i can su to any user in the nis domain.

En/na dmanye ha escrit:

> En/na Martin Fick ha escrit:
>
>> --- dmanye <dmanye@urv.cat> wrote:
>>
>>
>>> hi,
>>>
>>> i need to be able from a vserser to mount an nfs
>>> share (from an external, not controlled by me server). when i try
>>> to manually mount i get: "mount: permission denied". if i do: echo
>>> CAP_SYS_ADMIN > bcapabilities then i can mount (well... i have to
>>> wait ~2 minutes) but
>>
> the two minute waiting is due to the nfs locking mechanism (which i
> don't understant very much but...). if i try to mount the share
> manually with option 'nolock' the mounting operation is immediate.
>
>>> when i try to do a simple ls on the mounted system i
>>> get a "permission denied" message.
>>>
>>
>>
>> What user are you doing the 'ls' as? Does that user
>> have permissions on the mounted share? If root, it
>> probably does NOT since the server may be using
>> root_squash. Make sure you are using a user which the
>> server grants permissions to.
>>
>>
> i'm trying to reproduce in a vserver a server i have in production
> where root or another any user is able to enter/navigate the share. in
> the vserver i tried as root and other unpriviliged accounts with no luck.
>
>> Another thing, I found that when mounting via
>> fstab.remote (which you are not doing), the server
>>
>>
> doing so worse than doing it manually: manually i have to wait near 2
> minutes, with fstab.remote is something greater than (sorry for) my 5
> minutes little patience :-(
>
>> needs to exported to both the vserver host and the
>> vserver guest for it to work.
>>
>>
> i've asked permission to the admin of the share server... i'll tell
> you when i have permission.
>
> more info may help:
> host: debian sarge/etch
> host kernel: 2.6.16-1-vserver-686
> util-vserver 0.30.210-10
> i've compiled nothing: all are debian precompiled packages.
>
> thanks.
>
>> -Martin
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com _______________________________________________
>> Vserver mailing list
>> Vserver@list.linux-vserver.org
>> http://list.linux-vserver.org/mailman/listinfo/vserver
>>
>>
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Jun 2 13:01:39 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 02 Jun 2006 - 13:01:44 BST by hypermail 2.1.8