How to configure mounting an AIXNFS server in Linux

Source: Internet
Author: User
Tags nfsd
Article Title: how to configure mounting an AIXNFS server in Linux. 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.

1. Prepare the AIX Server

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

# Stopsrc-g nfs
0513-044 The biod Subsystem was requested to stop.
0513-044 The nfsd Subsystem was requested to stop.
0513-044 The rpc. mountd Subsystem was requested to stop.
0513-044 The rpc. lockd Subsystem was requested to stop.
0513-044 The rpc. statd Subsystem was requested to stop.
#
-G indicates that a group of nfs-related processes are stopped.

# Stopsrc-s portmap
0513-044 The portmap Subsystem was requested to stop.
#

# Cd/etc
# Rm-rf sm. bak state xtab rmtab

2. Configure the NFS server of AIX

You can directly Configure/etc/exports or use the smit tool. Because the NFS of AIX is different from the configuration file in Linux, we recommend that you use the smit tool to configure

This is the content of the/etc/exports file configured through smit:
# Cat/etc/exports
/Mnt-sec = sys: krb5: 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:

# Exportfs-

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 NFS shared directory on AIX cannot be mounted.

3. Start NFS and Test

# Startsrc-s portmap
0513-059 The portmap Subsystem has been started. Subsystem PID is 233644.
# Startsrc-g nfs
0513-059 The biod Subsystem has been started. Subsystem PID is 245894.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 213136.
0513-059 The rpc. mountd Subsystem has been started. Subsystem PID is 172270.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 217294.
0513-059 The gssd Subsystem has been started. Subsystem PID is 221400.
0513-059 The rpc. lockd Subsystem has been started. Subsystem PID is 217296.
0513-059 The rpc. statd Subsystem has been started. Subsystem PID is 221402.
#

View NFS shared directories on AIX
# Showmount-e localhost
Export list for localhost:
/Mnt (everyone)
#

View the NFS shared directory of AIX on Linux:
Test01 :~ # Showmount-e 192.168.3.162
Export list for 192.168.3.162:
/Mnt (everyone)
Test01 :~ #

Mount the NFS directory in Linux
Test01 :~ # Mount 192.168.3.162:/mnt.

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.