From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bec538b7514fa0e0 X-Google-Attributes: gidfee84,public From: werme@alingo.zk3.dec.com (Eric Werme) Subject: Re: NFS v3 problems NFS v2 OK Date: 1998/01/13 Message-ID: #1/1 X-Deja-AN: 315545679 References: <69a0tp$1h7$1@gte1.gte.net> <69e8k5$t3a@eliot.oit.umass.edu> Organization: Digital Equipment Corporation Reply-To: werme@zk3.dec.com Newsgroups: comp.unix.osf.osf1 peter@dev.null (Peter deFriesse) writes: >Somewhere off the top of my screen in article <69a0tp$1h7$1@gte1.gte.net>, > the esteemed jreali@gte.net said: >}Having a heck of a time with NFS v 3 and mixed clients (Sun w/ SunOS and >}Solaris, Irix 5.3 and 6.2, HP-UX 9 & 10, AIX...)o SunOS doesn't support V3, V3 in Irix 5.3 is Just Plain Broken, I'm not certain when HP started supporting V3. Please be more explicit. It seems when using >}automount and mounting a filesystem from most other systems with a >}different OS, or exporting a filesystem to another system with a different >}OS, I can only see 8 levels deep of sybolic links. I can edit a file by >}putting in the path below this level of links, but the file does not appear >}with the "ls" command no matter what options are used with the command. The only thing close to this that rings a bell is a couple bugs seen with Network Appliance servers. Under hard to describe circumstances, newly created files won't show up via ls (ls would work). I think the patch for that is available, but I'm not confident you're seeing that problem. What do you mean by "8 levels of symbolic links"? A link that points to a link that points to another link, or a pathname that requires 8 readlink(2)s to resolve? If you can reproduce this without involving Irix 5.3, I'd like to see it and tcpdump traces. Do not let Irix 5.3 talk NFS V3 to *anyone*. If you can come up with a script that reproduces the problem reliably, I can take it to Connectathon, a NFS interoperability test session, in March. If >}I for he nfs v2 export and mount opions, all is well. What up with this. Eh? :-) >}Digital UNIX seems to be the only OS with this problem consistantly. >} >}Anyone have a fix for this? > You found the fix. I know this isn't much help, but I had a >similar problem with a DUX 3.2g system NFS serving gigabytes of 10K+ >users home directories in a mixed-platform environment. Details? jreali seems to be describing two problems, one with accessing links, one with reading directories. READDIRPLUS is a NFS request introduced in NFS V3. That's where the NetApp problem lay. An easy, but heavy-handed, way to disable READDIRPLUS is to mount with the "noac" option. You won't want to run that way as it will cause quite a bit more NFS traffic, but it makes for a convenient test. For chasing link issues, our development environment is symlink crazy, and I wrote this script to help chase down missing mounts: #!/bin/csh -f # fstep - follow a pathname's components to the final file. set link = $1 set list = () @ i = 1 newlink: echo $link | grep -q '^/' if ($status == 0) then cd / endif set new = ( `echo $link | tr '/' ' '` ) set list = ( $new $list[$i-] ) @ i = 1 while ( $i <= $#list ) set ls = `ls -lgd $list[$i]` echo $ls if ( $#ls == 11 ) then @ i = $i + 1 set link = $ls[11] goto newlink else if (-d $list[$i]) cd $list[$i] @ i = $i + 1 endif end After >waiting over 24 hours for Digital to call back on a "critical" >call we stumbled on the same solution as you did. The pathetic >thing in *my* case was that the "mixed-platform environment" was >all Digital. The NetApp problem should not exist with DEC servers, at least I couldn't think of a way to reproduce it without sizable changes to server code. The bulk of network traffic here is NFS V3. I know of no such problems in our environment. Hints on setting up tcpdump are in the Digital UNIX FAQ. -- -- <> ROT-13 addresses: <> The above is unlikely to contain official <> <> <> claims or policies of Digital Equipment Corp. <> <> <> Eric (Ric) Werme <>