|
| | |||||||
| Apple Macintosh Hardware Discuss the Apple Macintosh Hardware |
| | LinkBack | Thread Tools |
| |||
| ls hangs on NFS share from Apple Xserve 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 |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IDC: Apple Mac shows market share gains | LPH | Apple | 0 | 04-30-2007 06:57 PM |
| OS Market Share: Vista Up, Apple Down | MICHAEL | Windows Vista | 0 | 04-10-2007 08:00 PM |
| Apple XServe vs. Dell for file server? | Scott Vandenberg | Apple Macintosh Hardware | 59 | 02-06-2007 04:53 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |