LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   how to mount a nfs mount from linux client to AIX nfs server (https://www.linuxquestions.org/questions/aix-43/how-to-mount-a-nfs-mount-from-linux-client-to-aix-nfs-server-350669/)

dennyqian 08-06-2005 05:16 PM

how to mount a nfs mount from linux client to AIX nfs server
 
Hi Everyone,
I've export a directory from the AIX NFS server. It don't have any problem being NFS mounted by other AIX system. While I tried to use one linux doing the same NFS mount, it returned the " permittion denied" error.

Is there anything special I should do on this linux client before I do the "NFS mount" ?


Appreciate for any suggestion
Regards
Denny

dennyqian 08-07-2005 04:46 PM

Can someone help me ?
 
Can someone help me ? Is there any NFS log I can check ?

Mark Taylor 08-08-2005 05:52 AM

nfso -p -o nfs_use_reserved_ports=1

Rgds
Mark Taylor

zorba4 08-10-2005 07:42 AM

by the way, look at your network installation.
"Permission denied" usually means "I don't know this guy".
1) go to the AIX system, and type "ping -c 3 my_linux_client".
2) On the AIX server system, "cat /etc/exports" in order to verify that your fileystem is correctly exported.
3) usually, on Linux systems, "mount aix_server:/shared_filesystem /mnt" works without problem.

MaliCure 09-02-2005 05:26 AM

Is the nfso command mentioned above not only applicable to an AIX NFS client?

I have the same problems, by the way.

The exports on the AIX server are listed without any options, only -root=myclient
where myclient is an antry in the hosts file with the proper IP address.

I use RedHat ES3, trying to connect to an NFS server on an AIX 4.3 cluster.

This is the dump of nfso -a:

portcheck= 0
udpchecksum= 1
nfs_socketsize= 60000
nfs_tcp_socketsize= 60000
nfs_setattr_error= 0
nfs_gather_threshold= 4096
nfs_repeat_messages= 0
nfs_udp_duplicate_cache_size= 5000
nfs_tcp_duplicate_cache_size= 0
nfs_server_base_priority= 0
nfs_dynamic_retrans= 1
nfs_iopace_pages= 0
nfs_max_connections= 0
nfs_max_threads= 8
nfs_use_reserved_ports= 0
nfs_device_specific_bufs= 1
nfs_server_clread= 1
nfs_rfc1323= 0
nfs_max_write_size= 0
nfs_max_read_size= 0
nfs_allow_all_signals= 0
nfs_v2_pdts= 1
nfs_v3_pdts= 1
nfs_v2_vm_bufs= 1000
nfs_v3_vm_bufs= 1000


I tried mostly with the client defaults, and also with option "udp"

The problem is that I cannot use "trial and error" since it seems that in some occasions the portmapper dies on the AIX server.

louis_m_c 09-28-2005 04:58 PM

I have the same problem here and I found out why I get this error:
on my server my uid is 500 and on my client 501 so they dont match which cause the access denied.

baktor 10-18-2005 06:20 PM

well, I'm a bit confused what your exact issue is, but here is how I mount on my Redhat server an AIX mount:

10.28.1.61:/u37/somedir /mnt/somedir nfs rsize=8192,wsize=8192,intr,posix 0 0

and on AIX, that export looks like:
/u33/cold_backups -root=hqs6000a:portal2,access=hqs6000a:portal2

portal2 being the Redhat box. Key is making SURE hostname is in /etc/hosts on the AIX box and that your UID/GID matches up between the two boxes. I hope this makes sense.

hshbo 09-22-2006 03:19 AM

Hi,

I configured on NFS at Linux site (client of AIX) as follow:

Directory: /mnt/testdatalinuxclient
Host: <ip of aix server>
Permision is Read/Write and chmod -R 777 /mnt/testdatalinuxclient

At aix server, I use command:
mount -o proto=udp <ip of Linux client>:/mnt/testdatalinuxclient /mnt/testdataaixserver

Mount failed. Error message:

mount: 1831-008 giving up on:
<ip of linuxclient>:/mnt/testdatalinuxclient
vmount: Operation not permitted.

Please help me fix this. Thanks so much.

hshbo 09-22-2006 03:34 AM

It works well. Thanks Mark Taylor.

thuyentv 03-30-2016 10:45 PM

how to mount a nfs mount from linux client to AIX nfs server
 
Hi Support Team,
on AIX we use NFS Share. But which mount from linux client to AIX Server but see error:
"nfs.mount: remote I/O error".
we try use "mount -o -vers=3" and mount success. But I need use mount vers=4. because linux client use default version 4 get file.
how to resolve it ?
Many thanks support.

Michael AM 03-31-2016 05:06 AM

The key here is the NFS domain.

From memory linux has a "default" nfs4domain - that comes from the FQDN. host.dom1.dom2 - so the NFS4 domain is: "dom1.dom2".

On AIX (server) you will need to run the commands:

# chnfsdom "dom1.dom2"
# nfs.clean # to stop all NFS activity, do not use stopsrc -g nfs
# rc.nfs # even more important, do not use startsrc -g nfs !!!

Use either chnfsexp or mknfsexp to add NFS4 "knowledge". I have a primer (that needs updating to work with Linux) at: http://www.rootvg.net/content/view/476/88/

Michael

thuyentv 04-08-2016 04:13 AM

Hi Michael,
we go the follow as you posted. But we do not setup nfs domain on NFS Client (Redhat). How to setup NFS domain on Redhat.
also we sent for you command output on nfs client:
# chnfsdom nfsdomain
bash: chnfsdom: command not found

Could you please resolve it help me.
Many thanks support.

Michael AM 04-08-2016 05:18 AM

chnfsdom is the AIX command to set the nfsv4 domain name.

I do not have a redhat to verify (atm), but think of redhat booting ASIF it was configured to run

Quote:

chnfsdom `hostname -d`
In otherwords, (and I shall test soon), on AIX run

Quote:

chnfsdom `ssh xyz@redhat hostname -d`
nfs.clean
rc.nfs
Hopefully that will have your AIX NFS (server/client) speaking the same domain as the redhat/suse, etc.

Note: I am working on LoP (Linux on Power), so I shall be looking into this!

If this does not work, on your linux client just add nfsvers=3 to your linux mount options.

thuyentv 04-11-2016 11:30 PM

Hi Michael,
Case is to resolve.
Many thanks support.


All times are GMT -5. The time now is 08:25 PM.