Use a general NFS mount tool for Uniform Loading

Source: Internet
Author: User
Article Title: Use a general NFS mount tool for uniform loading. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

To effectively implement unified loading when multiple NFS versions are exported at the same time, you must have an NFS loading tool. Learn how the General NFS mount tool can help reduce the processing of multiple NFS versions and simplify the management of these versions. This document describes the general concept of NFS mounting and briefly introduces the advantages and applications of this system. In addition, this article also provides some general design details.
Network File System (NFS) is a common distributed File System that enables remote clients to perform File operations on servers. By using export, the server enables external machines to access its directories and file systems. To access these directories, the client mounts the exported directory or file system to its local directory structure. Within the mounted directory, the client can access remote files just like accessing local files. So far, NFS supports three versions for exporting and loading directories or file systems: versions 2, 3, and 4.

In this article, we demonstrate how to use the general NFS mount tool to merge the export and loading of all existing NFS versions into a seamless mechanism. Let's consider this scenario: the server exports directory items for three versions of NFS. Currently, if the client wants to access all these items, it must load each item separately at different mount points. Although the pseudo-tree mechanism provided by NFS Version 4 can load all NFSv4 export items at a time, it only applies to the items generated by this version. Although version 4 can perform one-time loading (when a pseudo tree exists), the client must separately load versions 2 and 3.

The general NFS mount tool is actually the package of the mount command, which enables you to load all the export items from a specific server through a command. Because it is not good to change the NFS server, the package runs different mounts on the client (transparent to users.

Look at the directory structure on the NFS server, as shown in 1:


Figure 1. directory structure on the server

In this scenario, you need to execute the following mount in the client:

An NFSv4 mount: loads the NFSv4 pseudo tree (Fileset1 and Fileset2 ). The NFSv4 pseudo-tree feature allows the NFSv4 client to perform only one mount operation on all exported items in the pseudo-tree.
Two NFSv3 mounts: Tools and Docs.
An NFSv3 mount: loads Binaries.
You can use the NFS mount tool to merge these loads into one. Run the following command:

gennfsmount 
              
      
     

The general NFS mount tool has the following advantages:

The user can access all information on the server by loading it only once. This function was not supported previously.
Assume that a server not only exports the old file sets of version 2 and version 3, but also the new file set of Version 4. The client can access all these file sets through one operation and perform installation.
This general tool improves search on a specific server or a specific export directory/file system.
Because this tool can automatically isolate version-based NFS export, you no longer need to manage these different mount points.
The NFS administrator can retain the old version of NFS for export on the server, because you only need to use the mount command to access them just like accessing new versions of data items.
Similar results can be obtained using the automount tool, but it requires the Administrator to perform many configurations on automount to obtain the required NFS mount. The hostmap feature of automount claims that all export items can be mounted from the server without any configuration by the Administrator, but problems may occur when you use hostmap to load NFSv4 items. In addition, it operates all the servers listed in the/etc/hosts file. It cannot load all exported items from a specific server on a single mount point.

In general, General NFS loaders are the most convenient. Next, let's take a look at some design decisions in the process of implementing the general NFS loading tool.

[1] [2] [3] Next page

Related Article

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.