Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX NFS mount on RedHat 3

Status
Not open for further replies.

AIXtexas

Technical User
Feb 5, 2002
80
0
0
US
Hello, I’m an AIX admin and I understand how to create and mount NFS’s between AIX servers. However, I’ve been tasked with trying to mount an AIX FS on a RedHat server and I simply cannot make it work. Here’s a list of what I’ve done:

AIX Server: (hostname – ibmtest)
1. Added the FS (/usr7) to be mounted on the Linux server to /etc/exports and ran the exportfs –a command.

Linux server:
1. Verified that the necessary NFS daemons are running:

# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 649 rquotad
100011 2 udp 649 rquotad
100011 1 tcp 652 rquotad
100011 2 tcp 652 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32779 nlockmgr
100021 3 udp 32779 nlockmgr
100021 4 udp 32779 nlockmgr
100005 1 udp 32780 mountd
100005 1 tcp 32792 mountd
100005 2 udp 32780 mountd
100005 2 tcp 32792 mountd
100005 3 udp 32780 mountd
100005 3 tcp 32792 mountd

2. Created the mount point in /mnt (mkdir aixnfs)

3. Edited the /etc/fstab file and added my FS to be mounted

I then execute the below command:

# mount ibmtest:/usr7 /mnt/aixnfs

And get this error message:

mount: RPC: Timed out

Any ideas?

Thanks,
Shane
 
You should be running the NFS daemons on the AIX side, not the Linux one.

Annihilannic.
 
Here's what's running on AIX:

ibmtest:/home/root (5241)#lssrc -a
Subsystem Group PID Status
syslogd ras 8858 active
sendmail mail 4694 active
portmap portmap 6736 active
inetd tcpip 14774 active
snmpd tcpip 11390 active
hostmibd tcpip 7496 active
biod nfs 12420 active
nfsd nfs 4976 active
rpc.mountd nfs 7814 active
rpc.statd nfs 9810 active
rpc.lockd nfs 5490 active
qdaemon spooler 15764 active
writesrv spooler 12144 active
sshd ssh 14198 active
ctrmc rsct 16514 active
ctcas rsct 17098 active
IBM.CSMAgentRM rsct_rm 18850 active
IBM.ERRM rsct_rm 18598 active
IBM.ServiceRM rsct_rm 9316 active
IBM.AuditRM rsct_rm 18074 active
 
Does showmount -e ibmtest return anything?

Sorry, if I had an AIX box I'd test for you, but I don't.

Annihilannic.
 
ibmtest:/home/root (5242)#showmount -e ibmtest
export list for ibmtest:
/usr7 (everyone)


/usr7 is the disk I'm trying to mount on the Linux server.

Shane
 

Might be helpful to see your fstab entry for the file system. Does it specify type "nfs"?

 
# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/raw /raw ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/sda1 /mnt/usbhd msdos noauto,user,owner,rw 0 0
ibmtest:/usr7 /mnt/cigna nfs r,soft,intr 0 0
 
Inconsistency between:

I then execute the below command:

# mount ibmtest:/usr7 /mnt/[Red]aixnfs[/Red]
and
ibmtest:/usr7 /mnt/[Red]cigna[/Red] nfs [purple]r[/purple],soft,intr 0 0

Also, I'm not sure what the "r," option is; too long away from NFS stuff.

That help?
 

Actually, if the fstab entry is correct, you should be able to just type:

mount /mnt/aixnfs

 
On the Linux server, do you have portmap, rpc.mountd & rpc.statd defined in /etc/hosts.allow?
Ex. portmap: ibmtest
 
Here is what's in hosts.allow:

#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
portmap:ibmtest
lockd:ibmtest
mountd:ibmtest
rquoted:ibmtest
statd:ibmtest
 
I’ve been researching this. Is this possibly an “iptables” issue?

Shane
 
Possible, but unlikely unless you have actually defined any iptables rules on your systems?

Annihilannic.
 
Here's the output:

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (1 references)
target prot opt source destination
ACCEPT udp -- haxcrd05.network.dom anywhere udp spt:domain dpts:1025:65535
LOG tcp -- anywhere anywhere tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix `packet with FIN+SYN rec'd: '
DROP tcp -- anywhere anywhere tcp flags:FIN,SYN/FIN,SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:https flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:maggd
ACCEPT tcp -- anywhere anywhere tcp dpt:maggds
ACCEPT udp -- anywhere anywhere udp dpt:snmp
ACCEPT udp -- anywhere anywhere udp dpt:ntp
ACCEPT udp -- anywhere anywhere udp dpt:144
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:postgres flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:10000 flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
 
Just so you know, this turned out to be a iptables issue. We entered the correct attributes and it now works, thanks.

Shane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top