Skip to contentSkip to conversation

ReiserFS and NFS?

DISCUSSION Anders Widman 2 participants 3 messages Sep 3, 2002 – Sep 4, 2002

lore
Share & tools
lore
#0 lore raw

Hello!

I am trying to use ReiserFS with NFS to work nicely, but I ran into troubles exporting root (/). I am getting the following error when
a client tries to connect to the root export (I am using
ReiserFS on root filesystem):

rpc.mountd: getfh failed: Operation not permitted

After browsing around different mailing lists and read suggestions about Kernel and NFS utils I found that someone said that there was needed patches to use ReiserFS with NFS?

Right now my exports file looks like this:

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

The /usr/src/ share does work.

Is this something someone might know how to fix?

Regards,
Anders Widman

#1 lore raw

Hello!

Quoted 9 lines · Anders Widman

I am trying to use ReiserFS with NFS to work nicely, but I ran into troubles exporting root (/). I am getting the following error when
a client tries to connect to the root export (I am using
ReiserFS on root filesystem):
rpc.mountd: getfh failed: Operation not permitted
After browsing around different mailing lists and read suggestions about Kernel and NFS utils I found that someone said that there was needed patches to use ReiserFS with NFS?

Hmmm.
What kernel are you using? What nfs server?
2.4.19 with stock knfsd:
angband:~ # cat /etc/exports
/ (ro)

bowl:~# mount angband:/ /mnt/testfs -t nfs
bowl:~# ls /mnt/testfs/
.   bin   cdrecorder  dev  floppy  lib    mnt  proc    root  testfs0  tmp  var
..  boot  cdrom       etc  home    media  opt  rescue  sbin  testfs1  usr

Changing config:
angband:~ # cat /etc/exports
/ (rw,no_root_squash,insecure)
angband:~ # exportfs -a
exportfs: No host name given with / (rw,no_root_squash,insecure), suggest *(rw,no_root_squash,insecure) to avoid warning

bowl:~# ls /mnt/testfs/
.    boot        dev     home   mnt   rescue  testfile  tmp
..   cdrecorder  etc     lib    opt   root    testfs0   usr
bin  cdrom       floppy  media  proc  sbin    testfs1   var

Everything works ok.

But now (/rescue is another mount point):

bowl:~# mount angband:/rescue /mnt/testfs -t nfs
Sep  4 10:06:17 angband rpc.mountd: authenticated mount request from 212.16.7.82:916 for /rescue (/)
Sep  4 10:06:17 angband rpc.mountd: getfh failed: Operation not permitted
Quoted 5 lines

Right now my exports file looks like this:

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

Is this something someone might know how to fix?

What if you allow anyone to connect (use * instead of address?) Look into logs on on nfs server side for more clues, enable debug.

Basically I do not think yo are experiencing reiserfs problem, but it rather looks like nfs server configuration problem.

I hope you have not forgot to to 'exportfs -a' after changing /etc/exports.

Bye,
Oleg

#2 lore raw
Quoted 13 lines

Hello!

Quoted 9 lines · Anders Widman

I am trying to use ReiserFS with NFS to work nicely, but I ran into troubles exporting root (/). I am getting the following error when
a client tries to connect to the root export (I am using
ReiserFS on root filesystem):
rpc.mountd: getfh failed: Operation not permitted
After browsing around different mailing lists and read suggestions about Kernel and NFS utils I found that someone said that there was needed patches to use ReiserFS with NFS?

Quoted 2 lines

Hmmm.
What kernel are you using? What nfs server?

Using 2.4.19 with nfsd running.

Quoted 28 lines

2.4.19 with stock knfsd:
angband:~ # cat /etc/exports
/ (ro)

bowl:~# mount angband:/ /mnt/testfs -t nfs
bowl:~# ls /mnt/testfs/
.   bin   cdrecorder  dev  floppy  lib    mnt  proc    root  testfs0  tmp  var
..  boot  cdrom       etc  home    media  opt  rescue  sbin  testfs1  usr

Changing config:
angband:~ # cat /etc/exports
/ (rw,no_root_squash,insecure)
angband:~ # exportfs -a
exportfs: No host name given with / (rw,no_root_squash,insecure), suggest *(rw,no_root_squash,insecure) to avoid warning

bowl:~# ls /mnt/testfs/
.    boot        dev     home   mnt   rescue  testfile  tmp
..   cdrecorder  etc     lib    opt   root    testfs0   usr
bin  cdrom       floppy  media  proc  sbin    testfs1   var

Everything works ok.

But now (/rescue is another mount point):

bowl:~# mount angband:/rescue /mnt/testfs -t nfs
Sep  4 10:06:17 angband rpc.mountd: authenticated mount request from 212.16.7.82:916 for /rescue (/)
Sep  4 10:06:17 angband rpc.mountd: getfh failed: Operation not permitted
Quoted 8 lines
Quoted 5 lines

Right now my exports file looks like this:

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

Is this something someone might know how to fix?

What if you allow anyone to connect (use * instead of address?) Look into logs on on nfs server side for more clues, enable debug.

I don't think I tried using only a '*' instead of an address. Will do that.

Quoted 2 lines

Basically I do not think yo are experiencing reiserfs problem, but it rather looks like nfs server configuration problem.

I was out of clues, therefore I posted here as there was someone that mentioned ReiserFS and NFS problems somewhere.

Quoted 1 line

I hope you have not forgot to to 'exportfs -a' after changing /etc/exports.

Of course not =).. And I tried rebooting too.

Anyway, thanks for your response!

Regards,
Anders

Quoted 2 lines

Bye,
Oleg