nfs troubles with Red-Hat

I just installed Red-Hat (some of the last versions) and I'm trying to share
a file system and didnt´t work.

What I´ve found is:

1. by default the system was running
under 5 mode (inittab, I changed it to
3)

2. There´re some files missing in
/etc/rc.d like rc.M and other file
(which I don´t remember but it´s the one that loads all the rpc´s deamos like rpc.portmap,rpc.mountd, rpc.nfsd etc)

3. The file /usr/sbin/rpc.portmap is
missing too, I copied it from  a slackware version, but it didn´t work.

4. The /etc/exports file exists when the correct parameters

5. I´ve done this before (sharing a file system) in a slackware version.
with no problem, the system that is mounting the shared file system is a Ultra (Sun)

6. The Ultra machine is running the proper deamos to mount a nfs file
(nfs.client)

7. Is there another way to share file systems under Red-Hat?, because I´ve found that the files that makes this work in Slackware, they just don´t exist in Red-Hat

Is all this about a bad installation of
Red-Hat??????

Any idea,
Thanks in advance.....
cblazqueAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
tmossConnect With a Mentor Commented:
Under Red Hat, the init file for NFS is
/etc/rc.d/init.d/nfs
and portmap is
/etc/rc.d/init.d/portmap
If those don't exist, and the other files like rpc.mountd aren't in /usr/sbin/ then you probably don't have nfs installed. Type
rpm -q knfsd
to see if it's installed. If it's not, install it (and portmap if you don't have that either) and start it with the above init script.
0
 
sane101999Commented:
Some things vary significantly among Linux distributions, and the method for starting up daemons on boot is one of them.  Copying system files from one distribution to another is unlikely to help and likely to make your configuration very difficult to reproduce.

1.  Mode 5 is graphical login (vs. 3 for console login) and makes no difference to network configuration.

2.  /etc/rc.d on most Linux distributions (including any recent RedHat release) contains SysV-style init scripts.  RedHat provides a chkconfig utility (similar calling convention to IRIX chkconfig, but with different back-end behavior) for manipulating the symbolic links in /etc/rc.d/rc?.d, which control what startup / shutdown scripts are run during transitions from one init state to another.  

3.  The current RPC port mapper installs at /sbin/portmap.  It is part of the portmap RPM, which should be installed on your system (rpm -qi portmap).

4.  /etc/exports is indeed the NFS server configuration file.  It has SunOS 4.x-like syntax.

5.  Was your Slackware release using the kernel NFS server code?  NFS service has changed a lot since 1.2.x kernels.

Mostly you probably need to undo your copying of things from Slackware and run:

chkconfig portmap on
chkconfig nfs on
/etc/rc.d/init.d/portmap stop
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs start

nfs start will run exportfs -r, which should export everything in /etc/exports.  I have just tried this on a RedHat 6.0 box on which I have not previously run an NFS server, and it worked.

Hope this helps.

- Michael K. Edwards
  SANE.net, LLC
  (medwards@sane.net)
0
 
garichCommented:
Having similar problems!

The ultra running solaris looks like this

mount linux:/jaz /mnt
mount: linux: NFS service not responding
mount: retrying: /mnt

then the system just hangs until a ctr<c> is issued.

the /var/log/messages contains:

Nov 3 10:22:37 linux kernel: svc: unknown version (3)

The jaz drive may be mounted from other unix machines on the network.
0
All Courses

From novice to tech pro — start learning today.