General :: Find Which Files Are Suddenly Taking Up The Space?
Jul 27, 2010I had this come up in logwatch: /dev/sda5 4.8G 3.6G 960M 80%/
Any ideas how I can find which files are suddenly taking up the space?
I had this come up in logwatch: /dev/sda5 4.8G 3.6G 960M 80%/
Any ideas how I can find which files are suddenly taking up the space?
I have some confusion about one of my partition and the space it is taking. df -h output is given below;
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ddf1_ADVDTARTINGp1
494G 18G 452G 4% /
[code]....
above information is showing that /var/lib/mysql partition total size is 379 GB and it is 68% used. However when I execute command du -sh /var/lib/mysql it shows following output.
# du -sh /var/lib/mysql
45G /var/lib/mysql
Now I want to know what files are taking space to make the partition 68% used. I want to list down all files in that partition with size.
My /var/ partition continues to fill up on all my servers, and it is because the logs in /var/log/apache2 or /var/log/mysql are being deleted during log rotate, but their file handles are being held open. Thus, a "du -sh /var/log" shows the correct values, but "df | grep /var" shows something much different.
It seems that the log files rotate, however if I run "lsof | grep deleted" it returns lots of files that are no longer visible in the directory, however refuse to clear themselves off the disk.
The only way I have found to make these log files go away (and thus clear up the disk space on the partition I should have) is to restart either apache or mysql, depending on which process has huge sized log files being held open.
Is it just me, or is this a big flaw in the way linux works, that it can't figure out how to release file handle for a log so the disk space can be reclaimed? This is happening to me a lot lately.
Here is some output from one of my web servers so you can see what I am seeing...
root@web49:~# df -h | grep /var$
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 9.2G 6.1G 2.7G 70% /var
root@web49:~# du -sh /var
[Code]....
I used photorec to recover lost files and it brought up 70gb worth of files, when I was done looking through them I deleted these files. but these files still seem to be taking up my disk space. When I try to access my trash bin with root I get a message that reads...."The folder contents could not be displayed. sorry, could not display all the contents of "trash": operation not supported." if I open my trash bin when I'm not in root, the bin is empty.
How do I free up my disk space?
The find command is taking too long on my machine to complete. When I use time command, I find that sys time and user time are too small as compared to real time. Is my find process not getting scheduled properly?
I interrupted the neverending find command and got the following statistics:
Real time : 5min
Sys time : 1.1 sec
User time : 3 sec
I was running
find / -name ls 2>/dev/null
I am working in ubuntu 9.x (linux karmic kernal) .I have restored the content from CD to hard disk. In the mid way of this process, it was failed. I would like to know this below thiongs,
1) which position it got failed ?
2)Any offset option is there in linux to point the particular CD position ?
I have a list of files in a directory which starts with - or have space.
I need to copy them back without the space or -?
linux1[sim]% ls linux1[sim]% cp ./-* ./*
I have ubuntu install on a 500 gb drive. It says i have 409 gb free. I've been able to account for 40 gb, but when I try to check the folder proc, it lists 128 tb. How much space is this folder actually taking up?
View 1 Replies View RelatedI recently made the dumb mistake of using tar to make a backup of my "/" on my "/" when my "/" didn't have near enough space to store the backup. I received a warning message, so I canceled the terminal process and used nautilus to delete what amount of the backup had already been saved. That didn't seem to free up any space on my "/" like it should have, though. In an effort to find any hidden trash files that needed to be deleted, I used this terminal command:
[Code]...
I have around 100 users. I want to take backup of files which are on desktop for every user. My user directory path is -: /home/dr/<user_name>/Desktop
1) Script has to run on a particular time everyday
2) Script has to take backup of all files present in "Desktop" directory
3) Make a tar with name "yyyy-mm-dd-desk-files"
4) Make directory outside "Desktop" with name "Desktop-Backup", if already exist then don't make this folder.
5) The tar have to moved in this folder.
6) Remove the files from "Desktop" directory. (i.e. Desktop should be empty)
7) Mail the status that "Backup Successful"
There is a very conspicuous inaccuracy in the output of df. I should mention, that it was noticed to to a sudden change in the amount of space that was left on the backup partition. The df -h command produces the following output.
[Code]...
I have and IBM e-Server, with 256RAM, however when I force the fedora installation to be perfomr in grapgical mode, Anaconda return a message that say that I dont have enoght Memory to perform the graphical installation. To my uderstanding It requiere 192MB of Memeory for a graphical installation.
What I'm doing wrong?, or is that the vmlinuz is booting into RAM and taking most of the space?
Ubuntu 10.04.1 I was just tidying up my panel when I notice the Volume icon is taking up the space of two icons: I can right-click and Move it to the left or right
View 6 Replies View RelatedHow much space does Ubuntu 10.04 take?
I have a 320 GB HDD I use for data apart from the regular HDD for the OS. Of course when you go to format it, it's actually 298GB. So I made a 248 GB partition, ext4 for ubuntu data, and a 50GB partition for Windows.
It shows as 248.01 GiB in size in GParted, with 217.27 GiB used. 30.75GiB unused.
When I go to Computer, right click on the partition, click Properties, it says Total capacity 244.1 GB, 18.3 GB free, 225.8 GB Used.
So:
1) Why does GParted show it as 248GB and the Properties as 244 GB?
2) More importantly: Why does Gparted show I've used 217.27 GBs, while the Properties show I've used 225.8 GB? What's going on there?
My company recently started bouncing all .Gifs back to our linux server. Is there a way on my end that i can block this from happening so it stops taking up space?
View 3 Replies View RelatedWhen I reinstalled ubuntu I chose to encrypt my home folder (something that i've never done before) but now that I know it doesn't really make a difference i'd like to decrypt it because the .encryptfs folder is taking up so much space i'm getting notifications every time I log in.
View 7 Replies View RelatedI'm working on a few servers running centos and using postfix. I don't know what the exact problem is, but we are having problems with the disk space being maxed out at 100 gigs. What we think the problem is...is that postfix is either caching or logging all the emails we send out. We sent 250k emails (500kb apiece) over the weekend and we were having trouble with that quantity. It seems some of those email were queued up for retry sending...but we didn't have sufficient disk space for that? Something broke - I'm not sure what.
What I want to do is to find and change the config file that has to do with postfix email retrying - possibly limit this (not sure if this will fix my problem). Or, turn off /limit any way that postfix logs/caches emails so that it won't take up all the disk space when queued up for retry... Again, I'm totally lost here (on both what's going on, and how to fix it). I'm not sure what more information is needed to address this problem
I installed GParted just so that I could have it in case I ever needed to resize my partitions. I opened it just because, with no intent of changing anything. That's when I noticed that I have 1.7 GiB of free space.if it is safe can I add it to my / partiton. It is in between my NTFS partiton and my Extended Linux partition so I would have to change the start point of /.
View 8 Replies View RelatedHow can I figure out which programs are using up swap space? My current memory usage is 2.9GiB out of 3.0GiB used(and I though I had 4GB, I need to check into that) and 1.3Gib of swap used.
View 1 Replies View RelatedI have a linux server top reports about 9GB of swap used:But I cannot figure where's it use swap, some google results said that top - O commad follow by p will show swap usage by process. But as shown in the above image, taking a brief sum of the SWAP column shows that > 10GB of swap is used, so where does the 9GB figure for swap usage come from? Top reports that about 96492kb of ram is used by buffers. Is there anything I can do to utilize this, instead of using swap?
View 1 Replies View RelatedI am trying to edit a large bunch of files. Each file has four columns and I want to get rid of the first one, but in each line the number of the first column changes. the number in the first column ranges from 1 digit to 5. For example
1 aaaaa bbbbbb ccccc
23 aaaaa bbbbbb ccccc
15343 aaaaa bbbbbb ccccc
and the desired format would be
aaaaa bbbbbb ccccc
aaaaa bbbbbb ccccc
aaaaa bbbbbb ccccc
We have recently built some RAC (OS:RHEL55) servers and after the Oracle guys have installed their application, somehow the directory / is using the maximum space. I contacted the Oracle team & they say that their RAC installation doesn't create any files in the / directory. This is the o/p of '/' directory file system:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/datavg-vol2 498M 382M 62M 88% /
Also, when I checked the file sizes, I found that the following files were taking more space:
/etc/selinux/targeted/modules/active/
-rw------ 1 root root 17M Nov1 base.linked
[code].....
I don't know what these files are doing there, when I did a cat and cheked, I found the files containing this data:
nf_tre--
stem_dbusd_var_run_t...and some stuff like this Unable to decide whether or not to remove these files. Also, is there any way to find out what files are taking more space and whether they can be deleted or not? in order to free up some space in the / direcoty. As there are 10 RACs that we've build, I got to do something to fix this for all of the 10 servers.
I have a Phenom II X4 955 box running 8G RAM. Now I'm planning building a Phenom II X6 box running 16G RAM. But the 4G module/stick is very expensive, not easy to find. However most mobo can take max 4 sticks. I can't find mobo board on market except server taking 8 sticks.
View 9 Replies View RelatedI am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
View 2 Replies View RelatedI want to find all users shown in the /home/ directory whose disk consumption is more than 500MB. The following command works as expected.
cd /home/ && du */ -hs
68K ajay/
902M john/
250M websites/
From the above example, only 902M john/ should be returned.
How can I make the find command output the same results?
Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?
1. How can we change it? (just changing value of PAGE_OFFSET is okay?)
2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?
I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"
View 1 Replies View Relatedso im following these directions
mplayer -ao null -loop 0 -ss 0:0:33 -endpos 2 medianame.avi
mplayer -ao null -ss 0:6:26 -endpos 3 medianame.avi -vo jpeg:outdir=animated_gifcd
when i put in a movie that say has one name like "christmas.avi" it works fine, but if i put in a name like "dead space aftermath.avi" i get error messages saying that it can find "dead", cant find "space" and cant find "aftermath". how to fix this? I made sure to type everything correctly.
I have Ubuntu 9.10 installed using wupi inside windowsI just found about these files now, tried every possible way to delete the, including terminal commands mentioned here with no luck at allTake a look at these files in the screen shot here:http://img717.imageshack.us/img717/4169/badfiles.pngthey are totally un renamable or deletable, I tried even to login to windows and use unloaker and other utilities with no success at all
View 9 Replies View Related