How to Set Up AIX NFS

Source: Internet
Author: User
Tags nfsd

Configure NFS on AIX. The steps and command code we need here have been summarized for you and hope to help you. Now let's take a look at the specific process of configuring aix nfs.

1. Prepare the AIX Server

After AIX5.3 is installed by default, stop nfs and portmap processes and delete NFS-related files.

 
 
  1. # stopsrc -g nfs  
  2. 0513-044 The biod Subsystem was requested to stop.  
  3. 0513-044 The nfsd Subsystem was requested to stop.  
  4. 0513-044 The rpc.mountd Subsystem was requested to stop.  
  5. 0513-044 The rpc.lockd Subsystem was requested to stop.  
  6. 0513-044 The rpc.statd Subsystem was requested to stop.  

-G indicates that a group of nfs-related processes are stopped.

 
 
  1. # stopsrc -s portmap  
  2. 0513-044 The portmap Subsystem was requested to stop.  
  3. #  
  4. # cd /etc  
  5. # rm -rf sm sm.bak state xtab rmtab 

2. Configure the aix nfs server

You can directly Configure/etc/exports or use the smit tool. Because the configuration files of aix nfs and Linux are different, we recommend that you use the smit tool to configure

This is the content of the/etc/exports file configured through smit:

 
 
  1. # cat /etc/exports  
  2. /mnt -sec=sys:krb5p:krb5i:krb5:dh:none,rw,root=192.168.3.160,access=192.168.3.161:192.168.3.160  

I shared the/mnt directory and set only 192.168.3.160 to allow write operations on the shared directory. The accessible servers include 192.168.3.161 and 192.168.3.160. sec is the data encryption method. after configuration, use the exportfs command to update the/etc/exports content to the/etc/xtab file. The/etc/xtab file is the content read by NFS. Therefore, this step is critical, if you do not need this command, other nodes cannot correctly mount the NFS shared directory:

 
 
  1. # exportfs -a 

Note: the IP address of the NFS client must be written in the/etc/hosts text and the machine name must be specified. Otherwise, the aix nfs shared directory cannot be mounted.

3. Start NFS and Test

 
 
  1. # startsrc -s portmap  
  2. 0513-059 The portmap Subsystem has been started. Subsystem PID is 233644.  
  3. # startsrc -g nfs  
  4. 0513-059 The biod Subsystem has been started. Subsystem PID is 245894.  
  5. 0513-059 The nfsd Subsystem has been started. Subsystem PID is 213136.  
  6. 0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 172270.  
  7. 0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 217294.  
  8. 0513-059 The gssd Subsystem has been started. Subsystem PID is 221400.  
  9. 0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 217296.  
  10. 0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 221402.  

Shared directory on AIX NFS

 
 
  1. # showmount -e localhost  
  2. export list for localhost:  
  3. /mnt (everyone)  

View the aix nfs shared directory on Linux:

 
 
  1. test01:~ # showmount -e 192.168.3.162  
  2. Export list for 192.168.3.162:  
  3. /mnt (everyone)  
  4. test01:~ # 

Mount the NFS directory in Linux

 
 
  1. test01:~ # mount 192.168.3.162:/mnt /mnt. 

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.