AIX

AIX

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


#Power
 View Only
  • 1.  "du:0653-175 Cannot find the current directory."error when using oracle id?

    Posted Wed April 08, 2009 05:58 AM

    Originally posted by: chandru0078


    Dear Experts

    I have AIX 5300-05-00 with 3 oracle instance running on it.Problem is whenever i run du -sg * using oracle id getting erro as "du: 0653-175 Cannot find the current directory." but using root id looks fine ? Why oracle user not able to do du -sg on thier own directory ?

    $ pwd

    /CIB_TF

    $ ls -lrt

    total 32

    drwxr-xr-x 2 oracle oinstall 256 Sep 07 2007 lost+found

    drwxr-xr-x 12 oracle oinstall 4096 Sep 10 2007 oradata

    drwxr-xr-x 2 oracle oinstall 8192 Apr 07 23:08 eod

    drwxr-xr-x 2 oracle oinstall 256 Apr 08 12:15 arch

    drwxr-xr-x 2 oracle oinstall 256 Apr 08 12:15 onlinelog

    drwxr-xr-x 2 oracle oinstall 4096 Apr 08 12:15 bak_tf

    $ du -sg *

    du: 0653-175 Cannot find the current directory.

    $

    1. cd /CIB_TF
    2. du -sg *
    0.03 arch
    1.90 bak_tf
    0.00 eod
    0.00 lost+found
    0.09 onlinelog
    24.00 oradata
    1. df -g /CIB_TF
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/CIB_TF 40.00 13.98 66% 233 1% /CIB_TF
    1. ls -ld /CIB_TF
    drwxr-xr-x 8 oracle oinstall 256 Dec 30 13:28 /CIB_TF
    #AIX-Forum


  • 2.  Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    Posted Wed April 08, 2009 10:15 AM

    Originally posted by: hdkutz


    Hello,
    ...
    drwxr-xr-x 2 oracle oinstall 256 Sep 07 2007 lost+found
    ...
    looks wrong to me. Seems that somebody performed
    chown -R oracle:oinstall /CIB_TF

    lost+found belongs to root - not oracle!
    Delete lost+found and recreate it with
    1. mklost+found
    Command.

    Check if
    $ du
    is an alias in your Oracle Environment by executing as Userid oracle
    $ alias|grep du
    or
    $ env|grep du
    or
    $ set|grep du

    Maybe your filesystem is corrupt.

    Cheers,
    ku
    #AIX-Forum


  • 3.  Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    Posted Wed April 08, 2009 09:45 PM

    Originally posted by: chandru0078


    Dear Ku

    Thank for the feedback.Anyway the is not alias found under oracle id and even at other filesystems lost+found owned by oralce:oninstall but able to run du without any problem.I have same feel this filesystem could be currupted .

    I have question here if run fsck on the currupted FS is there any change to loss data ? which combination flag is the best pratice for fsck ?

    $ ls -lrt
    total 8
    drwxrwxr-x 2 oracle oinstall 256 Apr 11 2007 lost+found
    drwxr-xr-x 2 oracle oinstall 4096 Jul 05 2007 arch
    drwxr-x--- 2 oracle oinstall 256 May 05 2008 prdtcsh
    $ du -sg
    20.31 .
    $ du -sg *
    8.70 arch
    0.00 lost+found
    11.61 prdtcsh

    1. pwd
    /CIB_CASH1

    $oracle>ls -ld CIB*
    drwxrwxr-x 5 oracle oinstall 4096 Jun 02 2008 CIB_CASH1
    drwxrwxr-x 5 oracle oinstall 256 Dec 10 2007 CIB_CASH10
    drwxr-xr-x 2 oracle oinstall 256 Apr 11 2007 CIB_CASH17
    drwxrwxr-x 4 oracle oinstall 256 Jul 29 2008 CIB_CASH2
    drwxrwxr-x 5 oracle oinstall 256 Jun 04 2008 CIB_CASH3
    drwxr-xr-x 8 oracle oinstall 256 Dec 30 13:28 CIB_TF
    #AIX-Forum


  • 4.  Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    Posted Thu April 09, 2009 03:37 AM

    Originally posted by: hdkutz


    Hello,
    BEFORE your filesystem check, make the changes of the lost+found Directory.
    I do not know what happens if the File/Dir Permissions were like yours.

    Yes, loss of data maybe possible. So before your filesystem check - do make backup!

    Cheers,
    ku
    #AIX-Forum


  • 5.  Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    Posted Sat April 11, 2009 02:39 PM

    Originally posted by: niella


    It is just a permission problem - and if I'm right - running '/bin/pwd' as oracle in /CIB_TF will fail. BTW, this command is different from just plain 'pwd', since by giving the full path you avoid using the ksh built-in which does not give an error.

    If /bin/pwd however does fail with a permission error, all you need to do is 'umount /CIB_TF' and check the permissions of the underlying mount-point directory /CIB_TF. The mount-point should be owned by root.system and most importantly, have 0755 permissions. After remounting the /CIB_TF file-system the permissions you expect (owned by oracle) should still be in place, and all your commands will work.

    Niel
    #AIX-Forum


  • 6.  Re: "du:0653-175 Cannot find the current directory."error when using oracle id?

    Posted Thu May 10, 2012 06:30 AM

    Originally posted by: SystemAdmin


    you are right!
    #AIX-Forum