LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS fail to load RPC after kernel compile (https://www.linuxquestions.org/questions/linux-networking-3/nfs-fail-to-load-rpc-after-kernel-compile-396933/)

MoreCoffee 12-27-2005 02:16 PM

NFS fail to load RPC after kernel compile
 
After compiling a kernel for my FC4 box it will not run a NFS server all seems to start ok except for RPC. Does anyone know what I need to add in xconfig. Any help would be appreciated.

Thanks

bulliver 12-27-2005 03:07 PM

The RPC daemons are not kernelspace. They are installed by the userland NFS package(s). Do you have nfs-utils installed?

If so, then at least posting the errors you are getting will help to diagnose your problem.

MoreCoffee 12-27-2005 10:02 PM

Thanks for the help so far, yes I have nfs-utils, and portmap

here is the error I'm getting upon the start of NFS.

Code:

Starting RPC idmapd: FATAL: Module sunrpc not found.
FATAL: Error running install command for sunrpc

Code:

cat .config | grep SUNRPC
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y

dmesg produces
Code:

SELinux: initialized (dev nfsd, type nfsd), uses genfs_contexts
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist
NFSD: starting 90-second grace period

I also tried adding this to my /etc/fstab with no results.
Code:

rpc_pipefs              /var/lib/nfs/rpc_pipefs rpc_pipefs defaults    0 0
Any suggestions would be appreciated
Thanks
MoreCoffeee

jtester 06-16-2006 05:23 PM

Starting RPC idmapd: FATAL: Module sunrpc not found
 
I am have having a simular problem
with uml 2.6.16.18

Starting RPC idmapd: FATAL: Module sunrpc not found.
FATAL: Error running install command for sunrpc

Did anyone get a solution?

Linux:~/uml/linux-2.6.16.18 # grep SUNRPC .config
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
and
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
CONFIG_NFSD_TCP=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
CONFIG_NCPFS_NFS_NS=y

Thanks

jtester 06-21-2006 05:22 PM

If you dont want to rebuild the kernel just
inside the file
/etc/init.d/rpcimapd
Commeted out the lines
> # Load sunrpc which mounts the rpc_pipes fs.
> echo Load sunrpc which mounts the rpc_pipes fs.
> [ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
> if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
> /sbin/modprobe sunrpc # || exit 1
> fi
> }
>

Then I need to add
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
to the file /etc/fstab
then
mount -a
[root@localhost ~]# service rpcidmapd start
Starting RPC idmapd: [ OK ]


All times are GMT -5. The time now is 12:38 AM.