Networking Forums

Networking Forums > Computer Networking > Linux Networking > ls hangs on NFS share from Apple Xserve

Reply
Thread Tools Display Modes

ls hangs on NFS share from Apple Xserve

 
 
Bernd Nies
Guest
Posts: n/a

 
      05-29-2004, 06:05 AM
Hi,

We're using an Xserve with RAID and OSX Server 10.3.3 as NFS server
for our mixed Solaris 8/9 and SuSE Linux 9.0 environment.

OS versions:

Darwin nfs-server.example.com 7.4.0 Darwin Kernel Version 7.4.0: Wed
May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC
Power Macintosh powerpc

Linux nfs-client.example.com 2.4.21-192-smp4G #1 SMP Wed Feb 18
19:27:48 UTC 2004 i686 i686 i386 GNU/Linux

The shares on the Xserve are mounted on the Linux client via NFS using
automount. The problems we have discovered are only when mounting from
the Xserve and not other NetApp, Solaris and Linux NFS servers. The
problems also exist on older SuSE releases and on RedHat 9.

1) In some directories ls -lR hangs forever. This is reproduceable but
not always in the same directory from the same Linux client. A strace
on the hanging ls process shows an endless loop with the system calls:
getdents64(), lstat64() and getxattr().

2) Sometimes a tar on a NFS share takes very long, grows in memory and
CPU usage and then aborts with the error message "memory exhausted". A
strace on the running tar process shows an endless loop with the
system call getdents64().

Sample strace on ls output:

getdents64(5, /* 3 entries */, 4096) = 128
lstat64("/share/dir/file1.txt", {st_mode=S_IFREG|0444, st_size=8550,
....}) = 0
getxattr("/share/dir/file1.txt", "system.posix_acl_access", (nil), 0)
= -1 EOPNOTSUPP (Operation not supported)
lstat64("/share/dir/file2.txt", {st_mode=S_IFREG|0444, st_size=6570,
....}) = 0
getxattr("/share/dir/file2.txt", "system.posix_acl_access", (nil), 0)
= -1 EOPNOTSUPP (Operation not supported)
lstat64("/share/dir/file3.txt", {st_mode=S_IFREG|0444, st_size=23411,
....}) = 0
getxattr("/share/dir/file3.txt", "system.posix_acl_access", (nil), 0)
= -1 EOPNOTSUPP (Operation not supported)

3) NFSv2 has a 2GB file size limit for reading/writing files. NFSv3
does not have that limit. Files larger thant 2GB appear in an ls
smaller than they are (original size modulo 2GB).

Problems 1) and 2) occur both on NFSv2 and NFSv3, mounted with TCP and
UDP. A temporary workaround is to create an additional file in the
directory where ls hangs.

Does somebody have the same problem and found a better workaround?

Thanks in advance.

Regards,
Bernd
 
Reply With Quote
 
 
 
 
Cameron Kerr
Guest
Posts: n/a

 
      05-29-2004, 05:11 PM
Bernd Nies <(E-Mail Removed)> wrote:
> Hi,
>
> We're using an Xserve with RAID and OSX Server 10.3.3 as NFS server
> for our mixed Solaris 8/9 and SuSE Linux 9.0 environment.


You may find a larger pool of experience in the mailing lists at
nfs.sf.net

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to share with Apple Desktop Billybob Wireless Networks 1 09-09-2008 12:15 AM
xSERVE e policies Branca k lavora Linux Networking 0 06-06-2007 07:20 PM
Vista client, explorer hangs browsing LHS share Hurricane Andrew Windows Networking 3 05-17-2007 02:25 AM
ls hangs on NFS share from Apple Xserve Bernd Nies Linux Networking 0 05-28-2004 08:36 AM



1 2 3 4 5 6 7 8 9 10 11