Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

NFS help

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2005, 07:20 PM
Default NFS help



Hi guys,

I am a newbie in setting up networking on linux. I am running RH8.0
now, and try to set up the NFS and RARP server to boot a remote
system.
after set up the /etc/ethers and exports file, I try to restart nfs
server using the following
/etc/init.d/nfs restart
bash: nfs: command not found

Does anyone know how to solve this?

Thanks in advance,
Laura


Laura
Reply With Quote
  #2  
Old 01-14-2005, 08:11 PM
Alex_Yung/id=alyung
Guest
 
Posts: n/a
Default Re: NFS help

Laura <(E-Mail Removed)> wrote:
> after set up the /etc/ethers and exports file, I try to restart nfs
> server using the following
> /etc/init.d/nfs restart
> bash: nfs: command not found


I believe RedHat put the startup scripts in "/etc/rc.d/init.d". How
about try "/etc/rc.d/init.d/nfs restart"?
Reply With Quote
  #3  
Old 01-14-2005, 08:25 PM
lili@nrcan.gc.ca
Guest
 
Posts: n/a
Default Re: NFS help

>How
>about try "/etc/rc.d/init.d/nfs restart"?


I tried this one, but still same error: nfs: command not found.
Any ideas?

Reply With Quote
  #4  
Old 01-14-2005, 10:49 PM
pnyverto
Guest
 
Posts: n/a
Default Re: NFS help

First make sure the NFS package is installed on the system. Second try to
locate nfs, finding where it is.

Probably it is not installed.

-Weiting

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> >How
> >about try "/etc/rc.d/init.d/nfs restart"?

>
> I tried this one, but still same error: nfs: command not found.
> Any ideas?
>



Reply With Quote
  #5  
Old 01-15-2005, 02:31 AM
Doug Holtz NOSPAM in adress
Guest
 
Posts: n/a
Default Re: NFS help


"Laura" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi guys,
>
> I am a newbie in setting up networking on linux. I am running RH8.0
> now, and try to set up the NFS and RARP server to boot a remote
> system.
> after set up the /etc/ethers and exports file, I try to restart nfs
> server using the following
> /etc/init.d/nfs restart
> bash: nfs: command not found
>
> Does anyone know how to solve this?
>
> Thanks in advance,
> Laura


Laura;

NFS has not been kind to me either.

Run man nfs and learn about mount points, export files, fstab, and more.
Once you get it, let me know how it works.

Doug


Reply With Quote
  #6  
Old 01-15-2005, 10:21 AM
DechitzYang
Guest
 
Posts: n/a
Default Re: NFS help

service nfs restart

Reply With Quote
  #7  
Old 01-15-2005, 04:17 PM
Bill Marcum
Guest
 
Posts: n/a
Default Re: NFS help

On 14 Jan 2005 12:25:04 -0800, (E-Mail Removed)
<(E-Mail Removed)> wrote:
>>How
>>about try "/etc/rc.d/init.d/nfs restart"?

>
> I tried this one, but still same error: nfs: command not found.
> Any ideas?
>

Are you trying to do this on the server or the client? If it's the
server, try nfsd.


--
BOFH excuse #270:

Someone has messed up the kernel pointers
Reply With Quote
  #8  
Old 01-16-2005, 06:24 PM
Jose Maria Lopez Hernandez
Guest
 
Posts: n/a
Default Re: NFS help

(E-Mail Removed) wrote:
>>How
>>about try "/etc/rc.d/init.d/nfs restart"?

>
>
> I tried this one, but still same error: nfs: command not found.
> Any ideas?
>


Check if the file /etc/rc.d/init.d/nfs it's there and
readable. Maybe you don't have the nfs package properly
installed.


--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Reply With Quote
  #9  
Old 01-17-2005, 02:44 PM
lili@nrcan.gc.ca
Guest
 
Posts: n/a
Default Re: NFS help

I tried whereis nfs and get the following info:

/usr/include/nfs /usr/share/man/man5/nfs.5.gz

however, there is no file locate in /usr/sbin/

and in the directory /usr/include/nfs , there is only a nfs.h file

What does it mean? And I tried to reinstall the nfs-utlis-*.rpm
package, it told me that it already installed. What shall I do next?
Laura

Reply With Quote
  #10  
Old 01-18-2005, 09:23 PM
Juhan Leemet
Guest
 
Posts: n/a
Default Re: NFS help

On Mon, 17 Jan 2005 06:44:01 -0800, lili wrote:

> I tried whereis nfs and get the following info:
>
> /usr/include/nfs /usr/share/man/man5/nfs.5.gz
>
> however, there is no file locate in /usr/sbin/


I am running SuSE 9.1 and the programs for nfs are called:

/usr/sbin/rpc.nfsd
/usr/sbin/rpc.mountd

They have the rpc. prefix for historical (hysterical 8^) reasons, and also
to emphasize that they are rpc (remote procedure call) services. You don't
call them directly. Instead there are startup/management scripts.

> and in the directory /usr/include/nfs , there is only a nfs.h file
>
> What does it mean? And I tried to reinstall the nfs-utlis-*.rpm
> package, it told me that it already installed. What shall I do next?
> Laura


Sounds similar to my SuSE 9.1, which has nfs-utils-1.0.6 installed.
The (new) way to start the service (by hand) in SuSE is by using:

/usr/sbin/rcnfsserver

which is actually a softlink to (the old way):

/etc/init.d/nfsserver

So, you would type:

/usr/sbin/rcnfsserver start

or (since you must be root, and root has /usr/sbin in PATH) just:

rcnfsserver start

you might also find "rcnfsserver status" useful. Don't get freaked out by
the apparent complexity. There are pretty good reasons for these
conventions. For example, the "rc" prefix is pretty standard *nix for a
startup script file. Having a <servicename> command that you can give
"start, stop, status, restart", etc. arguments is also pretty standard.

BTW, before starting up nfs, you should tell the system what you want to
export, using the "exportfs" command and/or /etc/exports file (sort of
like the /etc/fstab file, but for offering exported files).

When nfs is running, you might also find these commands useful:

/usr/sbin/showmount -a
/usr/sbin/showmount -e

Once you are sure that the server is running rpc.nfsd (and rpc.mountd,
started with it) and showmount displays the directories to be shared, then
you can go to a workstation (or the server for that matter) and try
mounting those directories to some mount point, e.g. /mnt (for testing).
For permanent mounting you should make a more meaningful permanent mount
point (e.g. /mp3 or /pub or something meaningful to you? you might want to
look at FHS = Filesystem Hierarchy Standard for hints).

You should read the man pages for nfs, exports, showmount, and the NFS
howto(s) to understand how all this works. It is not that complicated, but
there are a few things that have to work together (or nothing works).

If you have several workstations, you might also want to look into the
automounter, which can automagically mount your home directory from your
server to your workstation wherever you are. Get the basics working first.

BTW, what Linux distro are you running?

p.s. For "persistent" nfs startup at boot time, I think you need to issue
the command (as root):

chkconfig nfs on

or is it:

chkconfig nfsserver on

I'm not sure, since I normally have my NFS shares coming from Solaris.

--
Juhan Leemet
Logicognosis, Inc.

Reply With Quote
Reply

Tags
nfs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.