Mailinglist Archive: opensuse (3901 mails)
| < Previous | Next > |
Re: [SLE] Back to NFS (was Re: [SLE] Duelling SAMBAs
- From: Graham Smith <gqs@xxxxxxxxxxxx>
- Date: Tue, 4 Jan 2005 22:17:45 +1100
- Message-id: <200501042217.46188.gqs@xxxxxxxxxxxx>
On Tue, 4 Jan 2005 15:05, elefino wrote:
> > Try replacing the '*' with your ip_range/netmask and I think you will
> > find it will work.
> > i.e.
> > /home/kevin/k-shared/ 192.168.1.0/24(rw,root_squash,sync)
>
> Alrighty, I tried that... and 192.168.0.0/24, with no joy.
> So I widened the scope to 192.168.0.0/16, which still didn't work.
> (Restarting each time, then running to the other machine and attempting
> to setup the Client and have it scan for NFS servers on the little
> net........ nothing.
>
> So, it's not a matter of any of the particular shares being bad, or
> badly defined. The client is not finding *anything*.
>
> What's the next step?
>
> By the way, why did you suggest the IP? Isn't that the point of the
> "*" wildcard, to cover all bases and not restrict where not necessary?
> Or have I got that wrong?
It is far easier to debug and there can be problems using wildcards with NFS
which I have encountered in the past.
>
> kevin (lonely and unshared :-)
OK, to start with what is the IP address of your server and client.
You can determine them by
/sbin/ifconfig
We will for this exercise call the Server 'A' and the client 'B'
Can you ping from 'A' to 'B' and 'B' to 'A'?
----------------------- Server --------------------
On the Server 'A' run the following command
ps -ef | grep nfs
You should get something like the following
# ps -ef | grep nfs
root 4220 1 0 2004 ? 00:00:00 [nfsd]
root 4221 1 0 2004 ? 00:00:00 [nfsd]
root 4222 1 0 2004 ? 00:00:00 [nfsd]
root 4223 1 0 2004 ? 00:00:00 [nfsd]
root 26902 26882 0 21:31 pts/1 00:00:00 grep nfs
then try
# ps -ef | grep portmap
nobody 4138 1 0 2004 ? 00:00:00 /sbin/portmap
root 26904 26882 0 21:32 pts/1 00:00:00 grep port
If you do not have either a nfsd or portmap process running, start them (as
root) by the following commands
rcportmap start
rcnfsserver start
This is an entry from my /etc/exports file on my server.
/home 10.21.132.0/24(rw,sync)
------------------------ CLIENT -----------------------
Do you have a mount point for where you are going to mount the NFS share?
To test the NFS connection create a mount point /mnt/tmp by command
mkdir /mnt/tmp
Now try to mount the NFS directory by
mount -t nfs <server-IP>:/home/kevin/k-shared /mnt/tmp
replacing <server-IP> with the IP address of the server
Does this work? If it does then umount the NFS share and look for any mistakes
you may have made in /etc/fstab
---------------------- DEBUGGING --------------------
Install the rpm 'nmap' if it is not already installed.
From the client 'B' run the command
nmap <server-IP>
you should see an entry for NFS in the output like so:
2049/tcp open nfs
If you don't then have you got firewalls running? You must have the nfs port
open on the server.
That will do for now. Please report back and we will go on from here.
--
Regards,
Graham Smith
---------------------------------------------------------
> > Try replacing the '*' with your ip_range/netmask and I think you will
> > find it will work.
> > i.e.
> > /home/kevin/k-shared/ 192.168.1.0/24(rw,root_squash,sync)
>
> Alrighty, I tried that... and 192.168.0.0/24, with no joy.
> So I widened the scope to 192.168.0.0/16, which still didn't work.
> (Restarting each time, then running to the other machine and attempting
> to setup the Client and have it scan for NFS servers on the little
> net........ nothing.
>
> So, it's not a matter of any of the particular shares being bad, or
> badly defined. The client is not finding *anything*.
>
> What's the next step?
>
> By the way, why did you suggest the IP? Isn't that the point of the
> "*" wildcard, to cover all bases and not restrict where not necessary?
> Or have I got that wrong?
It is far easier to debug and there can be problems using wildcards with NFS
which I have encountered in the past.
>
> kevin (lonely and unshared :-)
OK, to start with what is the IP address of your server and client.
You can determine them by
/sbin/ifconfig
We will for this exercise call the Server 'A' and the client 'B'
Can you ping from 'A' to 'B' and 'B' to 'A'?
----------------------- Server --------------------
On the Server 'A' run the following command
ps -ef | grep nfs
You should get something like the following
# ps -ef | grep nfs
root 4220 1 0 2004 ? 00:00:00 [nfsd]
root 4221 1 0 2004 ? 00:00:00 [nfsd]
root 4222 1 0 2004 ? 00:00:00 [nfsd]
root 4223 1 0 2004 ? 00:00:00 [nfsd]
root 26902 26882 0 21:31 pts/1 00:00:00 grep nfs
then try
# ps -ef | grep portmap
nobody 4138 1 0 2004 ? 00:00:00 /sbin/portmap
root 26904 26882 0 21:32 pts/1 00:00:00 grep port
If you do not have either a nfsd or portmap process running, start them (as
root) by the following commands
rcportmap start
rcnfsserver start
This is an entry from my /etc/exports file on my server.
/home 10.21.132.0/24(rw,sync)
------------------------ CLIENT -----------------------
Do you have a mount point for where you are going to mount the NFS share?
To test the NFS connection create a mount point /mnt/tmp by command
mkdir /mnt/tmp
Now try to mount the NFS directory by
mount -t nfs <server-IP>:/home/kevin/k-shared /mnt/tmp
replacing <server-IP> with the IP address of the server
Does this work? If it does then umount the NFS share and look for any mistakes
you may have made in /etc/fstab
---------------------- DEBUGGING --------------------
Install the rpm 'nmap' if it is not already installed.
From the client 'B' run the command
nmap <server-IP>
you should see an entry for NFS in the output like so:
2049/tcp open nfs
If you don't then have you got firewalls running? You must have the nfs port
open on the server.
That will do for now. Please report back and we will go on from here.
--
Regards,
Graham Smith
---------------------------------------------------------
| < Previous | Next > |