AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Mounting partition from AIX 6.1 onto Solaris 10

    Posted Thu March 17, 2011 04:38 AM

    Originally posted by: victorkwan


    Hi all,

    I'm new to AIX. Hope i can get some help or direction to resolve this problem.
    Has yet to get much from google. :(

    I am trying to export a partition through NFS.
    I am able to mount the partition from another LPAR on AIX 6.1 but unable to mount the same from either Solaris 10 or Redhat 4.
    I have also tried to mount a partition exported from Solaris or Redhat to AIX and unable to mount the partition too.

    On the AIX 6.1 LPAR, i have the exports entry allowing NFS 2 / 3 / 4.
    
    root@devsvr:> more /etc/exports /mypartition -vers=2:3:4 -sec=sys:dh,ro=client1:client2,root=client1:client2
    


    NFS processes on AIX LPAR

    
    root@devsvr:> lssrc -a | grep -i nfs biod             nfs              3670138      active nfsd             nfs              3539068      active rpc.mountd       nfs              4194436      active rpc.statd        nfs              4522182      active rpc.lockd        nfs              4653240      active nfsrgyd          nfs                           inoperative gssd             nfs                           inoperative
    


    Entry is added to /etc/hosts on AIX LPAR

    
    root@devsvr:/opt/psa/rel> grep client1 /etc/hosts 10.55.9.192     client1
    


    On the Solaris / Redhat box,
    
    root@client1:/>#uname -a SunOS client1 5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V240   root@client1:/>#ps -aef | grep nfs daemon 28123     1   0   Jun 29 ?           0:00 /usr/lib/nfs/nfs4cbd daemon 28125     1   0   Jun 29 ?           0:05 /usr/lib/nfs/nfsmapid root 28733  2951   0 16:30:11 pts/32      0:00 grep nfs daemon 28137     1   0   Jun 29 ?           0:00 /usr/lib/nfs/lockd daemon 28126     1   0   Jun 29 ?           0:00 /usr/lib/nfs/statd
    


    The following command just hang there.
    
    mount -F nfs -o vers=3 devsvr:/mypartition /mnt
    


    showmount on solaris box shows RPC time out

    
    root@client1:/>#showmount -a 10.106.50.14 showmount: 10.106.50.14: RPC: Rpcbind failure - RPC: Timed out
    


    Entry is already in /etc/hosts
    
    root@client1:/>#getent hosts devsvr 10.106.50.14    devsvr
    


    TIA for kind souls out there.

    Regards,
    Victor
    #AIX-Forum


  • 2.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Thu March 24, 2011 06:32 AM

    Originally posted by: victorkwan


    no gurus able to help me?
    #AIX-Forum


  • 3.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Thu March 24, 2011 10:08 AM

    Originally posted by: SystemAdmin


    Wow, you gave a FREE internet forum just less than two hours before it let you down. Way to be patient. Also, everyone here is not a "guru" on AIX and they aren't all just waiting around to answer random internet questions from lazy admins.

    So far you have no proof that the two systems talk at all. Its possible at this point that the issue lays outside your hosts.

    Go to http://www.redbooks.ibm.com, search for NFS and get some more info.
    #AIX-Forum


  • 4.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Thu March 24, 2011 09:51 PM

    Originally posted by: victorkwan


    @kruzelc77:
    Thanks for the feedback. If you would notice, I waited one week, not 2 hours.
    #AIX-Forum


  • 5.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Thu March 24, 2011 10:15 PM

    Originally posted by: victorkwan


    I'm getting "Disallowed content detected" error hence unable to post more details until i figure this error out.
    #AIX-Forum


  • 6.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Thu March 24, 2011 10:19 PM
      |   view attached

    Originally posted by: victorkwan


    I try to attach the details.

    I'm only like 3 months into AIX. Would anyone be kind enough to advice? Thanks.
    #AIX-Forum

    Attachment(s)



  • 7.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Mon March 28, 2011 05:53 AM

    Originally posted by: flodstrom


    Well, it can be a number of things, but of what I see your local network looks a bit suspicious. Remember that NFS can be very sensitive to inconsistencies in network settings and name resolution.

    I guess you don't have a DNS or some other simpler central name resolution like NIS? If you don't have that then I would advice you to go through and verify the network settings and name resolution on both clients and servers.

    One thing about AIX! In case you are new to it and not familiar with the way of AIX then keep the following things in mind. Be carefull with to much manual editing of settings and other various OS configurations. You can actually put various things into unknown and uncertain states if not done correctly. Always do this through smitty if you are unsure! NFS configuration included!

    As for NFS. I would skip both version 2 and 4 to start with. Focus to get version 3 to work first.

    On the AIX server what do you get from the following two commands (was devsvr the hostname? If not replace devsvr with the correct hostname)?

    showmount -e localhost
    showmount -e devsvr

    On the clients run the same command to probe the server.

    showmount -e devsrv
    #AIX-Forum


  • 8.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Mon March 28, 2011 06:52 AM

    Originally posted by: victorkwan


    Thanks for the recommendations flodstrom.

    I have put back the original names of the servers.

    gw2 is the NFS client (SUN)
    app3 is the NFS server (AIX).
    app2 is another NFS client (AIX).

    app2 is currently able to mount the shared directories.

    name resolution is using the following prirority "files dns"

    
    root@gw2:/>#grep hosts /etc/nsswitch.conf | grep -v 
    "#" hosts:      files dns
    


    I have reconfigure /opt to be shared only by NFS version 3 using smitty.

    
    root@dev3:/> exportfs /opt/data/rw -sec=sys:krb5p:krb5i:krb5:dh,rw,root=dev2 /opt/rel     -sec=sys:krb5p:krb5i:krb5:dh,ro=app2,root=dev2 /opt             -vers=3,sec=sys:dh,ro
    


    
    root@gw2:/>#mount -F nfs -o vers=3  dev3:/opt /mnt ^C
    


    The commands output as follows

    
    root@app3:/> showmount -e localhost export list 
    
    for localhost: /opt/data/rw (everyone) /opt/rel     (everyone) /opt         (everyone)
    


    
    root@app3:/> showmount -e app3 export list 
    
    for app3: /opt/data/rw (everyone) /opt/rel     (everyone) /opt         (everyone)
    


    no respond from the SUN client

    
    root@gw2:/>#showmount -e app3 ^C
    


    
    root@gw2:/>#showmount -e 10.106.50.14 ^C
    


    i have expanded to using another SUN server to try to determine the issue. In below SUN servers, i have problem as well. I will try to ask the pre-sale consultant to help, if he's willing. :)

    
    root@zion:/>mount -F nfs -o vers=3 10.106.50.14:/opt /mnt nfs mount: 10.106.50.14:/opt: Unknown error   root@zion:/>uname -sr SunOS 5.9   myname@zion [~] ~$showmount -e 10.106.50.14 export list 
    
    for 10.106.50.14: /opt/data/rw (everyone) /opt/rel     (everyone) /opt         (everyone)
    

    #AIX-Forum


  • 9.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Mon March 28, 2011 07:52 AM

    Originally posted by: flodstrom


    What are the hostnames dev2 and dev3? Are they the same as app2 and app3? Again be careful with inconsistencies in name resolution.

    Does the name resolution work both ways?

    On the Solaris client:

    ping -s app3

    On the AIX server:

    ping gw2

    And to be sure all is OK repeat using the IP addresses.
    #AIX-Forum


  • 10.  Re: Mounting partition from AIX 6.1 onto Solaris 10

    Posted Mon March 28, 2011 11:35 PM

    Originally posted by: victorkwan


    Thanks flodstrom. You have been patient with me.

    I have found 2 problems.

    1) i have missed out that firewall rule only allowed some basic traffic like SSH / HTTP(S) / MAIL, etc only. NFS has not been allowed. sorry for this one.

    2) It is silly of me for not noticing that AIX NFS implementation requires the list of client to be explicitly allowed to access the NFS on the AIX server. The IBM pre-sales consultant pointed this out. i learned something new now.

    I have rectified the firewall rule and now i am able to mount the shared partition from AIX server. Thanks.

    
    gw2:
    "/"#df -k | grep 10.106 10.106.50.14:/opt     393216  288060  105156    74%    /mnt
    


    regards,
    Victor
    #AIX-Forum