My file system is 100%, can't find the huge file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers My file system is 100%, can't find the huge file
# 1  
Old 01-08-2013
My file system is 100%, can't find the huge file

Please help. My file system is 100%, I can't seem to find what is taking so much space. The total hard drive space is 150Gig free but I got nothing now.

I did to this to find the big file but it's taking so much time. Is there any other way?

Code:
 
du -ah / | more
 
find ./ -size +200M -exec du -h {} \;

# 2  
Old 01-08-2013
The usual culprits are often in /var/, unless /var/ is its own partition on your system.

If you have lsof, this can help show you which files are actually open. So can ls -l /proc/[0-9]*/fd/ on some systems, particularly linux.

Beware -- do not simply delete the problem file when you find it! If it's still held open by anything, it will not be removed from disk, just removed from the directory -- forcing you to kill processes or reboot to close the file and fix the problem.

Truncate the file instead, i.e. : > filename to reduce it to zero bytes in size.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 01-08-2013
Code:
                       
  sudo  find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

This User Gave Thanks to adam25ca For This Post:
# 4  
Old 01-09-2013
Thank you so much for your help. I was able to find huge tar file, which I was able to remove. But it's still tight, I need to add more space to this server. Move all the old log files to new system.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Split huge File System

Gents I have huge NAS File System as /sys with size 10 TB and I want to Split each 1TB in spirit File System to be mounted in the server. How to can I do that without changing anything in the source. Please your support. (1 Reply)
Discussion started by: AbuAliiiiiiiiii
1 Replies

2. Solaris

Backup for NAS huge File system

Gents, I have NAS File System mounted in Solaris as \Sysapp with size 8 TB the problem once the backup stared it is impacting the performance of the OS. Do you have any idea how to can we backup this FS with fast scenario without impacting the OS. Backup type : Netbackup (3 Replies)
Discussion started by: AbuAliiiiiiiiii
3 Replies

3. Shell Programming and Scripting

Find and modify a huge file

Dear Forum, I have a rather large file with a few million lines looking like this: head -n 5 seq.txt >KF1.8.1 010011001011100010101110000000 >DF1.6.1 0101000010111010101011111100 >XC1.3.7 010110101011101010110000011 >GG5.1.1 0100011010111010101110001101 >HK1.2.2... (5 Replies)
Discussion started by: GDC
5 Replies

4. Shell Programming and Scripting

Optimised way for search & replace a value on one line in a very huge file (File Size is 24 GB).

Hi Experts, I had to edit (a particular value) in header line of a very huge file so for that i wanted to search & replace a particular value on a file which was of 24 GB in Size. I managed to do it but it took long time to complete. Can anyone please tell me how can we do it in a optimised... (7 Replies)
Discussion started by: manishkomar007
7 Replies

5. Shell Programming and Scripting

how to split a huge file by every 100 lines

into small files. i need to add a head.txt and tail.txt into small files at the begin and end, and give a name as q1.xml q2.xml q3.xml .... thank you very much. (2 Replies)
Discussion started by: dtdt
2 Replies

6. Shell Programming and Scripting

Find File system according to device

Hi guys, I want to translate the device name from the command "iostat" to file system name in order to check IO problems of DB's data files. What is the way to do it? Thanks in advance, Nir (2 Replies)
Discussion started by: nir_s
2 Replies

7. UNIX for Advanced & Expert Users

how to find default file system

is there any command to find it? (12 Replies)
Discussion started by: crackthehit007
12 Replies

8. UNIX for Dummies Questions & Answers

How to find a file whick is consuming larger disk space in file system

Hello, Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it please help me out any help would be appreciated (6 Replies)
Discussion started by: lokeshpashine
6 Replies

9. Shell Programming and Scripting

insert a header in a huge data file without using an intermediate file

I have a file with data extracted, and need to insert a header with a constant string, say: H|PayerDataExtract if i use sed, i have to redirect the output to a seperate file like sed ' sed commands' ExtractDataFile.dat > ExtractDataFileWithHeader.dat the same is true for awk and... (10 Replies)
Discussion started by: deepaktanna
10 Replies

10. HP-UX

find the largest file in whole system

find the largest file in whole system (7 Replies)
Discussion started by: megh
7 Replies
Login or Register to Ask a Question