Configure NFS shared to Linux under AIX

Source: Internet
Author: User

Configure NFS shared to Linux under AIX

Requirement: a linux client shares a directory of the aix server through nfs

Environment:

Server: AIX 6.1 192.168.0.1/bsiptest

Client: RHEL 5.5 and RHEL 6.1 192.168.0.32/weblogic, 192.168.0.3/dc

Shared Directory:/nfs/share

Server:

1. Stop nfs and portmap processes:

# Stopsrc-g nfs

# Stopsrc-s portmap

2. Edit the hosts file and add nfs client information

Vi/etc/hosts

192.168.0.32 weblogic

192.168.0.3 dc

3. Edit the exports file

Vi/etc/exports

/Nfs/share-sec = sys: krb5: krb5i: krb5: dh: none, rw, root = weblogic. dc. bsip

Share the/nfs/share directory. The setting allows weblogic, dc, and bsip to read and write the shared directory. The 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-

4. Start nfs and Test

# Startsrc-s portmap

# Startsrc-g nfs

View the nfs shared directory on the server's aix machine

# Showmount-e localhost

Client:

1. Edit the hosts file and add nfs server information

Vi/etc/hosts

192.168.0.1 bsiptest

2. Create a mount point

# Mkdir/share

3. view shared directories

# Showmount-e 192.168.0.1

Or

# Showmount-e bsiptest

4. Mount

# Mount-t nfs 192.168.0.1:/nfs/share

Or

# Mount-t nfs bsiptest:/nfs/share

In this step, the "mount. nfs: Remote I/O error" error is reported during the RHEL 6.1 client operation, and the other client is OK.

Because the Internet access was not convenient at the time, I/O problems may occur on the server at the beginning. Check it again and add the test file in the/nfs/share directory to eliminate IO problems; check related configurations and services, restart the service, or even restart the machine. It is suggested that the version is related to the client operating system version. The 5.5 version can be mounted normally, but the 6.1 version has encountered a problem.

Finally, search by google and try again. Finally, run the following command on the RHEL 6.1 client to mount the file successfully:

# Mount-t nfs 192.168.0.1:/nfs/share-o nfsvers = 2

Note:

Mount default parameter nfsvers = n: sets the NFS version to be used. The default parameter is 2. The setting of this option depends on whether the server supports nfs ver 3.

Note:

The client needs to check whether services such as portmap and nfs are started properly.

Service portmap restart

Service nfs restart

Service portreserve restart

Service rpcbind restart

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.