AIX

 View Only
  • 1.  AIX 7.1 nfs client setup issue

    Posted Thu December 14, 2023 04:46 PM

    Hi I set up the nfs clients to multiply servers, all are working except this one. 

    lssrc -g nfs
    Subsystem         Group            PID          Status
     biod             nfs              6160404      active
     nfsd             nfs                           inoperative
     rpc.statd        nfs                           inoperative
     rpc.lockd        nfs                           inoperative
     rpc.mountd       nfs                           inoperative
     nfsrgyd          nfs                           inoperative
     gssd             nfs                           inoperative

    I try to do   startsrc -g nfs

    Multiple instances are not supported.
    0513-059 The nfsd Subsystem has been started. Subsystem PID is 6553784.
    0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 6553786.
    0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 6684782.
    0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 6684784.
    0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 6684786.
    0513-059 The gssd Subsystem has been started. Subsystem PID is 6684788

    and all still on the inoperative

     nfsd             nfs                           inoperative
     rpc.statd        nfs                           inoperative
     rpc.lockd        nfs                           inoperative
     rpc.mountd       nfs                           inoperative
     nfsrgyd          nfs                           inoperative
     gssd             nfs                           inoperative

    when I test the binary, 

    ls -ld /usr/sbin/nfsd
    -r-xr-xr-x    1 root     system        13542 Oct 20 2017  /usr/sbin/nfsd
    [2023/12/14 22:39:35 ] [root@FIWQHSIVMP022V:/root$
    /usr/sbin/nfsd
    nfsd: No such file or directory

    ls -ld /usr/sbin/rpc.lockd
    -r-xr-xr-x    1 root     system         7356 Oct 20 2017  /usr/sbin/rpc.lockd
    [2023/12/14 22:40:50 ] [root@FIWQHSIVMP022V:/root$
    /usr/sbin/rpc.lockd
    rpc.lockd: No such file or directory

    The binary seems not know in the OS.  I have no idea what is the issue for that.

    lslpp -l |grep nfs
      bos.net.nfs.client        7.1.5.15  COMMITTED  Network File System Client
      bos.net.nfs.client        7.1.5.15  COMMITTED  Network File System Client

    Any suggestions?



    ------------------------------
    wang chen
    ------------------------------


  • 2.  RE: AIX 7.1 nfs client setup issue

    IBM Champion
    Posted Fri December 15, 2023 04:18 AM

    /usr/sbin/rpc.lockd is part of bos.net.nfs.client, if the lpp is installed but the file is missing, you have a corrupted installation.

    Would this be the same system where you had mkcd fail due do a missing /usr/bin/sed ?


    Any relation to the iSCSI storage you've mentioned before ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 3.  RE: AIX 7.1 nfs client setup issue

    Posted Tue January 02, 2024 04:58 PM

    it is not the same system I talked about. 

    the actually files are there

    ls -ld /usr/sbin/rpc.lockd
    -r-xr-xr-x    1 root     system         7356 Oct 20 2017  /usr/sbin/rpc.lockd

    file /usr/sbin/rpc.lockd
    /usr/sbin/rpc.lockd: executable (RISC System/6000) or object module

    # file /usr/sbin/rpc.lockd
    /usr/sbin/rpc.lockd: executable (RISC System/6000) or object module

    it getting the error if run it

    /usr/sbin/rpc.lockd
    ksh: syntax error: `(' unexpected

    after I play around



    ------------------------------
    wang chen
    ------------------------------



  • 4.  RE: AIX 7.1 nfs client setup issue

    Posted Wed January 03, 2024 01:15 AM

    Can you verify all the files of the fileset, bos.net.nfs.client on your system using lppchk?

    You can use below commands

    lppchk -c bos.net.nfs.client
    
    lppchk -f bos.net.nfs.client


    ------------------------------
    Saikrishna Akkela Software Engineer
    ------------------------------



  • 5.  RE: AIX 7.1 nfs client setup issue

    IBM Champion
    Posted Fri December 15, 2023 05:08 AM

    Wang,

    do I understand your output correctly? You have the binary on the system and it looks good, but you can't execute the command:

    ls -ld /usr/sbin/rpc.lockd
    -r-xr-xr-x    1 root     system         7356 Oct 20 2017  /usr/sbin/rpc.lockd
    [2023/12/14 22:40:50 ] [root@FIWQHSIVMP022V:/root$
    /usr/sbin/rpc.lockd
    rpc.lockd: No such file or directory

    I know such behaviour if some security tools are installed preventing execution of "non-secure binaries". You can search through logs if they're configured and you usually see there some error message.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 6.  RE: AIX 7.1 nfs client setup issue

    Posted Fri December 15, 2023 06:49 AM

    Can you verify if an nfsd process is already running in your system?

    ps -eaf | grep nfsd

    If an instance of nfsd is already running, you will face this kind of error.



    ------------------------------
    Saikrishna Akkela Software Engineer
    ------------------------------