| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-06-2010, 01:34 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Rep:
|
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?
|
|
|
|
03-06-2010, 10:43 AM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
Quote:
Originally Posted by kaustubhshimpi
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.).
|
|
|
|
03-07-2010, 09:06 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
|
03-07-2010, 09:17 AM
|
#4
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Original Poster
Rep:
|
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
|
|
|
|
03-07-2010, 09:22 AM
|
#5
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Original Poster
Rep:
|
How can I force kickstart client to mount nfs source using ip address of server only.
so that this problem will not arise.?
|
|
|
|
03-08-2010, 12:55 AM
|
#6
|
|
LQ Newbie
Registered: Mar 2010
Location: china
Distribution: redhat5.5
Posts: 6
Rep:
|
Please check your Selinux.
|
|
|
|
03-08-2010, 06:08 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
|
03-08-2010, 06:18 AM
|
#8
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
|
03-11-2010, 12:19 AM
|
#9
|
|
LQ Newbie
Registered: Mar 2010
Posts: 7
Original Poster
Rep:
|
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..
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|