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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mount Linux nfs share from AIX 2

Status
Not open for further replies.

dan

MIS
Oct 7, 1998
298
US
I have an nfs share running on a Lunux (RH7.2) server. I would like to mount the share from my AIX server (acting as a client), but can't find the steps to do this. Any assistance would be appreciated.

Dan
 
PS I am running AIX version 4.33.

Dan
 
Is this different then doing it from from one AIX machine to another? I would try that first.

1. smit nfs
2. nfs
3. add a fs for mounting

a. Set up the mount point on the AIX machine,
b. Set up the remote full path on the Linux Machine
c. Use your ip or dns name for HOST.

I've never tried this, but it seems like it would work???
 
One more thing, you will have to create the directory on the AIX machine, prior to setting up the NFS Mount. Once the mount is created, then mount the command.
 
hi,
smit creates local mount point, but the problem is that
when you give the mount command on AIX, it returns an error.
At Linux side, you have to modify some parameter in the share: in 7.2 I set "allow insecure...", while in 9.0 I had to "allow connection from port under 5xxx".
bye
 
If I understand you correctly, you are speaking of using the Linux machine as the client and the AIX as the server. I wanted to do it the other way around. (AIX client and Linux server). Did I miss something?

Dan
 
Hi,

On Linux box foo01:
- Edit /etc/exports, for example:
/tmp *(rw,insecure,all_squash)
- Do an exportfs -av

On AIX box:
- No smit needed, just check for a directory (or create one) you want to use as a mount point do, for example mkdir /mnt/foo1:
mount -o wsize=1024,rsize=1024 foo1:/tmp /mnt/foo1
I would add those wsize and rsize options to prevent NFS retries and errors which might lower the transfer rate to a uselesness.



laters
zaxxon
 
Thanks Zaxxon. That worked fine. I assume the "insecure" part allows it to work for any user.
Would /tmp IPaddress(rw,insecure,all_squash)
restrict the connection to a the IPaddress machine only even with the "insecure"?


Dan
 
Np :)
The insecure option allows clients with NFS implementations that don't use a reserved port for NFS.
It will only effects the IPaddress you have given, as the NFS share is only for this IPaddress.

If you type "man exports", you will get a lot of options. An exports file will look different on AIX than on Linux. Linux offers more options, at least compared with AIX 4.3.3.

laters
zaxxon
 
Instead of exporting the filesystem as insecure from the Linux machine you could try configuring the AIX machine
to use secure ports by running the command:
nfso -o nfs_use_reserve_ports=1 before mounting.
This is a runtime option so it needs to be set after
every reboot (for example in /etc/rc.nfs).
 
Maybe this is a typing error - on an AIX 5.2 i had to do
nfso -o nfs_use_reserved_ports=1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top