will give you the inode number of each file in column 1.
We would all assume that the files are being emptied (zero length) so the inode numbers would remain the same. If however the inode numbers change then something is recreating the files.
---------- Post updated at 10:38 AM ---------- Previous update was at 10:28 AM ----------
Another thought is to search your system for all files called 'rm'.
Are you running the 'rm' that you think you are?
Perhaps someone has created a script named 'rm' which is being found first on the search path and you are not executing the actual operating system command that you thought you were.
Inode numbers stay the same. Everything is just what it was. File names, sizes , inode numbers ,file timestamps.
One more observation
If i copy files to this folder from 'somewhere' using ftp/sftp ,this strange behavior takes place but if i create a file in this folder ,say, using 'touch' and delete it , it does not re-appear.
I have checked all possible scripts and none of them use 'rm' in them.
Abhi
---------- Post updated at 09:08 PM ---------- Previous update was at 07:50 PM ----------
these are regular files...
anyone has any direction for me ?
Abhi
---------- Post updated at 09:18 PM ---------- Previous update was at 09:08 PM ----------
i am seeing something like
This looks like a loop to me .... can i break it with 'pkill' or something ?
Abhi
Last edited by Corona688; 08-13-2015 at 01:05 PM..
These just look like child and parent processes to me. I don't see a problem there.
I think we need to review the facts of this issue.
The files you have trouble deleting are ONLY the one's created via ftp/sftp from another system, yes?
The files created in that way can then be listed and show a non-zero size, and are normal files, yes?
When you 'rm' these files they "re-appear" as zero length files. Do they actually get removed and then recreate themselves, or do they simply get reduced to zero length? Can you tell what is happening?
You say the inode numbers aren't changing. If you create, say, 10 files via ftp and list them, all 10 will be zero length after rm with the same inode numbers, yes?
What type of filesystem is it? I'm not an AIX expert but have you checked the integrity of this filesystem with the appropriate tool?
If you have more than one filesystem does this issue occur if you try it on another filesystem?
Sorry for all the questions but this issue sounds real strange.
Incidentally, files being created via ftp with zero length is a well known problem on some Unix O/S's but you definitely say that the created files are non-zero when first copied onto the system?
Did you check if the file is in use before you deleted them - maybe by the sftp-process? It's been a while since I worked with AIX last, but fuser -f </path/to/file> should give you this information (or you can install lsof).
hi i know this is irrelevant to the question above but i was wondering how to pt a restriction in the filename in linux. I want that it is impossible to add numbers into the filename, help will be rely great , thanx!
This posting was initially given as a reply to an unrelated thread. It has been... (2 Replies)
Hi everyone,
this strange error suddenly popped up out of no where
when I do a directory listing , the date part doesn't appear
root@oradb:/backup>ls -la
total 58069304
drwxr-xr-x 3 root system 4096 23 ▒▒▒ 21:56 .
drwxr-xr-x 44 root system 1536 23 ▒▒▒ 21:47... (4 Replies)
I am having trouble finding the process, or subsystem, sendmail running on our client's server. They are runnning AIX version 5.3.9.0. When I run "ps -ef | grep sendmail" I only get my current ps process as a match. Running "ps -ef | more" and wading through the results also does not show sendmail... (2 Replies)
Hello.
I have got 3 unix boxes A B C. Box A is being used to prepare some reports. After the reports generation, Box A sftp the reports to Box B and Box C. When I look at the report in Box B and Box C. The reports are different. In Box B, I see using od -x command there is CRLF (\r\n) at the end... (7 Replies)
Hi everyone,
really strange files keep appearing in my home directory. I have absolutely no idea where they come from and I'm a little concerned that they could come from some kind of malware activity or Firefox exploit. I searched Google for parts of the file names but without a result. The... (6 Replies)
I hope this question isn't too vague...
i recently switched from RedHat to Solaris 10, and found that the parts of a script that copy files between directories no longer work because escape sequences are appearing at the start and end of the filenames being read
#!/usr/bin/bash
cd... (1 Reply)
Hi friends..
Here is my problem..
I mounted a slice and make it permanent through entering the information in /etc/vfstab file ,,,but when i give df -kh ,,in the output the slice information is not appearing..but i can be able to open the mount point and access files as usual..I didn't give... (6 Replies)
First I have to admit that I am not an unix expert, but I do know some basic things about the file systems.
Anywho, one of my users' File Manager is not showing up as it normally does upon login. When I run a "ps -ea" I see "dtfile" in the list, but it does not show up. It's not in any of the... (0 Replies)
Hi,
From some time, we have noticed that our ascii files have started corrupting due to the presence of some random control characters (^@, ^M, ^H, ^D). The characters appear randomly on any file after the process that creates the file finishes. If we rerun the process, the files re creates... (0 Replies)