Bugzilla – Bug 155705
NFS can't write files > 2GB
Last modified: 2006-03-13 09:49:47 UTC
We tried to write files > 2GB over NFS. This doesn't work.
Please be more verbose. Tell more about the configuration of the server machine, attach /etc/exports of the server, and tell how (which options) you mounted the share on the client. Also be more verbose about the error - which software did you use to write the file, this could easily be a limitation in the used software. Try creating a file using `dd'.
We used FTP to the machine where the NFS was mounted and tried to transfer a file of 2.7 GB size. After 2 GB the process cancelled. Then we tried onto a local partition - and the whole file was transmitted correctly. Entry in our exports: /home *.[ourdomain](rw) 10.10.50.0/255.255.255.0(rw) The FTP server: vsftpd-2.0.1-2.2 But even locally I can't transmit a file > 2GB to the NFS partition.
Sorry but you're confusing me. If you are storing the file to the local filesystem, how should this be connected to NFS and what about the FTP-session. What filesystem are you using for /home, where and what exactly (using which program) did you try to store how? What was the exact error? > Then we tried onto a local partition - and the whole file was transmitted > correctly. > But even locally I can't transmit a file > 2GB to the NFS partition. What do these contradictive statements mean?
Confusing? Ok, here my whole process for finding the error reason: The first machine has the home directory mounted from another machine with NFS when a user logs in. There we tried to transfer the 2.7 GB file. It cut the file after 2GB. Because of the incomplete FTP transfer I tried the transfer onto another machine with the same OS (and same patch level, of course), but no NFS shares. Here we could transfer the 2.7GB without any problem. In both cases we used FTP for the transfer to the machines: 1st case: The destination hosts's home partition/directory is a NFS share 2nd case: The destination hosts's home partition/directory is locally on the destination host. Finally I wanted to know whether the problem could be within a combination of FTP and NFS or caused by NFS only. Therefore I tried to copy a file > 2GB onto an NFS share. Even in this case the file was cut after 2GB. So the problem not being able to transfer files > 2GB must be within the NFS code. I don't know whether that is a client NFS or server NFS problem.
Before we continue: Which version of SUSE Linux are you using (which version does the NFS-Server run exactly)?
SuSE 9.2: - Kernel 2.6.8-24.19-default - NFS-Server: nfs-server-2.2beta51-208.2 - NFS-Client: autofs-3.1.7-903 As you see, that are the current patches from SuSE/Novell.
Please see: http://www.suse.de/~aj/linux_lfs.html You need NFSv3 for this. Are you running v3 on both server and client?
OK this is a rather old version which is furthermore not supported by the openSUSE project (the first supported version is 10.0). You should consider updating your system to get LFS-support for your NFS-server.