nfs configuration

hi

i have done so-far:


linux-orc9:~/Desktop # vi /etc/exports
linux-orc9:~/Desktop # export -a
linux-orc9:~/Desktop # showmount
showmount: RPC: Program not registered
linux-orc9:~/Desktop # service nfs restart
Not stopping NFS client services:                                    unused
Not starting NFS client services - no NFS found in /etc/fstab:       unused
linux-orc9:~/Desktop # service nfs start
Not starting NFS client services - no NFS found in /etc/fstab:       unused
linux-orc9:~/Desktop # mount -t nfs 192.168.1.6:/share /mnt
mount.nfs: mount to NFS server '192.168.1.6:/share' failed: RPC Error: Program not registered
linux-orc9:~/Desktop # service nfs start
Not starting NFS client services - no NFS found in /etc/fstab:       unused
linux-orc9:~/Desktop # service nfs4 start
service: no such service nfs4
linux-orc9:~/Desktop # service network restart
Shutting down network interfaces:
    br1                                                              done
    br0                                                              done
    eth0      device: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)                                                                 done
    eth1      device: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)                                                                  done
Shutting down service network  .  .  .  .  .  .  .  .  .             done
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
    eth0      device: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
    eth0      IP address: 192.168.1.7/32                             done
    eth1      device: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
    eth1      IP address: 192.168.1.6/32                             done
    br0       
    br0       Ports: [eth0] 
    br0       forwarddelay (see man ifcfg-bridge) ... ready
    br0       Starting DHCP4+DHCP6 client. . . . . . . .  
    br0       DHCP4 continues in background
    br0       DHCP6 continues in background                          waiting
    br1       
    br1       Ports: [eth1] 
    br1       forwarddelay (see man ifcfg-bridge) ... ready
    br1       Starting DHCP4+DHCP6 client. . . . . . . .  
    br1       DHCP4 continues in background
    br1       DHCP6 continues in background                          waiting
Setting up service network  .  .  .  .  .  .  .  .  .  .             done
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
SuSEfirewall2: using default zone 'ext' for interface eth0
SuSEfirewall2: using default zone 'ext' for interface eth1
SuSEfirewall2: batch committing...
SuSEfirewall2: Firewall rules successfully set
linux-orc9:~/Desktop # 


can you say how to remove this error:


mount.nfs: mount to NFS server '192.168.1.6:/share' failed: RPC Error: Program not registered

regards

Hi,

If your nfs client is linux-orc9 and the nfs server is 192.168.1.6 then what you have shown in the output makes little sense.

You need to install the nfs-server daemon onto the nfs server. Then create the exports file on the that server. Start the nfs server daemon, allow the port in the firewall and then attempt to connect from the client.

The output you present suggests you are trying to configure a server and client on the same machine.

Nfs setup is straightforward, an easy /etc/exports example is:

/home/user/share (rw)

This would give all nfs clients rw access to the directory /home/user/share.

Once the nfs server is started and the firewall is allowing nfs connections use the command :

showmount -e serverip

from the NFS CLIENT to list the exports from the server. If this command returns a list then you can attempt to mount the share on the CLIENT.

hth
J