Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507462 - net-fs/nfs-utils - [rpc.idmapd] main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory
Summary: net-fs/nfs-utils - [rpc.idmapd] main: open(/var/lib/nfs/rpc_pipefs/nfs): No s...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 02:45 UTC by nobody
Modified: 2014-06-20 04:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobody 2014-04-12 02:45:00 UTC
https://bugs.gentoo.org/show_bug.cgi?id=172133#c9
I report that times ago but forget to open a bug for it.

nfsmount doesn't create needed directories for nfs client idmapd.
The directory creation is made thru nfs init.d script.

This mean that a client that has never run nfs init script will lack having the needed directories.
So the bug is only visible on nfs client that have never run nfs server itself.

And this should also close that old one : 

Reproducible: Always

Actual Results:  
nfs client fail to start nfs with 
Mar 24 17:49:12 [rpc.idmapd] Opened /proc/net/rpc/nfs4.nametoid/channel
Mar 24 17:49:12 [rpc.idmapd] Opened /proc/net/rpc/nfs4.idtoname/channel
Mar 24 17:49:12 [rpc.idmapd] main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory

Expected Results:  
Working.

Add the needed function present in nfs.init to nfsmount.init file
mkdir_nfsdirs() {
        local d
        for d in /var/lib/nfs/{rpc_pipefs,v4recovery,v4root} ; do
                [[ ! -d ${d} ]] && mkdir -p "${d}"
        done
}
Comment 1 SpanKY gentoo-dev 2014-06-20 04:52:10 UTC
nfsmount depends on rpc.idmapd only when you have nfs4 mounts

rpc.idmapd always depends on rpc.pipefs

rpc.pipefs makes sure /var/lib/nfs/rpc_pipefs is mounted