System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

File exists message misleading?

 
Sammy_2
Super Advisor

File exists message misleading?

hpux11.11

Trying to create dir called udump. but it says it exist. But can create dir by any other anme

find command on this f./s gives cannnot stat message.(see below).
Seeing this in syslog

Dec 18 09:51:42 clkch54 vmunix: msgcnt 55973 vxfs: mesg 008: vx_direrr: vx_dirsc
an_2 - /app/oracle file system inode 14734 block 2422219 error 6
Dec 18 09:51:42 clkch54 vmunix: msgcnt 55974 vxfs: mesg 008: vx_direrr: vx_dirsc
an_2 - /app/oracle file system inode 14734 block 2422219 error 6
Dec 18 09:51:42 clkch54 vmunix: msgcnt 55975 vxfs: mesg 008: vx_direrr: vx_dirsc
an_2 - /app/oracle file system inode 14734 block 2422219 error 6
Dec 18 09:51:42 clkch54 vmunix: msgcnt 55976 vxfs: mesg 008: vx_direrr: vx_dirsc
an_2 - /app/oracle file system inode 14734 block 2422219 error 6
Dec 18 09:51:46 clkch54 vmunix: msgcnt 55977 vxfs: mesg 016: vx_ilisterr - /app/
oracle file system error reading inode 1611

(

What could be the problem ?
Thanks


#app/oracle/admin/PRODDB =>mkdir udump
mkdir: cannot create udump: File exists
#app/oracle/admin/PRODDB =>ls -ld udump
udump not found
#app/oracle/admin/PRODDB =>find . -name "udump"

find: cannot stat ./udump
find: cannot stat ./dpdump
good judgement comes from experience and experience comes from bad judgement.
3 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: File exists message misleading?

Hi:

The problem is corruption as evidenced by VxFS error in the 'syslog'.

You need to perform a full filesystem check. Unmount the file system and do:

# fsck -F vxfs -o full -y /dev/vgNN/lvolX

Consult your 'syslog' too for any possible disk errors.

Regards!

...JRF...
Hein van den Heuvel
Honored Contributor

Re: File exists message misleading?

As a workaround I would try...

# cd app/oracle/admin
# mv PRODDB PRODDB_bad
# mkdir PRODDB
# mv PRODDB_bad/* PRODDB
# mkdir PRODDB/udump

... and check ownerships & protections

Hein.


Matti_Kurkela
Honored Contributor

Re: File exists message misleading?

The syslog messages indicate that your filesystem is corrupted. I hope your backups are up to date.

If not, make an extra emergency backup *right now*. Don't overwrite any of your old backups, you might need them too.

You should shutdown Oracle, umount the filesystem and run "fsck -o full" on that filesystem.

After the filesystem check, mount the filesystem again and check the contents of /app/oracle/lost+found directory.

Then get a list of filenames from your latest backup and verify that all the important files are still present on the disk. Restore missing or damaged files if necessary. Restart the database.

MK
MK