This is a discussion on NFS help within the Linux Networking forums, part of the Linux Forums category; Hi guys, I am a newbie in setting up networking on linux. I am running RH8.0 now, and try ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 <lili@nrcan.gc.ca> 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"? |
|
|||
|
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 <lili@nrcan.gc.ca> wrote in message news:1105734304.931442.194700@c13g2000cwb.googlegr 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? > |
|
|||
|
"Laura" <lili@nrcan.gc.ca> wrote in message news:9347ee48.0501141120.27f27c06@posting.google.c 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 |
|
|||
|
On 14 Jan 2005 12:25:04 -0800, lili@nrcan.gc.ca
<lili@nrcan.gc.ca> 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 |
|
|||
|
lili@nrcan.gc.ca 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 jkerouac@bgsec.com 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" |
|
|||
|
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 |
|
|||
|
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. |