AIX

AIX

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


#Power
#Power
 View Only
  • 1.  Message 0652-023 when I use the find at /

    Posted Tue April 24, 2007 09:46 AM

    Originally posted by: SystemAdmin


    I noticed that recently, since maybe 3 months, I will get the 0652-023 message when I use find / at root. According to IBM doc (SG24-6396-00) , I should exclude the /proc dir. How did this start? What is the correct format? (I do not quite understand the format in that doc?
    I do not get the same message when I used my other AIX with OS 5.3L (ML-5005)
    #AIX-Forum


  • 2.  Re: Message 0652-023 when I use the find at /

    Posted Tue April 24, 2007 03:12 PM

    Originally posted by: SystemAdmin


    It would be helpful if you could cut and paste the error message into your post. This will help the people who read this forum to understand the problem you are encountering.

    Additionally, how does the document that you reference suggest that you exclude the /proc directory? It would be helpful if you could post the instructions given in that document.

    Are you expecting find to return results that are underneath /proc? Perhaps find is encountering permission problems when trying to traverse the directory structure under proc.
    #AIX-Forum


  • 3.  Re: Message 0652-023 when I use the find at /

    Posted Tue April 24, 2007 06:07 PM

    Originally posted by: SystemAdmin


    Ex: I am doing a global find from root
    1. find / -name *ssh
    /tmp/testssh
    /home/chi/.ssh
    /home/mchowell/.ssh
    /home/oracle/.ssh
    /opt/diagnostics/probes/ibm.csm.dsh.ssh
    /usr/lib/boot/ssh
    /usr/local/bin/ssh
    find: 0652-023 Cannot open file /proc/1327336.
    in IBM doc: Accounting and Auditing on AIX 5L (SG24-6396-00 ISBN 0738491705) pp 62
    "If you execute the command as root, you still get error messages
    complaining about file access in the /proc file system.
    [#][/]> dodisk -o
    find: 0652-023 Cannot open file /proc/10608.
    find: 0652-023 Cannot open file /proc/14714.
    find: 0652-023 Cannot open file /proc/21872.
    /proc/25726/fd/8: A file or directory in the path name does not
    exist.
    This happens because the find command, inside dodisk, is executed
    from the (/) directory, without excluding /proc.
    Normally, to avoid the /proc directory, the find command should be
    executed excluding this:
    find /-name proc -prune -o -print"

    My other AIX 5.3L (5005), does not have such problem: -> 0652-023
    #AIX-Forum


  • 4.  Re: Message 0652-023 when I use the find at /

    Posted Tue April 24, 2007 07:26 PM

    Originally posted by: orphy


    /proc is a special filesystem and it's quite dynamic so no two boxes have
    the same contents in /proc.

    For what you are trying to do, if the error is bugging you, just do the
    exclude.

    You can learn more about /proc from the infocenter.
    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp
    Orphy
    #AIX-Forum


  • 5.  Re: Message 0652-023 when I use the find at /

    Posted Wed April 25, 2007 09:34 AM

    Originally posted by: SystemAdmin


    Thanks. It is not bugging me. Because I am still in the early learning curve of the AIX, any of the unusual message scare me, especially this appears in the production box.
    #AIX-Forum