http://bugzilla.novell.com/show_bug.cgi?id=559021 http://bugzilla.novell.com/show_bug.cgi?id=559021#c0 Summary: nfs4 mounts from script don't always work Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-1.1.2 Firefox/3.5.5 Very odd: I have some NFS mounts which take place in /etc/sysconfig/network/ifservices-eth0 so that when eth0 comes up, the script determines which network it is in and (if appropriate) NFS mounts some directories. This worked great in openSUSE 10.X and 11.0, 11.1 but does not work in 11.2 It gets weirder. I set the script up so that it logs every statement via logger, and the mount commands are succeeding. And nfs "stuff" of some sort is happening, but for some reason I don't end up with any mounts. For example:
From /var/log/messages:
Nov 28 15:17:06 worklaptop ifup-services: + mount -t nfs4 -o soft,noacl,timeo=200 192.168.2.1:/multimedia /multimedia Nov 28 15:17:06 worklaptop ifup-services: + mount -t nfs4 -o soft,noacl,timeo=200 192.168.2.1:/isos /isos Nov 28 15:17:06 worklaptop ifup-services: + exit 0 Nov 28 15:17:06 worklaptop rpc.idmapd[3178]: Stale client: 81 Nov 28 15:17:06 worklaptop rpc.idmapd[3178]: -> closed /var/lib/nfs/rpc_pipefs/nfs/clnt81/idmap Nov 28 15:17:06 worklaptop rpc.idmapd[3178]: Stale client: 7d Nov 28 15:17:06 worklaptop rpc.idmapd[3178]: -> closed /var/lib/nfs/rpc_pipefs/nfs/clnt7d/idmap Nov 28 15:17:06 worklaptop rpc.idmapd[3178]: Stale client: 7f Nov 28 15:17:06 worklaptop rpc.idmapd[3178]: -> closed /var/lib/nfs/rpc_pipefs/nfs/clnt7f/idmap Nov 28 15:17:06 worklaptop rpcbind: connect from 127.0.0.1 to unset(1073741824) Nov 28 15:17:06 worklaptop sm-notify[3770]: Already notifying clients; Exiting! Nov 28 15:17:06 worklaptop rpc.idmapd[3776]: libnfsidmap: using domain: localdomain Nov 28 15:17:06 worklaptop rpc.idmapd[3776]: libnfsidmap: loaded plugin libnfsidmap_nsswitch.so for method nsswitch Nov 28 15:17:06 worklaptop rpc.idmapd[3777]: Expiration time is 600 seconds. Nov 28 15:17:06 worklaptop rpc.idmapd[3777]: nfsdopenone: Opening /proc/net/rpc/nfs4.nametoid/channel failed: errno 2 (No such file or directory) If I issue the mount commands from the commandline, they work fine. I even put an strace in the script and the mount *syscall* works: 31014 14:44:42.661157 mount("192.168.2.1:/multimedia", "/multimedia", "nfs4", 0, "soft,noacl,timeo=200,clientaddr="...) = 0 <0.186784> and it even writes it into /etc/mtab: 31014 14:44:42.851267 open("/etc/mtab", O_RDWR|O_CREAT|O_APPEND, 0666) = 5 <0.000029> 31014 14:44:42.851372 umask(022) = 077 <0.000018> 31014 14:44:42.851468 fstat(5, {st_mode=S_IFREG|0644, st_size=1144, ...}) = 0 <0.000020> 31014 14:44:42.851605 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9de6d44000 <0.000025> 31014 14:44:42.851696 fstat(5, {st_mode=S_IFREG|0644, st_size=1144, ...}) = 0 <0.000019> 31014 14:44:42.851822 lseek(5, 0, SEEK_SET) = 0 <0.000019> 31014 14:44:42.851900 read(5, "/dev/mapper/system-root / jfs rw"..., 1144) = 1144 <0.000031> 31014 14:44:42.852061 write(5, "192.168.2.1:/multimedia /multime"..., 110) = 110 <0.000232> 31014 14:44:42.852374 close(5) = 0 <0.000030> 31014 14:44:42.852467 munmap(0x7f9de6d44000, 4096) = 0 <0.000039> 31014 14:44:42.852567 close(4) = 0 <0.000031> 31014 14:44:42.852657 unlink("/etc/mtab~") = 0 <0.000103> 31014 14:44:42.852844 exit_group(0) = ? Eventually, I discovered that the /etc/NetworkManager/dispatcher.d/nfs script was interfering with this script. Disabling nfs (chkconfig --del nfs) lets OTHER scripts that use NFS not run into weird problems. I haven't a clue how to fix this. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.