The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ESC sequence on RHEL5 amit1_x Linux 2 04-28-2008 11:37 AM
OpenVZ kernel 2.6.18-53.1.13.el5-028stab053.10 (RHEL5 2.6.18 branch) iBot Software Releases - RSS News 0 04-11-2008 01:20 PM
Parent child Relation !! using awk/sed ??? varungupta UNIX for Advanced & Expert Users 0 01-29-2008 02:24 PM
OpenVZ kernel 2.6.18-53.1.4.el5-028stab053.4 (RHEL5 2.6.18 branch) iBot Software Releases - RSS News 0 01-18-2008 08:20 PM
Relation between kernel & weblogic thread bishweshwar UNIX for Advanced & Expert Users 2 11-22-2007 02:08 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
dubi dubi is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 1
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; 2 Weeks Ago at 05:44 PM..
  #2 (permalink)  
Old 2 Weeks Ago
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
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 (permalink)  
Old 1 Week Ago
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,910
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?
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0