How to Use NFS servers (1)

Source: Internet
Author: User

NFS is usually used in a Linux-level Unix system. So do you understand the application of this NFS server? Here, we will introduce the relevant knowledge. NFS is a standard way for Unix to share files over the network. with NFS, You can transparently install and access the file system on the remote host on the network, and install it in the local file system.

NFS Customer Support

The installation of the file system on the NFS server is similar to the installation of the local disk file system. The mount command is also used:

# Mount nfssrv:/exports/mnt

This command installs the/exports directory on the nfssrv host to the/mnt directory on the local machine. we can see that the difference between NFS installation and the local disk file system is that the file system description method is different. the local disk file system uses the device files under/dev to describe, while the NFS file system uses the remote host name and the shared directory names on the host to use the separated directory names. of course, the execution is actually different. In fact, mount runs mount_nfs Based on the file system type to install the nfs file system.

/Mnt should be an empty directory on the local file system. Other file systems are not installed. if the directory is not empty, the contents in the original local file system will not be accessible after mount is used. Only the contents in the newly installed file system can be seen.

From this point of view, NFS customers do not need to perform complex configurations. They only need to know the host name of the NFS server and the shared directory name. in fact, knowing the NFS server host name, you can use the showmount command to view the directory name and access restrictions shared by this server.

# Showmount-e nfssrv

To use an NFS file system, you only need to support the kernel without additional settings. However, the nfsiod process can provide an efficient buffer mechanism to improve the performance of the nfs file system, you can execute this daemon before mounting the NFS file system.

# Nfsiod-n 4

Parameter-n 4 is used to limit the number of nfsiod replicas. Each nfsiod is used to assist in one I/O operation. Therefore, if you perform frequent I/O operations through the NFS file system, we need to consider increasing the number of nfsiod replicas.

Because nfsiod can improve system performance, you can execute this daemon process when the system starts for NFS client computers. this requires the rc in the FreeBSD system configuration file. set the value of nfs_client_enable in conf to "YES". The system automatically runs nfsiod at startup.


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.