2002-09-03 16:02:12

by Anders Widman

[permalink] [raw]
Subject: NFS problems..

Hello!

Running RedHat 7.3 I am trying to use NFS to export root. It
doesn't work. Exporting any subfolder works... This is my exports
file:

/usr/src/ 192.168.0.100(rw,no_root_squash,insecure)
/ 192.168.0.100(rw,no_root_squash,insecure)

When using "exportfs -a" I get an error:

192.168.0.100:/: Invalid argument

Then, when I am trying to mount from the client:

mount -tnfs 192.168.0.101:/mnt/root/ /mnt/server/
mount: 192.168.0.101:/mnt/root/ failed, reason given by server: Permission denied

And the server syslog contains this:

rpc.mountd: authenticated mount request from 192.168.0.100:752 for / (/)
rpc.mountd: getfh failed: Operation not permitted

What am I doing wrong?

- Anders



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2002-09-03 16:12:36

by Bernd Schubert

[permalink] [raw]
Subject: Re: NFS problems..

Hi,

I'm afraid exporting subfolders of an already exported directory doesn't work,
and so it doesn't when you try to export vice versa.

Regards, Bernd

On Tuesday 03 September 2002 18:01, Anders Widman wrote:
> Hello!
>
> Running RedHat 7.3 I am trying to use NFS to export root. It
> doesn't work. Exporting any subfolder works... This is my exports
> file:
>
> /usr/src/ 192.168.0.100(rw,no_root_squash,insecure)
> / 192.168.0.100(rw,no_root_squash,insecure)
>
> When using "exportfs -a" I get an error:
>
> 192.168.0.100:/: Invalid argument
>
> Then, when I am trying to mount from the client:
>
> mount -tnfs 192.168.0.101:/mnt/root/ /mnt/server/
> mount: 192.168.0.101:/mnt/root/ failed, reason given by server:
> Permission denied
>
> And the server syslog contains this:
>
> rpc.mountd: authenticated mount request from 192.168.0.100:752 for /
> (/) rpc.mountd: getfh failed: Operation not permitted
>
> What am I doing wrong?
>
> - Anders
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs

--
Bernd Schubert
Physikalisch Chemisches Institut
Abt. Theoretische Chemie
INF 229, 69120 Heidelberg
Tel.: 06221/54-5210
e-mail: bernd (dot) schubert (at) pci (dot) uni-heidelberg (dot) de


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2002-09-03 16:34:29

by Anders Widman

[permalink] [raw]
Subject: Re: NFS problems..

> Hi,

> I'm afraid exporting subfolders of an already exported directory doesn't work,
> and so it doesn't when you try to export vice versa.

I read that also.. but only exporting / (root) doesn't work either.
That is my real problem.

//Anders

> Regards, Bernd

> On Tuesday 03 September 2002 18:01, Anders Widman wrote:
>> Hello!
>>
>> Running RedHat 7.3 I am trying to use NFS to export root. It
>> doesn't work. Exporting any subfolder works... This is my exports
>> file:
>>
>> /usr/src/ 192.168.0.100(rw,no_root_squash,insecure)
>> / 192.168.0.100(rw,no_root_squash,insecure)
>>
>> When using "exportfs -a" I get an error:
>>
>> 192.168.0.100:/: Invalid argument
>>
>> Then, when I am trying to mount from the client:
>>
>> mount -tnfs 192.168.0.101:/mnt/root/ /mnt/server/
>> mount: 192.168.0.101:/mnt/root/ failed, reason given by server:
>> Permission denied
>>
>> And the server syslog contains this:
>>
>> rpc.mountd: authenticated mount request from 192.168.0.100:752 for /
>> (/) rpc.mountd: getfh failed: Operation not permitted
>>
>> What am I doing wrong?
>>
>> - Anders
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by: OSDN - Tired of that same old
>> cell phone? Get a new here for FREE!
>> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>> _______________________________________________
>> NFS maillist - [email protected]
>> https://lists.sourceforge.net/lists/listinfo/nfs



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2002-09-03 18:58:56

by Bernd Schubert

[permalink] [raw]
Subject: Re: NFS problems..

On Tuesday 03 September 2002 18:33, Anders Widman wrote:
> > Hi,
> >
> > I'm afraid exporting subfolders of an already exported directory doesn't
> > work, and so it doesn't when you try to export vice versa.
>
> I read that also.. but only exporting / (root) doesn't work either.
> That is my real problem.
>
> //Anders
>

Ah, now I understand.

> / 192.168.0.100(rw,no_root_squash,insecure)

Is '/' perhaps already an imported directory?


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2002-09-03 19:12:30

by Anders Widman

[permalink] [raw]
Subject: Re: NFS problems..

> On Tuesday 03 September 2002 18:33, Anders Widman wrote:
>> > Hi,
>> >
>> > I'm afraid exporting subfolders of an already exported directory doesn't
>> > work, and so it doesn't when you try to export vice versa.
>>
>> I read that also.. but only exporting / (root) doesn't work either.
>> That is my real problem.
>>
>> //Anders
>>

> Ah, now I understand.

>> / 192.168.0.100(rw,no_root_squash,insecure)

> Is '/' perhaps already an imported directory?


What do you mean by "imported directory".. This is my FSTAB file on
the server:

/dev/hde2 / reiserfs defaults 1 1
/dev/hde1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hde3 swap swap defaults 0 0



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2002-09-03 19:29:54

by Bernd Schubert

[permalink] [raw]
Subject: Re: NFS problems..

On Tuesday 03 September 2002 21:11, Anders Widman wrote:
> > On Tuesday 03 September 2002 18:33, Anders Widman wrote:
> >> > Hi,
> >> >
> >> > I'm afraid exporting subfolders of an already exported directory
> >> > doesn't work, and so it doesn't when you try to export vice versa.
> >>
> >> I read that also.. but only exporting / (root) doesn't work either.
> >> That is my real problem.
> >>
> >> //Anders
> >
> > Ah, now I understand.
> >
> >> / 192.168.0.100(rw,no_root_squash,insecure)
> >
> > Is '/' perhaps already an imported directory?
>
> What do you mean by "imported directory".. This is my FSTAB file on
> the server:

I meant imported e.g. via nfs.

>
> /dev/hde2 / reiserfs defaults 1 1
> /dev/hde1 /boot ext3 defaults 1 2
> none /dev/pts devpts gid=5,mode=620 0 0
> none /proc proc defaults 0 0
> none /dev/shm tmpfs defaults 0 0
> /dev/hde3 swap swap defaults 0 0
>

Hmm, very strange, I can reproduce your error message on our clients, where /
is imported via nfs, but the server exports its / and I can't get this
message there.

Sorry but now I'm out of ideas.




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs