Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using NFS on AIX to realize File Network sharing between AIX

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Using NFS on AIX to realize File Network sharing between AIX

AIX can use NFS to implement a similar window shared folder function between AIX, which is useful when installing system patches on multiple aix. You only need to upload FTP on one server, and other AIX can be accessed through sharing. (be careful not to access multiple servers together may cause problems due to busy aix)

Note:

1. There was no problem with multiple AIX in the same LAN subnet before. If you cross the network segment, please make sure that the NFS port is enabled in the network.

two。 Next, I use my root account to log in.

3. Add each other's IP address and hostname to the / etc/hosts at both ends of An and B (if you don't use DNS, all go through name in the hosts table.

The first part builds a directory to be shared through NFS on AIX server A, such as / test directory under the root directory

# ls-l

Total 8

-rw-r- 1 root system 543 Jul 24 03:39 temp.txt

The temp.txt contents of a file stored in the / test directory are as follows, which can be used to verify the success of the sharing.

# cat temp.txt

SBMJOB CMD (STROBJCVN LIB (* ALLUSR))

LOG (4 0 * SECLVL)

S6564E5B

Scheduled task DAILY4 HOLD

Tape label 001176 in the tape drive is pushed into the tape drive TAP07

Opt Queue Manager Port

HHT 1417

MQM HHT

Opt Queue Manager Port

HHT 1414

HHT 1417

Run # smit nfs on machine A

Select Network File System (NFS) first

NFS

Move cursor to desired item and press Enter.

Configure TCP/IP (If Not Already Configured)

Network File System (NFS)

Network Information Service (NIS)

Configure Secure NFS & NIS

Then select Add a Directory to Exports List (first Change / Show Attributes of an Exported Directory to confirm that the directory has not been Exported before

Network File System (NFS)

Move cursor to desired item and press Enter.

Configure NFS on This System

Add a Directory to Exports List

Change / Show Attributes of an Exported Directory

Remove a Directory from Exports List

Add a File System for Mounting

Change / Show Attributes of an NFS File System

Remove an NFS File System

Flush NFS V4 Translation Cache

Add NFSv4 File System FSID Options

Change / Show NFSv4 File System FSID Options

Reset NFSv4 File System FSID Options

In the following screen, * Pathname of directory to export enter the path and name of the export directory [/ test]

Add a Directory to Exports List

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]

* Pathname of directory to export [/ test]

Anonymous UID [- 2]

Public filesystem? No

* Export directory now, system restart or both both

[]

After the run is complete, the following prompts are given

COMMAND STATUS

Command: running stdout: yes stderr: no

Before command completion, additional instructions may appear below.

0513-059 The nfsd Subsystem has been started. Subsystem PID is 5505044.

0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 7077952.

The second part is on another server B.

Run smitty nfs to select Network File System (NFS)

NFS

Move cursor to desired item and press Enter.

Configure TCP/IP (If Not Already Configured)

Network File System (NFS)

Network Information Service (NIS)

Configure Secure NFS & NIS

Select Add a File System for Mounting on machine B

Network File System (NFS)

Move cursor to desired item and press Enter.

Configure NFS on This System

Add a Directory to Exports List

Change / Show Attributes of an Exported Directory

Remove a Directory from Exports List

Add a File System for Mounting

Change / Show Attributes of an NFS File System

Remove an NFS File System

Flush NFS V4 Translation Cache

Add NFSv4 File System FSID Options

Change / Show NFSv4 File System FSID Options

Reset NFSv4 File System FSID Options

Pathname of mount point fill in the mount points on the B machine

Pathname of remote directory fill in the path on machine A

Host where remote directory resides fill in the hostname of machine A (get it by running hostname on machine A)

Add a File System for Mounting

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]

* Pathname of mount point [/ tmp/test/]

* Pathname of remote directory [/ test]

* Host where remote directory resides [svr05427]

Mount type name []

* Security method [sys]

* Mount now, add entry to / etc/filesystems or both? Now

* / etc/filesystems entry will mount the directory no

On system restart.

Note: add each other's IP address and hostname to each other in the / etc/hosts at both ends of An and B

If prompted that not in hosts database needs to modify the / etc/hosts file on machine B to add the IP address and hostname of server A

COMMAND STATUS

Command: failed stdout: yes stderr: no

Before command completion, additional instructions may appear below.

Mount: 1831-009 svr05427 not in hosts database

Mount: 1831-008 giving up on:

Svr05427:/test

A route to the remote host is not available.

If you have the following error, you may not have the port required to open NFS on the network.

COMMAND STATUS

Command: failed stdout: yes stderr: no

Before command completion, additional instructions may appear below.

Nfsmnthelp: 1831-019svr05427: System call error number-1.

Mount: 1831-008 giving up on:

Svr05427:/test

System call error number-1.

After success, you can see the file authentication on the mount in smit mount on the B machine and access the contents of the shared file to confirm that it can be accessed.

L uninstall

Cancel on machine B you can use smit umount to specify the mount point on machine B above you can cancel the NFS on machine B.

Uninstall on machine A, and smit nfs selects Remove a Directory from Exports List input path

Network File System (NFS)

Move cursor to desired item and press Enter.

Configure NFS on This System

Add a Directory to Exports List

Change / Show Attributes of an Exported Directory

Remove a Directory from Exports List

Add a File System for Mounting

Change / Show Attributes of an NFS File System

Remove an NFS File System

Flush NFS V4 Translation Cache

Add NFSv4 File System FSID Options

Change / Show NFSv4 File System FSID Options

Reset NFSv4 File System FSID Options

L permission

Both of my machines have access to the root account, both of which are the same as the following

# ls-l

Total 8

-rw-r- 1 root system 543 Jul 24 06:10 temp.txt

L Appendix:

L windows can also access AIX NFS, and it is also recommended that window access aix file system SAMBA is better than NFS

For example: http://www.chinaunix.net/jh/9/503373.html

We often encounter some customers who need to back up the PC Server data on the tape drive of the 6000 minicomputer running the AIX operating system on a regular basis. We have done several such cases to Share:)

1. Download SFU

SFU is about 100m of Microsoft's file sharing software with UNIX system. You can simulate NFS Server on the Windows side or make Windows a NFS Client. He's free. A .net account is required for download (msn's is fine)

2. Install SFU software on the Windows side. Select as NFS Client. The installation time is long. After the installation, you can find a new workgroup called SFU (it seems to be the name) in the network neighbor.

Right-click above and select add to add the 6000 IP address. Open the NFS service on one side of 6000. After refreshing, you can see the server.

3. Identity authentication: set up the same account at both ends and edit the / etc/hosts file on 6000. Add the IP address of the server that needs to access the NFS path and the machine name. You can access the shared folder on the PC Server side. In the above, you can also carry out the management of rights. If you are interested in your own experiment.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report