2015-02-04 15:16:10

by dE

[permalink] [raw]
Subject: Cant get to export this particular directory.

Hi.

I'm trying to export a particular directory with these parameters --

/home/test/huge/temp_small/subdir
fc00::5000/124(ro,anonuid=1000,anongid=1000,subtree_check)

For all subdirectories in temp_small, the client fails to mount saying
permission denied.

mount.nfs: access denied by server while mounting.....

For any other place it works.

And because rpc.mountd has no logging features, I got no idea what's
happening.


2015-02-04 16:03:51

by Emmanuel Florac

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

Le Wed, 04 Feb 2015 20:45:49 +0530
dE <[email protected]> écrivait:

> I'm trying to export a particular directory with these parameters --
>
> /home/test/huge/temp_small/subdir
> fc00::5000/124(ro,anonuid=1000,anongid=1000,subtree_check)
>
> For all subdirectories in temp_small, the client fails to mount
> saying permission denied.

Is temp_small a mountpoint? What are the mount options?

--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <[email protected]>
| +33 1 78 94 84 02
------------------------------------------------------------------------

2015-02-04 16:08:51

by dE

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

On 02/04/15 21:33, Emmanuel Florac wrote:
> Le Wed, 04 Feb 2015 20:45:49 +0530
> dE <[email protected]> écrivait:
>
>> I'm trying to export a particular directory with these parameters --
>>
>> /home/test/huge/temp_small/subdir
>> fc00::5000/124(ro,anonuid=1000,anongid=1000,subtree_check)
>>
>> For all subdirectories in temp_small, the client fails to mount
>> saying permission denied.
> Is temp_small a mountpoint? What are the mount options?
>

No, the previous directory is (huge)

/dev/sda15 on /home/test/huge type reiser4 (rw,noatime)

2015-02-04 16:30:35

by Emmanuel Florac

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

Le Wed, 04 Feb 2015 21:38:35 +0530
dE <[email protected]> écrivait:

> No, the previous directory is (huge)
>
> /dev/sda15 on /home/test/huge type reiser4 (rw,noatime)

And does exporting from some other place in the same filesystem
(/home/test/huge/whatever) work ?

I suppose reiser4 is 64 bits. what's the inode number of
/home/test/huge/temp_small/subdir ?
I've seen problems on some systems mounting inodes with large (not 32
bits compatible) numbers.

Another problem I've seen was when mixing clients with 3.8 kernel and
servers with 3.2 kernels.

--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <[email protected]>
| +33 1 78 94 84 02
------------------------------------------------------------------------

2015-02-05 02:34:51

by dE

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

On 02/04/15 22:00, Emmanuel Florac wrote:
> Le Wed, 04 Feb 2015 21:38:35 +0530
> dE <[email protected]> écrivait:
>
>> No, the previous directory is (huge)
>>
>> /dev/sda15 on /home/test/huge type reiser4 (rw,noatime)
> And does exporting from some other place in the same filesystem
> (/home/test/huge/whatever) work ?
>
> I suppose reiser4 is 64 bits. what's the inode number of
> /home/test/huge/temp_small/subdir ?
> I've seen problems on some systems mounting inodes with large (not 32
> bits compatible) numbers.
>
> Another problem I've seen was when mixing clients with 3.8 kernel and
> servers with 3.2 kernels.
>

No. For any directory it doesn't work.

There is a stranger behavior. If I mount the parent directory of the
export like /home/test/huge/temp_small or /home/test/huge (when
/home/test/huge/whatever is exported), it mounts and only the exported
directory is accessible/seen. However all_squash flag does not appear to
be working with /home/test/huge/temp_small; I cant access
/home/test/huge/temp_small/subdir as root.

But it appears to be working for localhost.

The inodes are 32 bit. e.g. 297618, 264250, 280589 etc...

On one end I'm running the server on 3.17 and the client on 3.10.

2015-02-05 10:58:03

by Boaz Harrosh

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

On 02/04/2015 06:08 PM, dE wrote:
> On 02/04/15 21:33, Emmanuel Florac wrote:
>> Le Wed, 04 Feb 2015 20:45:49 +0530
>> dE <[email protected]> écrivait:
>>
>>> I'm trying to export a particular directory with these parameters --
>>>
>>> /home/test/huge/temp_small/subdir
>>> fc00::5000/124(ro,anonuid=1000,anongid=1000,subtree_check)
>>>
>>> For all subdirectories in temp_small, the client fails to mount
>>> saying permission denied.
>> Is temp_small a mountpoint? What are the mount options?
>>
>
> No, the previous directory is (huge)
>
> /dev/sda15 on /home/test/huge type reiser4 (rw,noatime)

Sorry if this is a stupid question, but what is "reiser4" filesystem ?

Looking at the Kernel source I have, I see registered "reiserfs" filesystem.

Reason I'm asking is because it looks a little bit like when the FS does not
support the export_operations vector. The Kernel nfsd is not very good
in complaining about it properly

Boaz

> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>


2015-02-05 12:00:12

by Mkrtchyan, Tigran

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.



----- Original Message -----
> From: "Boaz Harrosh" <[email protected]>
> To: "dE" <[email protected]>, [email protected]
> Sent: Thursday, February 5, 2015 11:58:00 AM
> Subject: Re: Cant get to export this particular directory.

> On 02/04/2015 06:08 PM, dE wrote:
>> On 02/04/15 21:33, Emmanuel Florac wrote:
>>> Le Wed, 04 Feb 2015 20:45:49 +0530
>>> dE <[email protected]> écrivait:
>>>
>>>> I'm trying to export a particular directory with these parameters --
>>>>
>>>> /home/test/huge/temp_small/subdir
>>>> fc00::5000/124(ro,anonuid=1000,anongid=1000,subtree_check)
>>>>
>>>> For all subdirectories in temp_small, the client fails to mount
>>>> saying permission denied.
>>> Is temp_small a mountpoint? What are the mount options?
>>>
>>
>> No, the previous directory is (huge)
>>
>> /dev/sda15 on /home/test/huge type reiser4 (rw,noatime)
>
> Sorry if this is a stupid question, but what is "reiser4" filesystem ?
>
> Looking at the Kernel source I have, I see registered "reiserfs" filesystem.
>
> Reason I'm asking is because it looks a little bit like when the FS does not
> support the export_operations vector. The Kernel nfsd is not very good

Then this does not explain why mounting on a local host works.

Tigran.

> in complaining about it properly
>
> Boaz
>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

2015-02-05 14:05:30

by Christoph Hellwig

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

On Thu, Feb 05, 2015 at 01:00:08PM +0100, Mkrtchyan, Tigran wrote:
> > Reason I'm asking is because it looks a little bit like when the FS does not
> > support the export_operations vector. The Kernel nfsd is not very good
>
> Then this does not explain why mounting on a local host works.

Hard to guestimate over weird out of tree code. If this is reproducible
with an in tree filesystem someone might have a chance to understand it.

2015-02-05 07:31:30

by Mkrtchyan, Tigran

[permalink] [raw]
Subject: Re: Cant get to export this particular directory.

Hi,


are you sure that your clients mount with ipv6 (as your export ipv6 only)?

Tigran.

----- Original Message -----
> From: "dE" <[email protected]>
> To: [email protected]
> Sent: Wednesday, February 4, 2015 4:15:49 PM
> Subject: Cant get to export this particular directory.

> Hi.
>
> I'm trying to export a particular directory with these parameters --
>
> /home/test/huge/temp_small/subdir
> fc00::5000/124(ro,anonuid=1000,anongid=1000,subtree_check)
>
> For all subdirectories in temp_small, the client fails to mount saying
> permission denied.
>
> mount.nfs: access denied by server while mounting.....
>
> For any other place it works.
>
> And because rpc.mountd has no logging features, I got no idea what's
> happening.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html