The nfs.v2.2gb.lim option only relates to how some NFS clients determine if there is free space available or not on the volume. It has nothing to do with how file sizes are returned.
Now, the problem with NFSv2 is that the size attribute is a 32bit unsigned integer, thus a 2gb file max. NFSv3 has a unsigned 64bit integer value for file size. If you're using NFSv2, you're going to run into problems.
I've seen this before (at least on Solaris) using NFSv3. Some utilities in Solaris (like 'ls','tar' etc.) will utilize 32bit versions system calls like open(),stat(),read(), etc. In order to do operations on a file larger than 2gb, your program must use open64(),stat64(),etc. I've seen Solaris' 'ls' command cough up hair balls because the file is larger than 2gb. I ran 'truss ls -l largefile' and noticed that 'ls' was using the wrong system calls. Although, on that same system, if I used '/usr/ucb/ls' it worked just fine. Using 'truss' on '/usr/ucb/ls' showed that it was using the correct system calls.
I finally found an answer on how to force your application (I'll assume you have source code) to use the 64bit version of the system calls. You need to define _FILE_OFFSET_BITS 64 in your source code. That'll force your app (under Solaris) to use open64(),stat64(), etc. You might want to peruse through your gunzip code to see if it is defined.
I'm not sure that upgrading to 6.0.1R3 will help if you're using NFSv2. Do you have a case number to reference?
I hope that helps some.
Aaron Professional Services Consultant Network Appliance
-----Original Message----- From: Hubbard, Dan [mailto:dhubbard@websense.com] Sent: Wednesday, March 28, 2001 2:10 PM To: toasters@mathworks.com Subject: File too large ?
All;
We are using a ONTAP v 6.0.1 and are NFS mounting Solaris and Redhat Linux boxes. We are in the process of creating some large text files and cannot either gunzip and/or create files greater than 2GB's. We have bumped up our maxfiles and set the options nfs.v2.df_2gb_lim ON without any luck.
Our friends in tech support at Netapp told me that I must upgrade to 6.0.1r3 to fix this. Any input from the field ?
Also, any input on issues with NFS and Redhat Linux kernel 2.2.14 (RH7.0) ?
Thanks