I have a directory 97% full warning. I have deleted 2 large files and still get the error each time I sign on. Can anyone help me with what I have failed to do? Thanks in advance. Danny Corley
I've seen lots of warnings about filesystems being full. I don't remember ever seeing a directory full warning.
Please show us the EXACT warning message that you're getting when you login, output from the commands:
and output from the command:
(we only need the line from mount corresponding to the filesystem shown in the df command output).
Please cut output and post it enclosed in CODE-tags. Not everybody is willing to wade through a huge XML-file just to see the one-line error message.
In fact the error is "/ace is 97 % full" and "/ace" is most probably a filesystem. Check it like this (your output might look somewhat different):
Code:
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Nov 18 17:22 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Nov 18 17:22 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Nov 18 17:22 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Nov 18 17:22 rw,log=/dev/hd8
and if there is a line with "/ace" it is a filesystem.
Why you could delete two files and still see this warning is because of a common gotcha every novice SysAdmin falls for sooner or later: as long as a process has opened a file it is not unlinked (its space reclaimed) by the system, even if it is deleted. So most probably there is a process (or several processes) writing to the files you deleted. Until this process releases the file (i.e. via ending, closing the file, etc.) it is still there, even if its directory entry is already removed because you deleted it.
What you can do is: identify the process(es) and stop them. This will immediately unlink the file and the space it takes will be available again as free. Another option (which essentially does the same) is to reboot the system. The third option is to enlarge the filesystem. Depending on your system this could be possible without unmounting the FS.
To avoid creating the same problem again you should always check if a process accesses a file before you delete it. For this there are several tools, "fuser" is probably the most wide-known.
If a process uses a file you need to make smaller, instead of deleteing it you should shorten it:
Code:
# cat /dev/null > /file/in/question
will reduce it to length zero without interrupting the process writing to it.
My input is as below :
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt
/splunk/scrubbed/triumph/ifind.triumph.txt
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
I think I know what this is doing, but the 'eval' is confusing
fname=$(echo ${lineItem} | awk 'BEGIN {FS=";"}{print $1}')
fname=${fname%%+(])}
fname=${fname##+(])}
eval "fname=${fname}"
The first line extracts the contents of the line preceeding the ";"
2nd & 3rd lines trim the value (I... (5 Replies)
Hey
I'm new to the forums here, and I'm seeking help for this script that I'm writing. When I do ls -l of a directory it shows the full pathname for files in it. For example, if the directory is /internet/post/forum/ and the file is topic, it currently shows internet/post/forum/topic. What's the... (3 Replies)
Dear All,
We are on AIX OS, /tmp directory is filled up to 99% percent,
Please suggest, How to get free space for "/tmp"?
which files can be deleted from /tmp? and How to delete it? is there any commands.....
Thanks in advance,
Its very urgent, Helpful answers will be appreciated,
Please... (7 Replies)
root directory in server / is full 100% , i already tried to delete any core file , log , ..
still files under /proc directory take more than 4 G..
what you advice please i don't want to format the server and install again and re partition , i tried the FORMAT tools ! but it seems i cant do... (5 Replies)
I'm not a unix admin, just fell into support, so I may be asking a real duh question.
Client runs a PeopleSoft HR/Payrool system. The batch server runs in HPUX PA_RISC 11.11
When a batch process runs, output is written to "staging" directory. When the job finishes, successfully or not, the... (1 Reply)
Is there a way of listing everything under a directory.
So for example if you wanted to know everything under the USR directory you would get all the sub directories and files in those directories as well as the file directly under the USR directory. I would imagine that you could do this... (5 Replies)
Dear experts
My / directory shows 100% full. What should I do???
What is normal size and
how can I prevent it.
I am using Solaris 8 on an Ultra 60.
Thanks for your advises.
Reza (6 Replies)
what should i do in this situation. the system crashes and when it rebooted, it tries to dump the core files in the savecore directory. it finds that there is not enough space to dump the files so it just goes ahead and boots up and saves as much core as the directory can withhold
1.
now my... (1 Reply)