LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   NFS, DNS and KickStart (http://www.linuxquestions.org/questions/linux-server-73/nfs-dns-and-kickstart-793556/)

kaustubhshimpi 03-06-2010 01:34 AM

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?

TB0ne 03-06-2010 10:43 AM

Quote:

Originally Posted by kaustubhshimpi (Post 3887944)
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.).

kaustubhshimpi 03-07-2010 09:06 AM

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

kaustubhshimpi 03-07-2010 09:17 AM

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

kaustubhshimpi 03-07-2010 09:22 AM

How can I force kickstart client to mount nfs source using ip address of server only.
so that this problem will not arise.?

JINXING 03-08-2010 12:55 AM

Please check your Selinux.

kaustubhshimpi 03-08-2010 06:08 AM

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?

kaustubhshimpi 03-08-2010 06:18 AM

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?

kaustubhshimpi 03-11-2010 12:19 AM

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..


All times are GMT -5. The time now is 11:22 PM.