Can't erase/move/copy file!


 
Thread Tools Search this Thread
Operating Systems Solaris Can't erase/move/copy file!
# 1  
Old 03-17-2012
Can't erase/move/copy file!

Hey everyone!. I have a problem with a file that doesn't allow any operation on it. I can't rm,mv,cp nor any other operation to it, I get the following errors:

Code:
bash-2.05# mv ora_2527.aud /bkp
mv: cannot access ora_2527.aud
bash-2.05# cp ora_2527.aud /bkp
cp: cannot access ora_2527.aud
bash-2.05# ls -al ora_2527.aud
ora_2527.aud: I/O error
bash-2.05# file ora_2527.aud
ora_2527.aud:   cannot open: I/O error

uname -a = SunOS rpv 5.9 Generic_118558-30 sun4u sparc SUNW,Sun-Fire-V440

The filesystem is UFS and is mounted read/write. In fact, there is an oracle DB running there.

Does anybody have any idea on why this happened or/and how to fix it?

Thanks in advance for any help !Smilie
# 2  
Old 03-17-2012
Post the results of the following commands;

Code:
ls -lib ora_2527.aud
fuser -uc /path/to/file/ora_2527.aud

Regards

Dave
# 3  
Old 03-17-2012
Here it is...

Code:
bash-2.05# ls -lib ora_2527.aud     
ora_2527.aud: I/O error
bash-2.05# fuser -uc ora_2527.aud
ora_2527.aud: fuser: I/O error

# 4  
Old 03-17-2012
Are you logged on as sysdba or oracle? I think they are the only people that have access to the audit files, however it does look like there is a problem with the inode of the file.

Can you try the following command in the directory where the file is.

Code:
ls -li *

It may be that you'll have to stop the database, unmount the file system and run fsck to get a better idea of what the problem is. Although there could also be a problem with the disk here as well, I'd suggest that you ensure that you have an up to date backup for this one.

Regards

Dave

Last edited by gull04; 03-17-2012 at 04:24 PM.. Reason: Couldn't spell my own name.
This User Gave Thanks to gull04 For This Post:
# 5  
Old 03-19-2012
Hi. Thank for your reply gull04. When I execute "ls -li *" I get response for all the files in the directory except for the one that has the problem; with that file I get the same "ora_2527.aud: I/O error" error. This DB is running in an external NetApp filer and the filer does not report any errors nor warnings... I agree with you gull04, the best thing is unmount the vol and run fsck on it...

I'll do this and post the result.

Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Separate the apache user file and move or copy some were

Hi all, I'm Using Centos 6.4 /opt/my_aplication/entry/data/0/ There are Thousands of files in this Directory, Only i need to copy or move the apache User's file from this to /tmp/backup , I have listed apache user's file using find . -user apache -type f , its gave me the only apache... (2 Replies)
Discussion started by: babinlonston
2 Replies

2. Shell Programming and Scripting

Copy or Move problem

Hi All, I have a simple shell script to move .txt file(s) from a source directory one after another to the destination. The source directory is shared to windows using samba. The source files are arriving continuously and approx size is 10-15 KB. Some time the file size reached upto 100 KB and... (9 Replies)
Discussion started by: sraj142
9 Replies

3. Shell Programming and Scripting

Copy/move file which are not currently in use.

Hello experts, I'm doing a shell script that able to copy or move files. My situation is i have a drive ( lets say its S drive) where its receive all the files from mainframe i need to copy all the file from S drive to T drive. but only those files that are finished copied from mainframe... (5 Replies)
Discussion started by: CelvinSaran
5 Replies

4. UNIX for Dummies Questions & Answers

Unable to copy or move file

I am trying to move a file that is in the root directory. I suspect it is an old file created by someone when the system was installed. I am testing accessing the file by doing a copy but the command does not find the file. I am operating as root. We are HP-UX B.11.23 I do long listing and... (3 Replies)
Discussion started by: phcorn
3 Replies

5. UNIX for Dummies Questions & Answers

How to copy/move to a file with a special character as the 1st char in the filename?

I am trying to create files with special characters in its filenames for testing purposes. This is on a Linux RHEL4 but this should also be applicable on a Unix shell. I am able to create files with special characters in the filenames...e.g. cp -pv foo.gif \*special.gif cp -pv foo.gif \... (6 Replies)
Discussion started by: sqa777
6 Replies

6. Shell Programming and Scripting

Bash Copy-Move file problem

Hello, I made a script to copy files from one directory to another and move file after the copy is done. When files are present in the source directory there is no problem but when no file are present I'm getting an error. Please help !! --------------------- #!/bin/bash ... (2 Replies)
Discussion started by: lsimoneau
2 Replies

7. Shell Programming and Scripting

ncftp copy/move pb

Hi, i have made this script for copy file in folder FTP in my local machine, when copy is finish i move files copied in backups_001 directory on same ftp 1°) the problem is if this script works with date if date is similar i taken, but if one day in ftp they put new file is no getting ... (0 Replies)
Discussion started by: livetele
0 Replies

8. UNIX for Dummies Questions & Answers

erase file

I have a file that always generated in the system eg. /tmp/log.txt , it is generated by the application program , but this file should not be present in the system otherwise there are some program problem , I want to erase this file once the program has generate it , as I know , it can link to... (2 Replies)
Discussion started by: ust
2 Replies

9. Shell Programming and Scripting

Help with Copy Move Script

Hello Gurus! Please help! I would like to get some help with the following: I'm working right now on a Data Warehouse project and I need to automate a manual procedure I am using to process the data files coming into the database, any information/ideas and or which script language to go... (4 Replies)
Discussion started by: alfpathros
4 Replies

10. UNIX for Dummies Questions & Answers

how to copy/move folder on XP to Solaris?

I have created a folder on C:\images\Raffles.jpg on my PC, and I like to copy or move to Solaris server. How can I do that? Please advise. Thanks in advance. (2 Replies)
Discussion started by: simt
2 Replies
Login or Register to Ask a Question