AIX Open Source

 View Only
Expand all | Collapse all

Getting error which running lppchk -c

  • 1.  Getting error which running lppchk -c

    Posted Fri February 26, 2021 03:22 PM
    Hi,

    I am getting the below error when I am running this command lppchk -c. Do I need to restore/reinstall the missing filesets or just ignore them. Please suggest.


     lppchk -c
    lppchk: 0504-206  File /opt/diagnostics/templates/utility-skeleton.pl could not be located.
    lppchk: 0504-206  File /opt/diagnostics/templates/probe-skeleton.pl could not be located.
    lppchk: 0504-206  File /opt/diagnostics/templates could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatEL-Client could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatEL-AS could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatEL-Server could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatEL-ES could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/chroot.SLES could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/chroot.SLES.ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-WS.ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-AS could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-ES could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatAS could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatEL-WS could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-Client could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-Server could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-Server.ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-WS could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.SLES could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatAS.ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-ES.ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.SLES could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/pre.RedHatEL-AS3-ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatEL-AS.ppc64 could not be located.
    lppchk: 0504-206  File /opt/csm/install/templatescripts/post.RedHatAS could not be located.
    lppchk: 0504-206  File /admin/tmp could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.ILS could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.bind_cmds could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.console could not be located.
    lppchk: 0504-206  File /etc/wlm/template could not be located.
    lppchk: 0504-206  File /etc/wlm/template/classes could not be located.
    lppchk: 0504-206  File /etc/wlm/template/limits could not be located.
    lppchk: 0504-206  File /etc/wlm/template/shares could not be located.
    lppchk: 0504-206  File /etc/wlm/template/rules could not be located.
    lppchk: 0504-206  File /etc/wlm/template/description could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.date could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.edit could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.iconv could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.install could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.libc could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.libcfg could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.libcur could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.libpthreads could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.loc could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.methods could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.misc_cmds could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.net could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.odm could not be located.
    lppchk: 0504-206  File /var/adm/sw/tmp/bos.rte.mlslib could not be located.
    lppchk: 0504-206  File /var/perf/tmp could not be located.
    lppchk: 0504-206  File /etc/security/aixpert/tmp could not be located.
    lppchk: 0504-206  File /etc/project/alter/template/alias could not be located.
    lppchk: 0504-206  File /etc/project/alter/template/projdef could not be located.
    lppchk: 0504-206  File /etc/project/alter/template could not be located.
    lppchk: 0504-206  File /etc/project/alter/template/admin could not be located.
    lppchk: 0504-206  File /var/adm/ras/artex/tmp could not be located.
    lppchk: 0504-206  File /var/suma/tmp could not be located.
    lppchk: 0504-206  File /var/opt/csm/tmp could not be located.
    lppchk: 0504-206  File /etc/sudoers.dist could not be located.

    ------------------------------
    NITIN BHATT
    ------------------------------


  • 2.  RE: Getting error which running lppchk -c

    Posted Mon March 01, 2021 01:26 AM
    I think it is better to post this question in AIX forum than AIX open source. 
    Between how did this problem start ? Did you install/remove something?

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Getting error which running lppchk -c

    Posted Mon March 01, 2021 01:51 AM
    Some commands to get further details:

    instfix -i | grep -i sp | sort
    lppchk -vm3
    rpm -Va
    /usr/sbin/updtvpkg
    (see https://www.ibm.com/support/pages/understanding-aix-virtual-rpm-package-rpmrte for the last one)



    ------------------------------
    Achim Haag
    ------------------------------



  • 4.  RE: Getting error which running lppchk -c

    Posted Mon March 01, 2021 08:34 AM
    root@psupapp1(/) > /usr/sbin/updtvpkg
    Please wait...Unable to open temp file.

    root@psupapp1(/) > rpm -qa | grep AIX-rpm
    AIX-rpm-6.1.6.0-2
    root@psupapp1(/) > updtvpkg
    Please wait...Unable to open temp file.

    ------------------------------
    NITIN BHATT
    ------------------------------



  • 5.  RE: Getting error which running lppchk -c

    Posted Mon March 01, 2021 09:22 AM
    So I think, there's something wrong with your AIX system at all ?!?

    ------------------------------
    Achim Haag
    ------------------------------



  • 6.  RE: Getting error which running lppchk -c

    Posted Mon March 01, 2021 10:07 PM
    Hi Nitin,

    could you please run the updtvpkg with debug which can provide the details on exactly which command is failing from which we might know the other issue.

    sh -x /usr/sbin/updtvpkg


    ------------------------------
    SANGAMESH
    ------------------------------



  • 7.  RE: Getting error which running lppchk -c

    Posted Fri March 05, 2021 12:35 PM
    Hello,

    This is the out I got after running this command (sh -x /usr/sbin/updtvpkg).

    root@psupapp1(/) > sh -x /usr/sbin/updtvpkg
    + [[ en_US = en_US ]]
    + export LANG=C
    + + /usr/bin/rpm -q --queryformat %{RELEASE} AIX-rpm
    + 2> /dev/null
    current_release=2
    + [[ -z 2 ]]
    + (( release = 2 + 1 ))
    + + /usr/bin/dspmsg -s 3 cmdinstl_e.cat 49 Please wait...\n
    waitmsg=Please wait...
    + echo Please wait...\c
    Please wait...+ + /usr/bin/lslpp -qLc bos.rte
    + /usr/bin/cut -d: -f3
    version=6.1.9.200
    + + /usr/bin/rpm --eval %{_rpmdir}
    rpmdir=/opt/freeware/src/packages/RPMS
    + + /usr/bin/rpm --eval %{_srcrpmdir}
    srcrpmdir=/opt/freeware/src/packages/SRPMS
    + update_virtual_package 3
    + 1> /tmp/mkvirtpkg.15073460
    + [[ -s /tmp/mkvirtpkg.15073460 ]]
    + /usr/bin/rpm -ba /tmp/mkvirtpkg.15073460
    + 1> /tmp/mkvirtpkg.15073460.out 2>& 1
    + [[ 1 -eq 0 ]]
    + /usr/bin/cat /tmp/mkvirtpkg.15073460.out
    Unable to open temp file.
    + echo

    + /usr/bin/rm -rf /tmp/mkvirtpkg.15073460 /tmp/mkvirtpkg.15073460.out
    + /usr/bin/rpm -q AIX-rpm
    + 1> /dev/null
    + [[ -z ]]
    + /usr/bin/rm -f /opt/freeware/src/packages/RPMS//AIX-rpm-6.1.9.200-3...rpm /opt/freeware/src/packages/SRPMS/AIX-rpm-6.1.9.200-3.src.rpm
    + exit 0
    root@psupapp1(/) >

    ------------------------------
    NITIN BHATT
    ------------------------------



  • 8.  RE: Getting error which running lppchk -c

    Posted Mon March 08, 2021 02:23 AM
    As /usr/bin/rpm -ba /tmp/mkvirtpkg.15073460 exits with error 1, it may not create the output file
    /tmp/mkvirtpkg.15073460.out (you may check that by ls), so the following cat cannot find the file.

    What makes me wonder is cat's message "Unable to open temp file" as cat doesn't know this file is a temporary file,
    so the message may result from cat getting an error accessing your /tmp directory.

    The /tmp directory should look like this, especially the "t"-Flag must be set:
    >ls -ld /tmp
    drwxrwxrwt 55 bin bin 40960 Mar 8 08:15 /tmp
    and there should be enough freespace on it (df -m /tmp)

    Together with your former lppchk messages (did you check the existence of the missed files and their directories ?), there may be something wrong with your rootvg...

    Maybe a maintenance boot for fsck the rootvg's filesystem may show further details ?

    ------------------------------
    Achim Haag
    ------------------------------



  • 9.  RE: Getting error which running lppchk -c

    Posted Mon March 08, 2021 11:51 AM
    Hello,

    "t"-Flag is already set, and /tmp is more than 80% free in space. 
    At last we would like to rerun the cmd to update OS with the same level as the current OS level (after making a latest clone copy of current OS as backup plan ) just to make sure all the OS files get updated and reboot the server during the maintenance window. Hope this will help. 

    This is the last option we can try.

    Thanks for your reply.



    ------------------------------
    NITIN BHATT
    ------------------------------



  • 10.  RE: Getting error which running lppchk -c

    Posted Tue March 09, 2021 02:03 AM
    As we don't know what happened before, it's difficult to give advise, you should contact IBM support.

    But another question:
    You wrote "...making a latest clone copy...", does it mean "alt_disk_copy" ?
    So why not do an update by alt_disk_copy (-b update_all) in the background ?
    After the OS update, the RPMs can be updated by waking up altinst_rootvg, then update them by a install bundle with alt_rootvg_op ?
    Just an idea...

    ------------------------------
    Achim Haag
    ------------------------------