LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-30-2010, 08:28 PM   #1
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
How to configure NFS


Hi,

I forgot how to configure an NFS server. I just followed the steps given in the official book RH133 of RHCE.

Code:
[root@mahadeva ~]# ls -ld /mnt/share
drwxr-xr-x 2 root root 4096 Oct  1 06:34 /mnt/share
[root@mahadeva ~]# service vsftpd status
vsftpd (pid 5139) is running...

[root@mahadeva ~]# mount -t nfs mahadeva:/var/ftp/pub /mnt/share
mount: mount to NFS server 'mahadeva' failed: RPC Error: Program not registered.
[root@mahadeva ~]#
The same error:

mount: mount to NFS server 'mahadeva' failed: RPC Error: Program not registered.

is reported when I make an entry in the file /etc/fstab and remount the FS.

Networking is also set to "yes":

Code:
[root@mahadeva init.d]#  cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=mahadeva.com

The Mountpoint is also being shown as "configured":

Code:
[root@mahadeva ~]# service netfs status
Configured NFS mountpoints:
/mnt/share
[root@mahadeva ~]#
but there is nothing in there:

Code:
[root@mahadeva ~]# ls -l /mnt/share/
total 0
[root@mahadeva ~]#

I have rebooted the system. But the same error is displaying at boot time also.

Last edited by Hi_This_is_Dev; 09-30-2010 at 08:31 PM.
 
Old 09-30-2010, 08:44 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Start nfsserver (nfsd) on mahadeva.
 
Old 09-30-2010, 08:55 PM   #3
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by AlucardZero View Post
Start nfsserver (nfsd) on mahadeva.


Code:
[root@mahadeva ~]# service iptables status
Firewall is stopped.
Code:
[root@mahadeva ~]# service nfsd status
nfsd: unrecognized service
 
Old 09-30-2010, 09:04 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Maybe it's named nfsserver or nfs or nfs.server, I don't know, look at the nfs* services yourself.
 
1 members found this post helpful.
Old 09-30-2010, 09:15 PM   #5
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by AlucardZero View Post
Maybe it's named nfsserver or nfs or nfs.server, I don't know, look at the nfs* services yourself.

Thanks! It is nsf

But now this error is coming:

Code:
[root@mahadeva ~]# mount -a
mount: mahadeva:/var/ftp/pub failed, reason given by server: Permission denied
[root@mahadeva ~]# ls -ld /var/ftp/pub/
drwxr-xr-x 3 root root 4096 Sep 25 07:27 /var/ftp/pub/
[root@mahadeva ~]#
I have already started the nfs service:

Code:
[root@mahadeva ~]# service nfs status
rpc.mountd (pid 6263) is running...
nfsd (pid 6260 6259 6258 6257 6256 6255 6254 6253) is running...
[root@mahadeva ~]#
 
Old 09-30-2010, 09:26 PM   #6
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Original Poster
Rep: Reputation: 18
Well, it is working now.

I did these things:

Code:
[root@mahadeva ~]# vi /etc/exports

/var/ftp/pub    client1(rw,sync) client2(ro,sync)

service nfs restart

[root@mahadeva ~]# mount -a
[root@mahadeva ~]# ls /mnt/share/
apps  hello  list.txt  myApps.repo.client
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure NFS in redhat ES 4 dilipsharma2006 Linux - Newbie 3 05-01-2008 02:16 PM
how to configure iptables for nfs ?? dansawyer Linux - Security 4 08-06-2006 11:32 PM
configure iptable for NFS jovie Linux - Security 2 06-18-2006 03:46 AM
Need to configure a NFS share... Thaidog Linux - Newbie 1 06-01-2005 09:39 AM
how to configure the NFS smthakur Linux - Networking 0 09-03-2001 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration