LinuxQuestions.org
Review your favorite Linux distribution.
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 03-06-2010, 01:34 AM   #1
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Rep: Reputation: 0
Question NFS, DNS and KickStart


HI all,

I was trying to mount nfs share in same server

the command

mount -t nfs 172.24.254.254:/rhome /nfs_rhome

runs perfectly and any modifications in nfs_rhome canbe seen in /rhome

but the same tried in different manner as below

mount -t nfs server1.example.com:/rhome /nfs_nfs

dosent work. gives error
[root@server1 ~]# mount -t nfs server1.example.com:/rhome /nfs_nfs/
mount: server1.example.com:/rhome failed, reason given by server: Permission denied

the /var/log/messages :

Mar 6 18:29:52 server1 mountd[2593]: mount request from unknown host 127.0.0.1 for /rhome (/rhome)

what exactly the problem is?

does the same would be causing the failure in mouting nfs share
/var/ftp/pub on kickstart?
 
Old 03-06-2010, 10:43 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kaustubhshimpi View Post
HI all,
I was trying to mount nfs share in same server the command

mount -t nfs 172.24.254.254:/rhome /nfs_rhome

runs perfectly and any modifications in nfs_rhome canbe seen in /rhome
but the same tried in different manner as below

mount -t nfs server1.example.com:/rhome /nfs_nfs

dosent work. gives error
[root@server1 ~]# mount -t nfs server1.example.com:/rhome /nfs_nfs/
mount: server1.example.com:/rhome failed, reason given by server: Permission denied

the /var/log/messages :
Mar 6 18:29:52 server1 mountd[2593]: mount request from unknown host 127.0.0.1 for /rhome (/rhome)

what exactly the problem is?
does the same would be causing the failure in mouting nfs share
/var/ftp/pub on kickstart?
You're trying to mount a different directory for starters. If that's not exported as an NFS share, it won't mount. Also, you're mounting one as an IP address, the other as a server-name. If you don't have name resolution set up right, or an entry in /etc/hosts, that'll be a problem.

We can't tell you exactly what the problem is, since you're not providing details (version/distro of Linux, network config info, host info, etc.).
 
Old 03-07-2010, 09:06 AM   #3
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Question

first of all thanks for replying

my /etc/exports contains:

/var/ftp/pub 172.24.0.0/255.255.0.0(rw,sync,no_root_squash)
/rhome 172.24.0.0/255.255.0.0(rw,sync,no_root_squash)

also I test my namer server using host and dig commands

[root@server1 ~]# host 172.24.0.6
6.0.24.172.in-addr.arpa domain name pointer station6.example.com.
[root@server1 ~]# host server1.example.com
server1.example.com has address 172.24.254.254


above mentioned both entries in exports are mounted through IP given in mount command. But mount is unable to do any if domain name is given.

One more, is this the same problem that fails mounting nfs source during kickstart?

Details are given below

Last edited by kaustubhshimpi; 03-07-2010 at 09:18 AM.
 
Old 03-07-2010, 09:17 AM   #4
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
details

OS : RHEL5
kernel : 2.6.18-53.el5

/etc/hosts
127.0.0.1 localhost.localdomain localhost
172.24.254.254 server1.example.com server1

ip info of name server (for kickstart server as well)
172.24.254.254 / 255.255.0.0 /172.24.254.254

client gets ip through DCHP
172.24.0.6 / 255.255.0.0 / 172.24.254.254
 
Old 03-07-2010, 09:22 AM   #5
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
How can I force kickstart client to mount nfs source using ip address of server only.
so that this problem will not arise.?
 
Old 03-08-2010, 12:55 AM   #6
JINXING
LQ Newbie
 
Registered: Mar 2010
Location: china
Distribution: redhat5.5
Posts: 6

Rep: Reputation: 0
Please check your Selinux.
 
Old 03-08-2010, 06:08 AM   #7
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
selinux is also disabled:

pls pay attention to the /var/log/messages after giving

# mount -t nfs server1.example.com:/rhome /nfs_nfs

Mar 8 23:00:59 server1 mountd[2600]: mount request from unknown host 127.0.0.1 for /rhome (/rhome)

why it takes request form 127.0.0.1(which is loopback address) and not from 172.24.254.254? what is the reason behind it?

Last edited by kaustubhshimpi; 03-08-2010 at 06:12 AM.
 
Old 03-08-2010, 06:18 AM   #8
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
hello friends,

after this i closely observe /var/log/messages

#/etc/init.d/portmap restart produces following log

Mar 8 23:13:43 server1 portmap[3816]: connect from 127.0.0.1 to set(portmapper): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3815]: connect from 127.0.0.1 to set(portmapper): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3818]: connect from 127.0.0.1 to set(rquotad): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3819]: connect from 127.0.0.1 to set(rquotad): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3820]: connect from 127.0.0.1 to set(rquotad): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3821]: connect from 127.0.0.1 to set(mountd): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3822]: connect from 127.0.0.1 to set(mountd): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3823]: connect from 127.0.0.1 to set(mountd): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3824]: connect from 127.0.0.1 to set(mountd): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3825]: connect from 127.0.0.1 to set(mountd): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3826]: connect from 127.0.0.1 to set(mountd): request from unprivileged port
Mar 8 23:13:43 server1 portmap[3817]: connect from 127.0.0.1 to set(rquotad): request from unprivileged port


is it ok? or request must be send via 172.24.254.254 which is my m/c ip add.


#/etc/init.d/nfs restart

Mar 8 23:16:45 server1 mountd[3702]: Caught signal 15, un-registering and exiting.
Mar 8 23:16:45 server1 kernel: nfsd: last server has exited
Mar 8 23:16:45 server1 kernel: nfsd: unexporting all filesystems
Mar 8 23:16:45 server1 kernel: RPC: failed to contact portmap (errno -5).
Mar 8 23:16:46 server1 kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Mar 8 23:16:46 server1 kernel: NFSD: starting 90-second grace period
Mar 8 23:18:54 server1 kernel: Removing netfilter NETLINK layer.


wht does it mean by :- failed to contact portmap?
whether everything working properly or not?

Last edited by kaustubhshimpi; 03-08-2010 at 06:20 AM.
 
Old 03-11-2010, 12:19 AM   #9
kaustubhshimpi
LQ Newbie
 
Registered: Mar 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hello all,

I reinstall the system and reconfigure everything and it worked for me.
unfortunately cant uderstand the problem. but now everything
i.e. DNS, NFS and KickStart is working well.

Thank you all..
 
  


Reply

Tags
failed, failure, kickstart, mount, nfs



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
Kickstart installation via NFS Latitude Linux - Newbie 7 10-02-2009 06:19 AM
kickstart over nfs jon2kx Linux - Software 2 05-14-2009 06:17 AM
Kickstart with nfs keeps using boot CD for rpm's jamsda Fedora - Installation 1 07-31-2008 02:01 AM
kickstart through nfs problem rohit_67066 Linux - Newbie 0 10-12-2007 08:29 AM
KickStart with NFS ! ongxanga Linux - Networking 16 02-20-2004 12:41 PM

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

All times are GMT -5. The time now is 01:41 AM.

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