NFS: server is not responding, still trying

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.