automount problem Linux / HP-UX

Posted on 2011-05-06
Last Modified: 2012-05-11
on LINUX sapsbxlnx server /etc/exports file

/sapmnt/BWS/global      sapsbx(rw) sapdev01(rw)
/sapmnt/BWS/profile     sapsbx(rw) sapdev01(rw)

on hpserver /etc/auto_master

/net -hosts -nosuid,soft
/- /etc/sap-map

on hpserver /etc/sap-map

/sapmnt/BWS/global  sapsbxlnx:/sapmnt/BWS/global
/sapmnt/BWS/profile sapsbxlnx:/sapmnt/BWS/profile

Ownership of these two filesystems is correct on sapsbxlnx (not root:root)

However, When I run automount on the hpserver to mount these filesystems, there are 2 problems

1) both the profile and the global directories are changed to root:root ownership on the hp server
2) I am unable to cd to either of them, or do a chmod or a chown.
I get a /bin/ksh: profile: permission denied message

Any ideas of what the problem may be?

Question by:sonriks
    LVL 12

    Expert Comment

    You have shared global and profile to two server, are you facing the same issue on both the boxes or only the HP-UX box, which you have mentioned?

    After mounting the filesystem on hpserver, could you please hsoe us listing of

    # ls -la /sapmnt/BWS/global  
    # ls -al /sapmnt/BWS/profile
    LVL 38

    Expert Comment

    By the way, please post the command output on HP-UX
    # mount | grep  BWS

    Could you try to manually mount first?
    On HP-UX as root
    # mkdir /nfstest-profile /nfstest-global
    # mount sapsbxlnx:/sapmnt/BWS/global  /nfstest-global
    # mount sapsbxlnx:/sapmnt/BWS/profile  /nfstest-profile

    Then check if you can cd into /nfstest-global and /nfstext-profile.
    If yes, then please post the output of the following command
    # mount |grep nfstest

    Usually in  /etc/sap-map on HP-UX, I would add some option like
    /sapmnt/BWS/global  -rw,nosuid    sapsbxlnx:/sapmnt/BWS/global
    /sapmnt/BWS/profile  -rw,nosuid    sapsbxlnx:/sapmnt/BWS/profile
    LVL 1

    Author Comment

    for upanwar
    hpserver:/sapmnt/BWS#: ls -lrta profile global

    profile unreadable
    total 0

    global unreadable
    total 0

    for wesly (output of mount|grep BWS)
    /nfs/sapmnt/BWS/global on /etc/sap-map ignore,direct,dev=120 on Fri May  6 15:12:58 2011
    /nfs/sapmnt/BWS/profile on /etc/sap-map ignore,direct,dev=127 on Fri May  6 15:13:06 2011

    unmounted then created new mount points and tried to mount manually
    mkdir /nfstest-profile /nfstest-global

    sapsbx:/#: mount sapsbxlnx:/sapmnt/BWS/global /nfstest-global
    nfs mount: get_fh: sapsbxlnx:: RPC: Program not registered
    nfs mount: get_fh: sapsbxlnx:: RPC: Program not registered
    nfs mount: retry: retrying(1) for: /nfstest-global after 5 seconds
    nfs mount: retry: giving up on: /nfstest-global

    LVL 38

    Accepted Solution

    > nfs mount: get_fh: sapsbxlnx:: RPC: Program not registered
    Restart nfs server/daemon on Linux server
    as root
    # /etc/init.d/nfs restart
    And post the command result:
    # rpcinfo -p

    Also check this URL:
    LVL 1

    Author Closing Comment

    You were right on target!!!  Restarting NFS did the trick. You saved me a lot of time. thanks

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now