NFS and the 2GB limit

stan stanb at panix.com
Sat Apr 15 15:43:59 UTC 2006


On Tue, Apr 11, 2006 at 08:04:53PM -0400, stan wrote:
> I'm setting up an Sun Ultra40 running the AMD64bit version of Ubuntu. 
> Among other things, I copy over some _big_ Oracle data files. First
> try today bailed at exactly 2GB. I checked the filesystem using dd
> and I'm able to create files on that filesystem > 2G. I'm using userland
> NFS.
> 
> What can I do to fix this?
> 
Well, after looking around on the web (Thanks Google!). I was able to
make this work. In order to acomplish this I needed to do the following:

Change from the userland NFS server to the kernel one, as sugested
by a kind person on this list. This was as easy as an apt-get. Nor 
kernel recompile needed. I'm running the stock kerenl, so I don't
know what would be required if you compiled your own kernel. Porbably
just slecting the correct option in the config menu.

However, this alone did not resolve my problem. In addition I needed
to add the following to RPCMOUNTDOPTS in /etc/init.d/nfs-kernel-server
RPCMOUNTDOPTS="-N 1 -N 2". This should make the system deny NFS version 1 
and version 2 mount requests, since neither of these protocols support
files > 2G. This worked, but I must admint that I'm still puzzled.

Look at the output of rpcinfo -b

root at amanda:/etc/init.d# rpcinfo -p
   program vers proto   port
   100000    2   tcp    111  portmapper
   100000    2   udp    111  portmapper
   100003    2   udp   2049  nfs
   100003    3   udp   2049  nfs
   100003    4   udp   2049  nfs
   100003    2   tcp   2049  nfs
   100003    3   tcp   2049  nfs
   100003    4   tcp   2049  nfs
   100021    1   udp  32768  nlockmgr
   100021    3   udp  32768  nlockmgr
   100021    4   udp  32768  nlockmgr
   100021    1   tcp  32772  nlockmgr
   100021    3   tcp  32772  nlockmgr
   100021    4   tcp  32772  nlockmgr
   100005    1   udp    865  mountd
   100005    1   tcp    868  mountd
   100005    2   udp    865  mountd
   100005    2   tcp 	868  mountd
   100005    3   udp    865  mountd
   100005    3   tcp    868  mountd
   100024    1   udp    657  status
   100024    1   tcp    660  status

My eading of this is that the machine is still offereing NFS over UDP as version
2, 3, and 4.

But the HP-UX machine can now mount this Ubuntu box and sucesfully create files > 2G.

Strange, but true.

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror 
- New York Times 9/3/1967




More information about the ubuntu-users mailing list