Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 180425
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Network Filesystems <net-fs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Maurice Volaski <mvolaski@aecom.yu.edu>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 180425 depends on: Show dependency tree
Bug 180425 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-31 09:20 0000
In an existing, older installation where nfsv4 client was working, emerging to
the current version caused it stop working. Among other problems, the init
script rpc.idmapd complains

* Mounting RPC pipefs ...
mount: mount point /var/lib/nfs/rpc_pipefs does not exist                      
                                      [ !! ]

I believe it should be created by the script or at the very least by on
installation of the nfsutils ebuild.

------- Comment #1 From Gilles Dartiguelongue 2007-08-12 19:14:28 0000 -------
it works with nfs-utils-1.1.0 here,

I think it's either nfsmount or nfs init script that creates this folder.

------- Comment #2 From Renato Caldas 2007-09-30 18:42:15 0000 -------
This is a real bug, but usually not triggered.

The file is created by /etc/init.d/nfs, but nfs isn't a dependency of
rpc.idmapd. So you can actually try to start rpc.idmapd before the directory is
created, which generates the error.

------- Comment #3 From Maurice Volaski 2007-10-04 19:09:12 0000 -------
The nfs init script does indeed have to code to create this directory, but it's
still not working on my system with nfs-utils-1.1.0-r1.

------- Comment #4 From Jan Oravec 2007-10-10 10:24:03 0000 -------
I guess the init.d scripts have to be refactored. AFAIK, pipefs is used by
different daemons (at least rpc.idmapd and rpc.gssd), so mounting (and checking
for directory existence) should be separated into another init.d script.

Currently, if rpc.gssd get started before rpc.idmapd, I get this error:

Oct 10 12:08:26 [rpc.gssd] ERROR: failed to open /var/lib/nfs/rpc_pipefs/nfs:
No such file or directory_

When we are at refactoring init.d scripts, I would propose splitting rpc.gssd
(used by client) and rpc.svcgssd (used by server). I see no point in starting
both daemons on client-only or server-only machines.

------- Comment #5 From Renato Caldas 2007-10-10 10:39:00 0000 -------
(In reply to comment #4)
> When we are at refactoring init.d scripts, I would propose splitting rpc.gssd
> (used by client) and rpc.svcgssd (used by server). I see no point in starting
> both daemons on client-only or server-only machines.

Probably it would be best to have only two scripts, one for "server" and
another for "client". Too many scripts are a mess for those (like me) that only
want to start the server when needed.

As for the server script, there should be a better way for detecting/specifying
if nfs4 is to be used (to start idmapd). This only works for a client, if there
is a nfs4 line in fstab. Afaik there's currently no auto-detection for a
server, nor a way to set it to be started with nfs.

------- Comment #6 From Jan Oravec 2007-10-10 10:54:09 0000 -------
I would vote for split init.d scripts, but with proper (autodetected?)
dependencies. So you just have to start nfs for server and nfsmount for client.
And also configure something in conf.d properly.

Single init.d script is not good. When single service crashs, you cannot
trivially start/stop it and you will have inconsistent system state.

------- Comment #7 From Renato Caldas 2007-10-10 12:33:30 0000 -------
Fair enough. I wonder when will the net fs guys say something.. They seem a bit
silent.

------- Comment #8 From SpanKY 2007-12-29 09:29:31 0000 -------
added the dir check to rpc.idmapd as well

http://sources.gentoo.org/net-fs/nfs-utils/files/rpc.idmapd.initd?r1=1.3&r2=1.4

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug