002. nfs-related configuration items

Source: Internet
Author: User
Configuration file (/etc/exports) 1.1 format

<Output directory> [client 1 option (access permission, user ing, others)] [client 2 Option (access permission, user ing, others)]

2. output directory

Output directory: the directory to be shared to the client in the NFS system;

3. Client 3.1

The computer that can access the NFS output directory on the network;

3.2 specify common methods for clients
  • Host with the specified IP Address: 192.168.0.200
  • All hosts in the specified subnet: 192.168.0.0/24 192.168.0.0/255.255.255.0
  • Host for the specified domain name: David .bsmart.cn
  • All hosts in the specified domain: * .bsmart.cn
  • All Hosts :*
Four options

Set the access permission and user ing of the output directory.

4.1 permission options
  • Set output directory read-only: RO
  • Set output directory read/write: RW
4.2 User ing options
  • All_squash: maps all common users and groups remotely accessed to anonymous users or user groups (nfsnobody );
  • No_all_squash: returns an inverse value from all_squash (default );
  • Root_squash: maps root users and groups to anonymous users or user groups (default );
  • No_root_squash: returns the inverse of rootsquash;
  • Anonuid = xxx: maps all remotely accessed users to anonymous users and specifies the user as a local user (uid = xxx );
  • Anongid = xxx: maps all remotely accessed user groups to anonymous user group accounts, and specifies this anonymous user group account as a local user group account (gid = xxx );
4.3 Other Options
  • Secure: restrict the client to connect to the NFS server from a TCP/IP Port less than 1024 (default );
  • Insecure: allows the client to connect to the server from a TCP/IP Port greater than 1024;
  • Sync: write data synchronously to the memory buffer and disk, which is less efficient, but can ensure data consistency;
  • Async: stores data in the memory buffer before writing data to the disk if necessary;
  • Wdelay: Check whether there are related write operations. If yes, execute these write operations together to improve the efficiency (the default setting );
  • No_wdelay: if there is a write operation, it will be executed immediately and should be used with sync;
  • Subtree: If the output directory is a sub-directory, the NFS server checks the permissions of its parent directory (default );
  • No_subtree: even if the output directory is a sub-directory, the NFS server does not check the permissions of its parent directory, which improves efficiency;

002. nfs-related configuration items

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.