Visit Our UNIX and Linux User Community


nfs on RHEL5.4 in relation to the selected kernel

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat nfs on RHEL5.4 in relation to the selected kernel
# 1  
Old 11-04-2009
nfs on RHEL5.4 in relation to the selected kernel

I have 2 RHEL5.4 systems connected by a network.
I start nfs server on one (fill /etc/exports , exportfs -ra, service nfs start, portmpa is up) and the client is on the other . I can mount the exported
directory on the client and work there .

Now the RH54 kernel is 2.6.18 . I now installed on the server side a new compiled kernel 2.6.30 because I need kvm . I do not use kvm yet just work at the host level.
I compiled the new kernel with same NFS flags as in the original RH kernel i.e same .config CONFIG_NFS_* values working with the make oldconfig as needed . Then rebooted the system and performed on the server side same operations as did first time to start the nfs server (/etc/exports is there , exportfs -ra, service nfs start . portmap is up there at boot) .
This time a mount request for the nfs directory on the client machine
returned an error : failed, reason given by server: Permission denied

I am working as root on both the client and server. The /var/log/messages
does not show any error just that nfs is up and "authenticated mount request from <client ip> for /export/dir" as in the succesful case .
In both cases /proc/fs/nfs/exports shows the right info (exort dir .. <IP>)
/var/lib/nfs/xtab is EMPTY in both cases (good and bad) ?!
/etc/host is holding the correct clinet and its hostname .

The only diff I find is that in the original RH kernel case , after mount is ok
issuing "dmesg | grep nfs" gives diffrent info than in the bad mount
as follows:

good case
Code:
dmesg | grep nfs

SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses genfs_contexts
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev futexfs, type futexfs), uses genfs_contexts
SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
SELinux: initialized (dev cpuset, type cpuset), uses genfs_contexts
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SELinux: initialized (dev nfsd, type nfsd), uses genfs_contexts
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory


bad case
Code:
dmesg | grep nfs

calling  init_nfs_fs+0x0/0x116 @ 1
initcall init_nfs_fs+0x0/0x116 returned 0 after 139 usecs
calling  init_nfsd+0x0/0xe3 @ 1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
initcall init_nfsd+0x0/0xe3 returned 0 after 5239 usecs
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory


Any idea how to solve this nfs mount issue ?

thanks

Last edited by pludi; 11-04-2009 at 05:44 PM..
# 2  
Old 11-04-2009
I am wondering if this is NFS V4 related, if you do not require the speed/security enhancements of NFS V4 you could try getting both ends to use NFS V3 instead.

This: RHEL5 Administration - 18.2.*NFS Client Configuration
Suggests specifying the NFS version while specifying that the mount is NFS, so try dropping down to NFSv3, it would at least prove that either way?
# 3  
Old 11-07-2009
You went from a 2.6.18 to a 2.6.30 kernel. Did you update any of the NFS user space libraries and utilities to work with your new kernel?

Previous Thread | Next Thread
Test Your Knowledge in Computers #281
Difficulty: Easy
A hypervisor or virtual machine monitor (VMM) is a computer software, firmware or hardware that creates and runs virtual private networks.
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

One to many relation by awk

Hi, I have a file with more than 50,000 rows. The file is **hsa-miR-10a** ** ABBA-1 ** **hsa-miR-10a** ** ABCA1 ** **hsa-miR-10a** ** ABCC3 ** **hsa-miR-10a** ** ABCC3 ** **hsa-miR-10a** ** ABI3 ** **hsa-miR-10a** ** ACAD11 ** **hsa-miR-10a** ** ACAD11 ** **hsa-miR-10a** ** ACRC **... (3 Replies)
Discussion started by: Diya123
3 Replies

2. UNIX for Dummies Questions & Answers

Regarding relation between SAS and HTML

How is sas related to web development - once we have the sas code executed what is the necessity to create a html output?? Any sas and html users welcome .. (2 Replies)
Discussion started by: swathi123
2 Replies

3. UNIX for Dummies Questions & Answers

What is the relation between UNIX and emacs?

I understand emacs is an editor and unix is a os. however, we have different commands for unix and dif commands for emacs.. How are they related to each other? thanks in advance :b: (3 Replies)
Discussion started by: swathi123
3 Replies

4. Red Hat

After umount -lf: kernel: nfs: server HOSTNAME not responding, timed out

Greetings! I'm testing a failover solution for NFSv4 on RHEL6 with latest updates. My script umounts (umount -lf /share) the faulty NFS share if it sees that's hanging on the client (the NFS daemon is down on the NFS server) and it mounts the share from another healthy NFS server. Sometimes... (4 Replies)
Discussion started by: Arsene Lupen
4 Replies

5. UNIX for Dummies Questions & Answers

Make sure kernel was compiled with NFS server support

Hi there, I have a Debian Squeeze server. How can I check if my kernel was compiled with NFS server support? Extra question: if it is not, how do I enable NFS support in my kernel? Thanks for your help. Santiago (3 Replies)
Discussion started by: chebarbudo
3 Replies

6. Shell Programming and Scripting

trying to print selected fields of selected lines by AWK

I am trying to print 1st, 2nd, 13th and 14th fields of a file of line numbers from 29 to 10029. I dont know how to put this in one code. Currently I am removing the selected lines by awk 'NR==29,NR==10029' File1 > File2 and then doing awk '{print $1, $2, $13, $14}' File2 > File3 Can... (3 Replies)
Discussion started by: ananyob
3 Replies

7. Red Hat

RHEL5 Kickstart NFS & DHCP Problem

I just finished setting up a Kickstart Server for our RHEL 5 installs. It's configured to use the PXE boot and NFS for the installation. Everything works fine when I just build one machine at a time. The installation works from begining to end. But when I try the install three machines at... (5 Replies)
Discussion started by: apfistler
5 Replies

8. UNIX for Advanced & Expert Users

Relation between kernel & weblogic thread

"nkthread" kernel parameter limits the number of threads running at any point of time from all processes. Does the thread setting in "weblogic server" is in anyway related to this. Please suggest. Thanks Bishweshwar (2 Replies)
Discussion started by: bishweshwar
2 Replies

Featured Tech Videos