Visit Our UNIX and Linux User Community

AIX NFS Server and NFS Client

Thread Tools Search this Thread
Operating Systems AIX AIX NFS Server and NFS Client
# 1  
Old 11-10-2015
AIX NFS Server and NFS Client

Hi 2 ALL,

try to run NFS Server in AIX 7.1 :

1. Step by step on NFS Server node
mkdir /tmp/test
chgrp staff /tmp/test
chmod 775 /tmp/test

-- create export directory (fs)
mknfsexp -d /tmp/test -t ro

exportfs -va
show mount -e
root@host1]:/# exportfs -av
exports: 1831-187 re-exported /tmp/test
mknfs -B

2. Step by step on NFS Client ( AIX 7.1 node)

[root@host2]:/# ping host1
PING host1: ( 56 data bytes
64 bytes from icmp_seq=0 ttl=255 time=0 ms
64 bytes from icmp_seq=1 ttl=255 time=0 ms
64 bytes from icmp_seq=2 ttl=255 time=0 ms
64 bytes from icmp_seq=3 ttl=255 time=0 ms

--- host1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms[/HTML][HTML][root@host2]:/# showmount -e host1
export list for host1:
/tmp/test (everyone)

[root@host2]:/# mount host1:tmp/test /test
nfsmnthelp: 1831-019 host1: System call error number -1.

mount: 1831-008 giving up on:
System call error number -1.

i try and with ip address but some error

where wrong ?

sorry for my mistake english

---------- Post updated at 05:44 PM ---------- Previous update was at 04:11 PM ----------

Ops, i fix my problem

add cross ip and hostname between nodes /etc/hosts

Last edited by Don Cragun; 11-11-2015 at 04:10 AM.. Reason: Change HTML and PHP tags to CODE tags.
# 2  
Old 11-10-2015
Thanks for the update.

Your fix was to be my recommendation.

a) AIX, to boot (quickly) needs to have two IP addresses in /etc/hosts loopback localhost
A.B.C.D hostname

b) for the AIX NFS server both server and client must agree on the name and IP address used by the client to connect (mount) on the server. There was a time that when the client used a shortname and the server a "longname" the mount would fail (I hope the shortname check is enough these days)

In short, when NFS mounts are taking a long time verify the IP address used to connect (especially from multi-homed clients). Back in telnet days I would just telnet in to the server and then use the who command to see what IP address/hostname the server reported. If it was an IP address I knew I needed to do something because the hostname - short or long - was not resolving. It might also be what I considered the alias - again, if not the name the client was announcing - the AIX server will refuse the mount.

Hope this helps your understanding!
# 3  
Old 11-10-2015
On AIX can you not enable search in /etc/resolv.conf (or equivalent), declaring search files first and then add any short names plus the IP's you need to get something to connect?

This approach works fine on Solaris, for example.
# 4  
Old 11-11-2015
###NFS Server AIX 7.1 (HOWTO)

host1 = [NFS Server]

host2 = [NFS Client]

1. ON NFS Server

--setting up /etc/hosts each node


echo " host2" >> /etc/hosts


echo " host1" >> /etc/hosts

-- create need a files/settings (node1 NFS Server)

mkdir /tmp/test

vi /etc/exports

-- add line :

/tmp/test -sec=sys:krb5p:krb5i:krb5:dh,rw,root=

-- re-export directory with commands :
exportfs -va
show mount -e

--Start the NFS subsystems

mknfs -B


-- optional start nfs
# lssrc -g nfs
# startsrc -s nfsd
# startsrc -g nfs
# startsrc -s mountd

2. ON NFS Client

mkdir /mnt/test

showmount -e

mount /mnt/test

Last edited by penchev; 11-11-2015 at 04:23 AM.. Reason: Change HTML and PHP tags to CODE tags, add ICODE tags.
# 5  
Old 11-11-2015
The two common ways for modfying search order is to use either the environment NSORDER or an entry in /etc/netsvc.conf.

e.g., I usually set

in /etc/netsvc.conf

the 4 specifies to only check for IP4 addresses resolution, a 6 would search only IP6, and no number searches IP4 then IP6 space.

If nothing is set, the default is equivalent to
hosts=bind,nis,local (or maybe it is nis,bind,local I have not even tried to use nis in 15 to 20 years - so I forget ;-| )

Having bind first - when a default is defined, but network is not working - can slow a reboot a long time. Setting the timeout and retry in either /etc/environment via environment variables, or in /etc/resolv.conf - can shorten this drastically.

While I have never used it myself - I expect that any bind/dns setting you can use on a POSIX system, such as Solaris - should work in the same way on AIX.

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 NFS client cannot mount a share from a Windows server

I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my /etc/vfstab, then I can mount, but when I create a file by root:root, the file owner changes to... (1 Reply)
Discussion started by: Hiroshi
1 Replies

2. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

3. AIX

AIX NFS Client Logging

My AIX NFS client failed to mount a Windows server NFS service today. Is NFS client logging enabled by default on AIX? If not, is there a way to enable NFS client logging on AIX6.1. Thanks. (0 Replies)
Discussion started by: famasutika
0 Replies

4. Solaris

Can't access NFS Share on Solaris Server from a Linux Client

Hi, I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server. On the NFS Server, in /etc/dfs/, I added following line to dfstab file. & then ran the following On the client machine, while running the mount command, I am... (0 Replies)
Discussion started by: SunilB2011
0 Replies

5. Red Hat

Memory problems in NFS client server

Hi all, i have some doubts in a situation that i fail to get an answer in Google. I have a solaris 10 nfs server and 5 centos 6.0 nfs clients. The problem/situation is that in the clients the free memory is "disappearing" along the time (passing to used)..and it gets free if i umount the... (5 Replies)
Discussion started by: blast
5 Replies

6. AIX

can not mount from aix client to linux nfs server

Hi, I am trying to mount a nfs folder from AIX client to Linux NFS Server, but I got the following error: # mount /to_be_del mount: 1831-010 server not responding: RPC: 1832-018 Port mapper failure - RPC: 1832-008 Timed out mount: retrying... (1 Reply)
Discussion started by: victorcheung
1 Replies

7. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

8. UNIX for Advanced & Expert Users

Determining IP address of NFS server on client

Hi. We use an Isilon cluster system to provide our NAS. The Isilon uses a round-robin DNS setup to spread mount requests across the many nodes of the cluster. When a node needs work, the filesystems that are mounted to it need to be moved to other nodes prior to shutting the node down. I... (2 Replies)
Discussion started by: rascalrick
2 Replies

9. Linux

NFS Server FC7 Solaris client problems!

Hi, my problem is that I am not able to grand the nfs directory on a Fedora 7 server to a standard solaris client. I always got the messages no permission. Important: No change on the client (Solaris) is possible! So I am not able to change the NFS Version on the client side to force the... (3 Replies)
Discussion started by: joerg
3 Replies

Featured Tech Videos