On Fri, Jul 11, 2008 at 06:37:01PM +0200, Steinar H. Gunderson wrote:
> On Fri, Jul 11, 2008 at 06:53:55PM +0400, Alexandra N. Kossovsky wrote:
> >> One of the first things that happen in /etc/init.d/nfs-kernel-server is a
> >> modprobe of nfsd... Do you have an /etc/exports at all?
> > Yes I do.
> > /etc/init.d/nfs-common is started at /etc/rcS.d/S44nfs-common, while
> > nfs-kernel-server loads nfsd too late, at /etc/rc2.d/S20nfs-kernel-server.
> > No, I've not changes init sequence manually -- it matches with
> > /var/lib/dpkg/info/nfs-common.postinst.
> 
> I think I asked you this already, without a reply: What does idmapd say at
> startup? It _should_ be loaded, and it should not depend on nfsd.ko.

Previously, you've asked if it starts. And I've answered that yes, it
starts. And even works for client nsf4.

Here are logs:
/var/log/boot:
Fri Jul 11 21:22:48 2008: Starting portmap daemon....
Fri Jul 11 21:22:48 2008: Starting NFS common utilities: statd 
idmapdrpc.idmapd: libnfsidmap: using domain: oktetlabs.ru
Fri Jul 11 21:22:48 2008: 
Fri Jul 11 21:22:48 2008: rpc.idmapd: libnfsidmap: using translation method: 
nsswitch
Fri Jul 11 21:22:48 2008: 
Fri Jul 11 21:22:48 2008:  gssd.
Fri Jul 11 21:22:49 2008: Starting portmap daemon...Already running..
Fri Jul 11 21:22:49 2008: Starting NFS common utilities: statd idmapd gssd.
Fri Jul 11 21:22:49 2008: Loading the saved-state of the serial devices... 
...........
Fri Jul 11 21:22:52 2008: INIT: Entering runlevel: 2
...........
Fri Jul 11 21:22:59 2008: Starting network benchmark server.
Fri Jul 11 21:22:59 2008: Starting NFS common utilities: statd idmapd gssd.
Fri Jul 11 21:22:59 2008: Exporting directories for NFS kernel daemon....
Fri Jul 11 21:22:59 2008: Starting NFS kernel daemon: nfsd svcgssd mountd.
Fri Jul 11 21:22:59 2008: Starting Name Service Cache Daemon: nscd.


/var/log/daemon.log:
<nothing idmapd-related earlier>
Jul 11 21:23:55 gondor rpc.idmapd[2453]: nss_getpwnam: name 
'sasha<_at_>oktetlabs.ru' domain 'oktetlabs.ru': resulting localname 'sasha' 
Jul 11 21:23:55 gondor rpc.idmapd[2453]: Client 0: (user) name 
"sasha<_at_>oktetlabs.ru" -> id "1000"
Jul 11 21:23:55 gondor rpc.idmapd[2453]: nss_getpwnam: name 
'arybchik<_at_>oktetlabs.ru' domain 'oktetlabs.ru': resulting localname 
'arybchik' 
Jul 11 21:23:55 gondor rpc.idmapd[2453]: Client 0: (user) name 
"arybchik<_at_>oktetlabs.ru" -> id "1004"
Jul 11 21:23:55 gondor rpc.idmapd[2453]: nss_getpwnam: name 
'helen<_at_>oktetlabs.ru' domain 'oktetlabs.ru': resulting localname 'helen' 
Jul 11 21:23:55 gondor rpc.idmapd[2453]: Client 0: (user) name 
"helen<_at_>oktetlabs.ru" -> id "1003"
...........
Jul 11 21:25:11 gondor rpc.idmapd[2453]: New client: a
Jul 11 21:25:11 gondor rpc.idmapd[2453]: Opened 
/var/lib/nfs/rpc_pipefs/nfs/clnta/idmap
Jul 11 21:25:11 gondor rpc.idmapd[2453]: New client: b
Jul 11 21:25:11 gondor rpc.idmapd[2453]: nss_getpwnam: name 
'root<_at_>oktetlabs.ru' domain 'oktetlabs.ru': resulting localname 'root' 
Jul 11 21:25:11 gondor rpc.idmapd[2453]: Client a: (user) name 
"root<_at_>oktetlabs.ru" -> id "0"
Jul 11 21:25:11 gondor rpc.idmapd[2453]: Client a: (group) name 
"root<_at_>oktetlabs.ru" -> id "0"
Jul 11 21:25:11 gondor rpc.idmapd[2453]: nss_getpwnam: name 
'artem<_at_>oktetlabs.ru' domain 'oktetlabs.ru': resulting localname 'artem' 
Jul 11 21:25:11 gondor rpc.idmapd[2453]: Client a: (user) name 
"artem<_at_>oktetlabs.ru" -> id "1031"
Jul 11 21:25:11 gondor rpc.idmapd[2453]: Client a: (group) name 
"oktetlabs<_at_>oktetlabs.ru" -> id "1000"
Jul 11 21:25:12 gondor rpc.idmapd[2453]: Client a: (group) name 
"plugdev<_at_>oktetlabs.ru" -> id "46"

(I've replaced '@' by '<_at_>')

/var/log/messages:
<nothing nfs-related earlier>
Jul 11 21:22:59 gondor kernel: Installing knfsd (copyright (C) 1996 [EMAIL 
PROTECTED]).
Jul 11 21:22:59 gondor kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 
state recovery directory
Jul 11 21:22:59 gondor kernel: NFSD: starting 90-second grace period
Jul 11 21:23:00 gondor /usr/sbin/gpm[3536]: *** info [mice.c(2059)]: 
Jul 11 21:23:00 gondor /usr/sbin/gpm[3536]: Detected EXPS/2 protocol mouse.
Jul 11 21:23:07 gondor autossh[3828]: starting ssh (count 1)
Jul 11 21:23:07 gondor autossh[3828]: ssh child pid is 3829
Jul 11 21:23:11 gondor kernel: [drm] Initialized drm 1.1.0 20060810
Jul 11 21:23:11 gondor kernel: ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 
(level, low) -> IRQ 16
Jul 11 21:23:11 gondor kernel: [drm] Initialized radeon 1.28.0 20060524 on 
minor 0
Jul 11 21:23:13 gondor kernel: [drm] Setting GART location based on new memory 
map
Jul 11 21:23:13 gondor kernel: [drm] Loading R300 Microcode
Jul 11 21:23:13 gondor kernel: [drm] writeback test succeeded in 1 usecs
Jul 11 21:24:01 gondor kernel: nfsd: nfsv4 idmapping failing: has idmapd not 
been started?


When I add "nfsd" to /etc/modules, I see absolutely the same messages on
boot.  However, with "nfsd" in /etc/modules, idmapd really works for
both nfs client and nfsd. 


It looks a bit strange for me that I do not see any boot-time idmapd messages
in /var/log/daemon.log (I guess you may be interested in such a messages).
When I restart idmapd manually, I see messages like:
Jul 11 21:43:22 gondor rpc.idmapd[4080]: libnfsidmap: using domain: 
oktetlabs.ru 
Jul 11 21:43:22 gondor rpc.idmapd[4080]: libnfsidmap: using translation method: 
nsswitch 
Jul 11 21:43:22 gondor rpc.idmapd[4081]: Expiration time is 600 seconds.
However, I see nothing similar in both "successful" boot (with nsfd.ko
pre-loaded) and "unsuccessful" boot (without nsfd.ko pre-loaded, idmapd
does not work for server).

Feel free to ask me for more info.
-- 
Alexandra N. Kossovsky
OKTET Labs (http://www.oktetlabs.ru/)
Phones: +7(921)956-42-86(mobile) +7(812)783-21-91(office)
e-mail: [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to