AIX

AIX

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


#Power
#Power
 View Only
  • 1.  Missing file

    Posted Fri October 24, 2008 06:13 AM

    Originally posted by: SystemAdmin


    I'm a newbie in aix world, and found some problems in manage this.
    Hope somebody could help me, please.
    Here is my case, in folder /sapreorg, when I used command "ls", then the result is
    • ls
    lost+found sdysgcfr spaceHPR.log
    paramHPR.log sdysgcmz strucHPR.log
    But, when I used command "ls -al", the result is
    • ls -al
    ls: 0653-341 The file ./sdysgcfr does not exist.
    ls: 0653-341 The file ./sdysgcmz does not exist.
    total 280
    drwxr-xr-x 5 orahpr dba 8192 Oct 19 17:30
    drwxr-xr-x 22 orahpr dba 4096 Aug 27 :12 .
    drwxr-xr-x 2 root system 256 Jul 28 03:47 lost+found
    -rw-r--r-- 1 orahpr dba 2448 Sep 18 12:05 paramHPR.log
    -rw-r--r-- 1 orahpr dba 32578 Sep 18 17:44 spaceHPR.log
    -rw-r--r-- 1 orahpr dba 82631 Sep 17 16:53 strucHPR.log
    If I try to delete the files using command "rm -R", this is the result
    • rm -R sdysgcfr
    rm: sdysgcfr: A file, file system or message queue is no longer available.
    And when I try to rename the file using command "mv", this is the result
    • mv sdysgcfr sdysgcfr.old
    mv: 0653-401 Cannot rename sdysgcfr to sdysgcfr.old:
    A file, file system or message queue is no longer available.
    Can anybody know how to remove completely the files that does not exist.
    Thanks in advance.
    May
    #AIX-Forum


  • 2.  Re: Missing file

    Posted Fri October 24, 2008 07:33 AM

    Originally posted by: frenger


    Hi

    Seems you got some non printable chars in the file names. But the ls -la output confuses me.
    try ls > test.out and make a more or vi on test.out.
    Do you see there some strange things with "^" singns there?
    Try a rm sdys* and a rm ysgc or something similar.
    If nothing helps try a umount of the directory and make a fsck -y /<mountpoint>.

    frenger
    #AIX-Forum


  • 3.  Re: Missing file

    Posted Fri October 24, 2008 07:35 AM

    Originally posted by: orphy


    Is /sapreorg a filesystem or just a directory? If a FS, I suggest you umount it and run "fsck -y /sapreorg" to see what happens. You could also run these commands and send us the output.

    cd /tmp
    script
    cd /sapreorg
    ls -al
    Ctrl-D (hold the Ctrl and hit the letter D)
    vi /tmp/typescript

    and either upload the file or copy the content of it, including all ^H and other control characters.
    Orphy
    #AIX-Forum


  • 4.  Re: Missing file

    Posted Sun October 26, 2008 10:23 PM

    Originally posted by: SystemAdmin


    After I run command fsck -y :

    1. fsck -y -V jfs2 /dev/sapreorglv

    The current volume is: /dev/sapreorglv
    Primary superblock is valid.
    fsck: 0507-149 Duplicate block references have been detected in Metadata.
    fsck cannot continue.
    Errors detected in the file system inode allocation map.
    fsck: 0507-278 Cannot continue.
    File system is dirty.
    Now, I can't mount the filesystem.
    1. mount /oracle/HPR/sapreorg
    Replaying log for /dev/sapreorglv.
    mount: 0506-324 Cannot mount /dev/sapreorglv on /oracle/HPR/sapreorg: The media
    is not formatted or the format is not correct.
    0506-342 The superblock on /dev/sapreorglv is dirty. Run a full fsck to fix.

    Please help.
    #AIX-Forum


  • 5.  Re: Missing file

    Posted Mon October 27, 2008 02:58 AM

    Originally posted by: SystemAdmin


    Have you got any disk failure on the system? The output of the following will be helpful to understand the problem in detail

    lsvg -p <volumgroup name where the sapreorglv resides>

    lslv -l sapreorglv

    lslv sapreorglv
    #AIX-Forum


  • 6.  Re: Missing file

    Posted Mon October 27, 2008 06:04 AM

    Originally posted by: frenger


    http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/fsck-error-message-2408866
    Looks like this error is not recoverable. If you don't need the data (you have a backup of the FS for example) I recommend recreating the FS (delete the old). If you need the (corrupted) data I recommend contacting IBM support.
    frenger
    #AIX-Forum