Problem description: After I use the target machine to mount NFS, the server is not responding and still trying problems will occur when I read and write large files. Some of them solve this problem after Google, as shown below:
**************************************** *********************************
When you mount the NFS file system on the host on the mini2440 Development Board and transfer a large file, the following message is displayed:
NFS: server is not responding, still trying
Cause:
Mandag 27 November 2006 skrev Verner kjrsgaard:
> Mandag 27 November 2006 skrev John P. New:
> Verner,
>
> This is a problem with NFS and 2.6 kernels, fast server networking and
> Comparatively slower client startup. This will show up when the server has
> A 1000 MB card and the client a 100 MB, or when the server has a 100 MB
> Card and the client a 10 MB.
>
> Essential, you have to pass some options to the kernel on Terminal
> Boot, and this varies depending on whether you are using etherboot or
> PXE.
>
> See
> Http://wiki.ltsp.org/twiki/bin/view/Ltsp/NFS#NFS_Server_not_responding
> For a deeper explanation of the problem and the cure.
To solve this problem, you must add additional parameters when mounting the file system.
Solution:
1 When the target machine is started and has entered the Linux system, run the following mount command:
Mount-T nfs-O intr, nolock, rsize = 1024, wsize = 1024 59.70.245.216:/home/lizhao/rootfs/mnt/nfs
(The intr rsize = 1024 wsize = 1024 parameter is added. For more information about the parameter, see the following description)
2. When the target machine is in the boot phase and passing command line parameters to the kernel, use the following parameters:
Console = ttysac0 root =/dev/nfs nfsroot = kernel:/home/lizhao/rootfs, flags = intr, rsize = 1024, wsize = 1024ip = kernel: 59.70.245.216: kernel: Kernel 255.255.0: leao: eth0: Off
Parameter description:
Intr-when the server goes down or fails to arrive, the NFS request can be interrupted. Nolock -- disable the file lock. Rsize = 8192 and wsize = 8192 -- increase the speed of NFS read/write by setting a large data block size (bytes) at the same time. Be careful when changing these values. Some old linux kernels and NICs cannot work normally in a large block size.