Detailed description of the construction of the AIX 5L NFS Server (1)

Source: Internet
Author: User

You should be familiar with AIX. Now we will focus on the NFS server, so our platform is AIX 5L. The specific process of configuring NFS Server/Client on AIX 5L is described in detail.

1. Configure the AIX 5L NFS Server

First, you need to start the NFS Server. You can start or stop the nfs service group through smit NFS-> Network File System (NFS)-> Configure nfs on This System.

You can view the nfs service status through lssrc-g nfs.

 
 
  1. #lssrc -g nfs  
  2.  
  3.     Subsystem         Group            PID          Status  
  4.      biod             nfs              712706       active  
  5.      nfsd             nfs              635260       active  
  6.      rpc.mountd       nfs              462932       active  
  7.      rpc.lockd        nfs              639418       active  
  8.      rpc.statd        nfs              757914       active  
  9.      nfsrgyd          nfs                           inoperative  
  10.      gssd             nfs                           inoperative 

Of course, you can also start and stop the service group subsystem through startsrc-g nfs and stopsrc-g nfs. Whenever the system starts,/etc/rc. nfs runs the exportfs command to read the/etc/exports file on the server, and then tells the kernel which directories to export and the corresponding permissions. Then the rpc. mountd and above daemon are started by/etc/rc. nfs.

/Etc/exports specifies the Directory and permissions to be exported by the AIX 5L nfs server. The file content is as follows, as shown in

 
 
  1. #more /etc/exports  
  2. /u01/logs -sec=sys:krb5p:krb5i:krb5:dh:none,rw,access=host_name 

Note: you must write the machine name for access. The ip address corresponding to the machine name is displayed in/etc/hosts.

You can use exportfs to export the directory, for example:

 
 
  1. #/usr/sbin/exportfs -a  
  2. #/usr/sbin/exportfs  
  3. /u01/logs -sec=sys:krb5p:krb5i:krb5:dh:none,rw,access=host_name 

For more usage of exportfs, see related help. In addition, the format of/etc/xtab is the same as that of/ext/exports. When running exportfs, /etc/xtab will be updated to temporarily export a directory without updating the exports file.

For updates to/etc/exports, you can also use smit nfs-> Network File System (NFS) -> Add a Directory to Exports List or Change/Show Attributes of an Exported Directory, as shown in

 
 
  1. #smit chnfsexp  
  2.  
  3.     * Pathname of directory to export                     /u01/logs  
  4.       Anonymous UID                                      [-2]  
  5.       Public filesystem?                                 [no]  
  6.     * Change export now, system restart or both           both  
  7.       Pathname of alternate exports file                 []  
  8.       Allow access by NFS versions                       []  
  9.       External name of directory (NFS V4 access only)    []  
  10.       Referral locations (NFS V4 access only)            []  
  11.       Replica locations                                  []  
  12.       Ensure primary hostname in replica list             yes  
  13.       Allow delegations?                                 []  
  14.       Security method                                    [sys,krb5p,krb5i,krb5,dh,none]  
  15.           Mode to export directory                       [read-write]  
  16.           Hostname list. If exported read-mostly         []  
  17.           Hosts & netgroups allowed client access        [host_name1,host_name2]  
  18.           Hosts allowed root access                      [] 

Verify that the/etc/exports file on the server lists the name of the file system to be installed on the client and whether the file system has been exported. Run the following command:

 
 
  1. #showmount -e server_name 

This command runs normally on the AIX 5L NFS Server/client and lists all file systems exported by server_name.


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.