Just thoughts:
Did you do a df -k to see where on what is the subdirectory?
Did you check no process is accessing that subdir: fuser -cu <subdir or file system>
Please post real directory listings in "ls -lisaR" format, the exact command typed and the exact error message with all punctuation.
Also try "find" to see if it names the missing files:
What Operating System and version is this?
Does the bad directory appear in /etc/fstab ? i.e. is it a mountpoint?
Do you have a good and recent backup? If not, don't reboot until you have saved what you can.
Normally this sort of fault can be either cleared silently or made into a firm fault by cold rebooting the computer. This should force a hardware check and if the disc has not failed trigger a "fsck" on the filesystem.
Hi All,
Thanks for your replies. I will try to post the answer to questions posed by various folks.
This is on AIX V5.3. There is a subdir called PowerCenter in main file system /opt/informatica.
/opt/informatica/PowerCenter contains another subdir called ia_jre_extraction_dir_6222.tmp
1) I went to /opt/informatica and issued following command:
and it did not work.
2) I tried doing fuser -cu PowerCenter/ia_jre_extraction_dir_6222.tmp
and it shows following output
So not sure if 598406 is a process, I did not see in list when I issue "ps -ef" command.
3) When I issue the command
I get the response
Mount point is /opt/informatica.
Does the bad directory appear in /etc/fstab ?
I did not see /etc/fstab, is it a text file??
Should I ask my UNIX Admin to reboot the server and see if the I/O errors related to filesystem are resolved.
Moderator's Comments:
Please use next time code tags for your code and data
I/O error is bad. It means that the system is physically unable to do what you're asking it to because the disk is not responding as expected. And you ignored the question about whether you have a recent backup, so I'm assuming you don't.
Rebooting isn't a good idea in these circumstances. What if the system just doesn't boot again? You'll have lost your last chance to recover your data.
BACK UP IMMEDIATELY. Do not wait. The disk may be DYING.
This deleted file or directory is still open by process ID 598406 under user xdadmin :
PowerCenter/ia_jre_extraction_dir_6222.tmp/jre
It should show in:
I expect that you are going to need to shut down Informatica as tidily as possible, reboot and repair any damage to Informatica data (possibly be restoring deleted files and directories from backup) before restarting Informatica.
The I/O error message is ominous unless it comes from a Java application. Still advisible to take a new backup before rebooting.
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Guys, can you tell me how to delete directory and sub directory with files in them, for example:
/system/upgrade/title/sub/var/vito/
I would like to delete 'title' and everything under it. Every sub dir contains files which need to be deleted as well.
Thanks (1 Reply)
Hi,
I am currently using SFTP 'put' command to copy all files to remote server and then delete the copied files from source directory.
Can anyone help me with a single command to copy and remove files in one go?
Thanks and Regards,
Chetan Vyas (5 Replies)
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
I've got a problem how to delete files from specific directory.
I don't want do it recursively but only in specific directory.
So, command like
find /home/dirname/ -mtime +8 -type f -exec rm {} \;
is not for me because this command will remove ifs files in
/home/dirname and all... (2 Replies)
Hi,
I have an dir which has 50K file, some of them are empty. I want to delete the empty file from the dir. I am planning to use the following command.
ls -l | grep " 0 " | awk '{print $9}'
I can copy this to an file and then how do I use this file to delete the empty files.... Any help... (2 Replies)
All,
I am having a directory as
drwxrwsr-x 3 intermec intermec 10240 Jan 8 09:07 intermec
inside the directory . the files are like
cd
-rw-r----- 1 intrmc01 intermec 5226 Dec 2 15:03 AST07356.txt
-rw-r----- 1 intrmc01 intermec 5025 Dec 2 12:51... (4 Replies)
I have a Solris 9 box my problem is when I restart my box all my files and dirs in /tmp dir will be deleted exept 2 directories I found them since installation phase !!!!
How to keep my files at that dir " /tmp " even after restarting ??? (1 Reply)
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)