Directory full error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Directory full error
# 1  
Old 01-07-2014
Error Directory full error

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
# 2  
Old 01-07-2014
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:
Code:
uname -a
df $HOME

and output from the command:
Code:
mount

(we only need the line from mount corresponding to the filesystem shown in the df command output).
# 3  
Old 01-08-2014
Error responding to request about directory full

thanks for looking at this. Danny
# 4  
Old 01-08-2014
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.

I hope this helps.

bakunin
# 5  
Old 01-08-2014
Thanks

Thanks for the reply. I will try that. Sorry for not understanding about the code tags, this is new to me. Danny
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Extract directory name from the full directory path in UNIX using shell scripting

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)
Discussion started by: IshuGupta
5 Replies

2. UNIX for Dummies Questions & Answers

Extract directory from full file name?

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)
Discussion started by: jdorn001
5 Replies

3. Shell Programming and Scripting

How do I get an ls -l to not show the full directory path?

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)
Discussion started by: unity04
3 Replies

4. AIX

\tmp Directory is full up to 99%.

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)
Discussion started by: kak
7 Replies

5. Solaris

root directory is full

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)
Discussion started by: moata_u
5 Replies

6. HP-UX

directory full?

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)
Discussion started by: abNORMal
1 Replies

7. Solaris

Full Directory without data....

$ df -hl Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 5.0G 4.7G 52% / /proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab fd 0K 0K 0K ... (2 Replies)
Discussion started by: adel8483
2 Replies

8. UNIX for Dummies Questions & Answers

Full Directory Listing...

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)
Discussion started by: B14speedfreak
5 Replies

9. Solaris

/ directory is 100% full

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)
Discussion started by: Reza Nazarian
6 Replies

10. UNIX for Dummies Questions & Answers

Savecore directory is full, what can be done?

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)
Discussion started by: TRUEST
1 Replies
Login or Register to Ask a Question