NFS problems (Debian)


 
Thread Tools Search this Thread
Operating Systems Linux Debian NFS problems (Debian)
# 1  
Old 01-30-2009
NFS problems (Debian)

I'm trying to share some directories with NFS among Debian machines. In order to do so, I installed nfs-common and nfs-kernel-server on the server machine. It seemed that starting portmap daemon lasted a long time and I get the following messages in /var/log/messages:

Jan 30 18:18:03 masternode kernel: portmap: server localhost not responding, timed out
Jan 30 18:18:03 masternode kernel: RPC: failed to contact portmap (errno -5).

After that, I edited the /etc/exports file to include the directories to be shared; in particular, I added the following code:

/home 192.168.9.0/24(rw,sync,no_wdelay,subtree_check,root_squash)
/opt 192.168.9.0/24(rw,sync,no_wdelay,subtree_check,root_squash)
/usr/local 192.168.9.0/24(rw,sync,no_wdelay,subtree_check,root_squash)


The next step was to export the directories with exportfs -var. The answer I got is:

exporting 192.168.9.0/24:/usr/local
exporting 192.168.9.0/24:/home
exporting 192.168.9.0/24:/opt


Up to now, nothing really strange. However, when I did showmount -e to see which were the exported directories, I got a timeout whitout any error flag. I also got a timeout when I ran rpcinfo -p.

Everything is properly installed and running in the client (192.168.9.102), but when I try to mount the shared directories, I get the following error:

mount to NFS server '192.168.9.101' failed.
RPC Error: 15 ( Program not registered )
mount to NFS server '192.168.9.101' failed.
RPC Error: 15 ( Program not registered )
mount to NFS server '192.168.9.101' failed.
RPC Error: 15 ( Program not registered )


It seems to me that the problem is in the server.

I spent four entire days trying to fix it and I think that I surfed the entire internet, so I'm really desperate!!! Therefore, any help will be very appreciated!!! Thanks in advance.

P.S.: If I do netstat -tupan I get the following connections running:

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     20229/portmap       
tcp6       0      0 :::22                   :::*                    LISTEN     2669/sshd           
tcp6       0    144 ::ffff:192.168.9.101:22 ::ffff:192.168.1.:36023 ESTABLISHED25159/2             
udp        0      0 0.0.0.0:111             0.0.0.0:*                          20229/portmap



P.S.2: These are the processes runing on the server after the whole described process (obtained with ps -faux)

Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.2   1944   640 ?        Ss   Jan29   0:01 init [2]  
root         2  0.0  0.0      0     0 ?        S    Jan29   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   Jan29   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   Jan29   0:00 [events/0]
root         5  0.0  0.0      0     0 ?        S<   Jan29   0:00 [khelper]
root         6  0.0  0.0      0     0 ?        S<   Jan29   0:00 [kthread]
root         9  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kblockd/0]
root        26  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kseriod]
root        77  0.0  0.0      0     0 ?        S    Jan29   0:00  \_ [pdflush]
root        78  0.0  0.0      0     0 ?        S    Jan29   0:00  \_ [pdflush]
root        79  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kswapd0]
root        80  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [aio/0]
root       526  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [khubd]
root       885  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kjournald]
root      1333  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kpsmoused]
root      1629  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kmirrord]
root      1664  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kjournald]
root      1666  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kjournald]
root      1668  0.0  0.0      0     0 ?        S<   Jan29   0:00  \_ [kjournald]
root      1045  0.0  0.2   2180   616 ?        S<s  Jan29   0:00 udevd --daemon
root      1114  0.0  0.3   2712   812 ?        S<   Jan29   1:06 /bin/sh -e /lib/udev/net.agent
root     26207  0.0  0.1   1560   396 ?        S<   18:22   0:00  \_ sleep 1
root      1117  0.0  0.3   2708   808 ?        S<   Jan29   0:43 /bin/sh -e /lib/udev/net.agent
root     26201  0.0  0.1   1560   396 ?        S<   18:22   0:00  \_ sleep 1
root      1968  0.0  0.2   1628   640 ?        Ss   Jan29   0:00 /sbin/syslogd
root      1974  0.0  0.1   1580   384 ?        Ss   Jan29   0:00 /sbin/klogd -x
root      2662  0.2  0.3   2712   828 ?        S<   Jan29   2:59 /bin/sh -e /lib/udev/net.agent
root     26204  0.0  0.1   1564   396 ?        S<   18:22   0:00  \_ sleep 1
root      2669  0.0  0.4   4932  1092 ?        Ss   Jan29   0:00 /usr/sbin/sshd
root     25159  0.0  0.9   7704  2360 ?        Ss   12:20   0:00  \_ sshd: root@pts/2 
root     25188  0.0  0.6   3980  1708 pts/2    Ss   12:20   0:00      \_ -bash
root     26208  0.0  0.3   3400   928 pts/2    R+   18:22   0:00          \_ ps -faux
root      3241  0.0  0.2   2192   748 ?        Ss   Jan29   0:00 /usr/sbin/cron
root      3298  0.0  0.1   1572   492 tty1     Ss+  Jan29   0:00 /sbin/getty 38400 tty1
root      3299  0.0  0.1   1576   492 tty2     Ss+  Jan29   0:00 /sbin/getty 38400 tty2
root      3300  0.0  0.1   1572   492 tty3     Ss+  Jan29   0:00 /sbin/getty 38400 tty3
root      3301  0.0  0.1   1572   492 tty4     Ss+  Jan29   0:00 /sbin/getty 38400 tty4
root      3304  0.0  0.1   1572   492 tty5     Ss+  Jan29   0:00 /sbin/getty 38400 tty5
root      3305  0.0  0.1   1572   492 tty6     Ss+  Jan29   0:00 /sbin/getty 38400 tty6
daemon   20229  0.0  0.1   1688   472 ?        Ss   18:12   0:00 /sbin/portmap
root     22603  0.0  0.2   3512   572 ?        Ss   18:16   0:00 /usr/sbin/rpc.idmapd

# 2  
Old 01-30-2009
It would be helpful to me if you could post the routing tables for each of the machines.
# 3  
Old 01-30-2009
This is the one from the server...


Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1


... and this the client one:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
default         192.168.9.101   0.0.0.0         UG    0      0        0 eth0

# 4  
Old 01-30-2009
Sorry, I should have asked for the output of ifconfig from each box as well....

Thanks.
# 5  
Old 01-30-2009
Here you have the one for the server...

Code:
eth0      Link encap:Ethernet  HWaddr 00:E0:29:28:E9:73  
          inet addr:192.168.9.101  Bcast:192.168.9.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:29ff:fe28:e973/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1505 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:150526 (146.9 KiB)  TX bytes:142536 (139.1 KiB)
          Interrupt:161 Base address:0xdc00 

eth1      Link encap:Ethernet  HWaddr 00:06:5B:13:C7:78  
          inet addr:192.168.1.122  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::206:5bff:fe13:c778/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:112479 errors:0 dropped:0 overruns:1 frame:0
          TX packets:12693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:17986026 (17.1 MiB)  TX bytes:2237126 (2.1 MiB)
          Interrupt:177 Base address:0xcc00

... and the one for the client:

Code:
eth0      Link encap:Ethernet  HWaddr 00:0D:56:23:4D:19  
          inet addr:192.168.9.102  Bcast:192.168.9.255  Mask:255.255.255.0
          inet6 addr: fe80::20d:56ff:fe23:4d19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12461 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7974 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:12631202 (12.0 MiB)  TX bytes:747394 (729.8 KiB)
          Base address:0xdf40 Memory:feae0000-feb00000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:78 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5772 (5.6 KiB)  TX bytes:5772 (5.6 KiB)

Thanks for your quick replies!
# 6  
Old 01-30-2009
I assume you have identd running on both the server and the client?
# 7  
Old 01-30-2009
Also, I assume you have this file configured properly?

Code:
/etc/hosts.allow

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Memory problems in NFS client server

Hi all, i have some doubts in a situation that i fail to get an answer in Google. I have a solaris 10 nfs server and 5 centos 6.0 nfs clients. The problem/situation is that in the clients the free memory is "disappearing" along the time (passing to used)..and it gets free if i umount the... (5 Replies)
Discussion started by: blast
5 Replies

2. Red Hat

NFS problems

Hi All, I hoping someone can help me get my NFS working properly. I don't know why I'm having little issues... Overall, NFS is working, therefore, the problem may not be with NFS. I can ssh to remote nodes and view NFS shared directories (/home). Here is the problem, when on a node and I open a... (2 Replies)
Discussion started by: Bic121
2 Replies

3. AIX

NFS mount problems on AIX

Hi, I have two machines (AIX) each on a different VLAN. Need to mount a filesystem using nfs on the other one. When I export the nfs file system its a breeze. But when I try to mount it on the other machine the smitty command hangs on "running" and i get an OK from smitty but with this... (6 Replies)
Discussion started by: aixromeo
6 Replies

4. Debian

Debian Lenny update problems

Hi everybody! I have a very big problem, I can not make any updates on my debian lenny. I get everytime this errors with apt-get update: Err http://security.debian.org lenny/updates Release.gpg Connection failed Err http://www.backports.org lenny-backports Release.gpg Connection... (2 Replies)
Discussion started by: magge
2 Replies

5. Solaris

Having problems starting up NFS on an OpenSolaris box

I am trying to set up an OpenSolaris box to be an NFS server. The OpenSolaris version is 2008.11. The kernel (uname -a output) is: SunOS minime-28 5.11 snv_101b i86pc i386 i86pc It is running ZFS but I know nothing about ZFS. I have an entry in the /etc/dfs/dfstab file: share -F... (1 Reply)
Discussion started by: sqa777
1 Replies

6. UNIX for Advanced & Expert Users

NFS Problems

I am having a really bad day today. I am trying to get an nfs mount to work. I want to have a mount from machinea:/home going to /home on machineb. I can mount machinea:/home on any mount point EXCEPT /home and see the files. I can not see the files or list the directory (it hangs) when I mount... (17 Replies)
Discussion started by: mbathrick
17 Replies

7. UNIX for Dummies Questions & Answers

nfs mount and links removal problems.

Ok, so I have an nfs mount setup and within it there are symbolic links to other directories and such. So anyways I created a link to a directory like so ln -s /var/stuff/more/stuff/here/ stuff/ and i ended up with directory stuff with link 'here' inside. so i was pieved and decided... (1 Reply)
Discussion started by: VRoemer
1 Replies

8. UNIX for Dummies Questions & Answers

SCO NFS problems

Hi, I've got a really old system we use for call logging. The OS is SCO 3.2 uname -a output SCO_SV bts7053 3.2 2 i386 the problem we are having is that its no longer doing its backups. The original problem was the tape drive, which has been replaced twice now. Because the company are... (1 Reply)
Discussion started by: johno12345
1 Replies

9. UNIX for Advanced & Expert Users

NFS server problems [merged]

I have a machine A NFS mounted on machine B I am doing a build from machine B on the MFS mounted dir of machine A but I keep getting the following: NFS server A not responding still trying. I go to machine A and can log onto machine A and everything seems fine. How do I go about finding... (6 Replies)
Discussion started by: brv
6 Replies
Login or Register to Ask a Question