Skip to contentSkip to conversation

NFS problems..

DISCUSSION Anders Widman 2 participants 6 messages Sep 3, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 37 lines · Anders Widman

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

Signature · 15 lines
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
#2 lore raw
Quoted 4 lines

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

Quoted 40 lines

Regards, Bernd

Quoted 37 lines · Anders Widman

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

#3 lore raw
Quoted 10 lines · Anders Widman
Quoted 4 lines

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.

Quoted 1 line

/ 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

#4 lore raw
Quoted 9 lines · Anders Widman
Quoted 8 lines
Quoted 4 lines

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.

Quoted 8 lines
Quoted 2 lines

//Anders

Ah, now I understand.

Quoted 1 line

/ 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

#5 lore raw
Quoted 11 lines · Anders Widman
Quoted 11 lines · Anders Widman
Quoted 9 lines
Quoted 4 lines

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

Quoted 8 lines
Quoted 5 lines

Ah, now I understand.

Quoted 1 line

/ 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.

Quoted 8 lines
/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