On Fri, 12 Nov 2004, Leonard Burns IV wrote:

Lets see if I can explain my situation correctly, I have my AS/400, I have a Linux box, both on an internal IP setup, both can ping each other, both can telnet back and forth. I have successfully mounted an SMBFS on the linux box from the as/400, so I can access my as/400 files through the linux box. But I need to do the other way around, I need to mount a linux nfs to a path on the as/400, i've tried ADDMFS and MOUNT, all of which return a "Cannot find address for specified system name", the command I'm using is:

MOUNT TYPE(*NFS) MFS('192.168.1.156:/as400') MNTOVRDIR('/LINUX') CODEPAGE(*ASCII *ASCII)

I assume that the IP address of the linux box is 192.168.1.156, is that correct? It might be simpler to add this IP address and the linux box's hostname either to your local DNS server or to your HOSTS file on the iSeries. So if the linux box's hostname is linuxiscool then your mount command would be:


MOUNT TYPE(*NFS) MFS('linuxiscool:/as400') MNTOVRDIR('/linux')

That may solve the problem of "Cannot find address for specified system name."

Your problem may be that NFS services haven't started. Verify the appropriate services are running on the iSeries. If not, STRNFSSVR SERVER(*ALL) is your friend. On the linux box, do:

rpcinfo -p local

to find out what NFS services are running. Verify that you have at least these lines:

   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs

Almost certainly (and by that I mean more 99% certainty) you should also have these:

    100021    1   udp   1027  nlockmgr
    100021    3   udp   1027  nlockmgr
    100021    4   udp   1027  nlockmgr
    100005    1   udp    973  mountd
    100005    1   tcp    976  mountd
    100005    2   udp    973  mountd
    100005    2   tcp    976  mountd
    100005    3   udp    973  mountd
    100005    3   tcp    976  mountd
    100024    1   udp    981  status
    100024    1   tcp    984  status

If not, NFS probably isn't running on your linux machine. Your linux distribution has a simple way of starting NFS services. On slackware it is /etc/rc.d/rc.nfsd, on others it may be different. If you don't know you can always run the commands by hand:

/sbin/rpc.portmap
/usr/sbin/exportfs -r
/usr/sbin/rpc.nfsd 8
/usr/sbin/rpc.mountd
/usr/sbin/rpc.lockd
/usr/sbin/rpc.statd

If you have trouble with any of these you may need to load a kernel module for NFS. If so, try this:

/sbin/modprobe nfsd

Finally, check to be sure that you have actually exported what you want. Exported NFS shares are listed in /etc/exports. Your file should look something like this:

/as400           *.mydomain.com(rw)

For more information, see 'man exports' on linux.

James Rich

It's not the software that's free; it's you.
        - billyskank on Groklaw

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.