Ubuntu Servers :: Deleted Log Files Taking Up Huge Disk Space?

Sep 7, 2010

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]....

View 9 Replies


ADVERTISEMENT

Ubuntu :: Deleted Photorec Backup Files Taking Up Disk Space?

Mar 13, 2011

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?

View 8 Replies View Related

Ubuntu :: Determined That A Huge Amount Of Disk Space Is Being Taken Up By Files In /var/log/?

May 18, 2010

I examined the problem, and determined that a huge amount of disk space is being taken up by files in /var/log/ The following files:

Code:
/var/log/messages.1
/var/log/kern.log.1
/var/log/daemon.log.1
/var/log/messages
/var/log/kern.log
/var/log/daemon.log
/var/log/syslog

are all over 1 GB in size. The largest is 18 GB. Together, they total 48.3 GB. I restarted the system, forcing a fsck.

View 3 Replies View Related

Ubuntu :: 10.4 Making HUGE Log Files--running Out Of Disk Space?

Feb 2, 2011

I started getting errors about running out of disk space in root this morning. I hunted up what's taking all the space; var/log is 39GB (Ubuntu is installed on a 50G partition.) It's specific files that live in that directory, not subfolders. The files are:

kern.log = 11.6 GB
messages (plain text file) = 11.4 GB
kern.log.1 = 6.1 GB

[code]...

View 9 Replies View Related

General :: Disk Full Deleted Files But No Space Available

May 3, 2010

My main storage partition got full, so I'm deleting files to make room. However, df -k keeps reporting no space available on that partition (/disk). Here's the output of the command several minutes apart while another process is deleting a 30G of space:What can I do to make the space available immediately?

View 4 Replies View Related

Ubuntu :: Deleted File Still There, Somewhere, Taking Up Space?

May 16, 2010

I 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]...

View 9 Replies View Related

Ubuntu :: Tried Playing DVD In Movie Player / It Froze Up / Huge Loss In Free Disk Space

Feb 28, 2010

I tried playing a DVD several times and each time, after opening in Movie Player on Ubuntu 9.10, it froze up, I forced quit and then I noticed a huge reduction in free disk space on my root (/) directory. Has this happened to anyone else?I figure I Movie Player probably saved some temp files somewhere on hard disk and wasn't able to clean them up since I had to force quit. Any thoughts about how to clean this up and take back that previously free space?

View 9 Replies View Related

Software :: Postfix - Cache - Logging - Taking Up All Disk Space - Limit / Turn Off?

Feb 22, 2010

I'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

View 1 Replies View Related

General :: Which Files Are Taking Space To Make The Partition 68% Used

Jun 8, 2011

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.

View 8 Replies View Related

General :: Find Which Files Are Suddenly Taking Up The Space?

Jul 27, 2010

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?

View 17 Replies View Related

Ubuntu Installation :: Files Be Deleted On Hard Disk Containing Windows XP If Install 11.04?

Jul 4, 2011

When i try to install UBUNTU 11.04 it shows me the warning that there is no OS on my hard disk.But i have windows XP SP3 & UBUNTU 10.04 on my hard disk. Will all the files be deleted on my hard disk containing Windows XP if i install UBUNTU 11.04? How can i solve the problem?

View 3 Replies View Related

Ubuntu Servers :: Only Detecting 136.9GB Of Disk Space On Hyper-V?

Jul 28, 2011

We're trying to install Ubuntu Server 11.04 on Hyper-V so we can run FOG and image computers that way.

When it comes to partition/format the drive, Ubuntu is only detecting 136.9GB of disk space, even though I allocated 500GB for it to be able to use. I made the disk static, not dynamically expanding.

The Hyper-V host is running Windows Server 2008 R2 Datacenter.

I was going to use Virtualbox on that server since it plays nicer with Linux, but we already have Hyper-V established and you can't do both.

View 1 Replies View Related

Ubuntu :: Log Files Eating Hard Disk Space?

Jan 29, 2009

running ubuntu 8.10 amd64 on my HP intel 2.26ghz dual core processor, 320gb hdd and 4gb ram. My main problem is that when I dual booted ubuntu onto my laptop, I had vista already installed, so I only set aside 20GB of hard disk space for ubuntu, which seems like more than enough to me. What's going on is that it says I have used all my space and only have one GB left, when the only thing I have on my computer are word files and necessary installs like flash player, compiz, avant, etc.When trying to hunt down what was using all my space, first I checked out the disk usage analyzer (some pics from here in):theres my hdd with 1/19 gb remaining here's a breakdown of my home folder, showing that it's not using very much at allhere's my filesystem, now we can see that all the space is being used in the folder: /var

View 9 Replies View Related

General :: Low On Disk Space - Looking For Biggest Files?

Nov 10, 2010

I seem to be running low on disk space on my linux server. 'df' shows about 82% usage on a stock CentOS install with sendmail. I routinely delete old email directories, but for some reason, I stay pretty high in disk usage. Is there a fancy little bash script or something I could run that would find the biggest files and I could go get rid of them?

View 3 Replies View Related

General :: Bash - Compressing Files Despite Low Disk Space?

Jul 18, 2011

I use Linux. I coded a screenshot program some time ago and now I have 9 GIG of screenshots, 60000 JPEGs, most of them look pretty similar, and I have 300 MB of disk space remaining.

What are some good ways to start to compress batches of them (or all of them) in the background given the limited space? The problem with compressing the folder all at once is that I wouldn't have enough disk space for that. It seems the process needs to be broken down into chunks. So maybe something like: Get a list of all the files Add a chunk of the files (say, 20) to a compressed archive. Once it is done and saved successfully, delete the chunk of files

View 2 Replies View Related

Ubuntu Servers :: Hard Disk Half Full - System Says No Space Left

Jun 30, 2011

For our workgroup I set up a server which is basically 10.04.2 with kernel 2.6.32-32-server on a SSD and all the data on a RAID 5 consisting of 4 2TB hard disks, thus a maximum of 6TB space for data on the RAID. Having multiple users with different amounts of data from different scientific data source I set up an lvm on top of the RAID

--- Physical volume ---
PV Name /dev/sdb2
VG Name home-data
PV Size 5,45 TiB / not usable 3,00 MiB

[code]...

Here is the problem: The volume Genomes (or /genomes) is half full

sudo df -ah
/dev/mapper/home--data-Genomes
1,9T 850G 920G 49% /genomes

but the system states it as full whenever I try to add more data (tried cp and rsync). There is no quota set to the volume (I have quotas in place for users home folders. These are only for max amount of disk space, not max file number, and I am still able to move/add files elsewhere so there seems to be no interference).

View 9 Replies View Related

Ubuntu :: How Much Space Folder Actually Taking Up

Aug 29, 2010

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 Related

General :: Running DF Command - Huge Space Between Columns

Jul 13, 2011

I am running the command on a Mac but due to it being a generic unix command and a command line query.. I thought I can write on this forum.. I am running the command

Code:
df -h | grep '/dev/'
I get
Code:
/dev/disk0s2 389Gi 62Gi 327Gi 16% /
/dev/disk0s3 76Gi 24Gi 52Gi 32% /Volumes/Backup
/dev/disk3s2 500Gi 47Gi 453Gi 10% /Volumes/Misc
Note the huge space between the 1st and 2nd Column..

This is because currently I have some NAS drives mounted which are not showing due to grep. When they are not mounted. The output is fine with equal spaces between each column (like between col 2 and 3.. or 3 and 4). I want to do a (dare I say) sed or awk or something to reduce the space between 1st and 2nd col. So that it has space like between col 3 and 4.. or 2 and 3. This is because I am showing this output somewhere and because of the space its not showing up correctly.Also I hope the command will still work when the NAS drives (afp) are not mounted.. basically consistency. The spaces are not showing properly in the quote tag. Changed it to CODE tag.

View 12 Replies View Related

Ubuntu Security :: Permanently Delete "Deleted Files" From Hard Disk?

Feb 6, 2011

How do I erase my hard disk of "Deleted Files"?I mean how do I make "Deleted Files"-----> "Non Recoverable"?

View 3 Replies View Related

Ubuntu :: Volume Icon Taking Up The Space Of Two - Resize It Down?

Sep 13, 2010

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 Related

Ubuntu :: Taking Up Extra Space In Hard Drive?

Jan 9, 2011

How 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?

View 9 Replies View Related

Fedora Installation :: Vmlinuz Is Booting Into RAM And Taking Most Of The Space?

Sep 15, 2009

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?

View 1 Replies View Related

Server :: How To Block Animated GIFs From Taking Up Space

Nov 29, 2010

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 Related

General :: Why Is Used + Available Disk Space Always Less Than Total Disk Space

Feb 24, 2011

root@localhost:~ $ df /dev/sdb1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 1922858352 23247088 1801935664 2% /mnt/external/sdb1

[code]....

View 1 Replies View Related

Ubuntu Security :: .encryptfs Folder Is Taking Up So Much Space - Getting Notifications Every Time Log In

May 20, 2011

When 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 Related

General :: Widescreen Display On Rhel5 - Huge Black Space Both Left And Right Side Of The Monitor

Dec 15, 2009

I am a both rhel5 and fedora user.I can not configure my Samsung syncmaster 632nw monitor to display full screen at 1360X768.There is huge black space both left and right side of the monitor. I have tried many times to solve it but unable to do it.The max screen resolution is 1024*768 and minimum is 640*480.

Here is the xorg.conf file:

View 2 Replies View Related

Ubuntu :: Deleted Files On USB Drive Not Actually Deleted?

Jun 7, 2010

I searched the forum with various terms and didn't find anything, so my apologies if this is a common and/or newbie problem.It seems that when I have a USB driveplugged in to switch the files around, those that I delete are still taking up space. I first noticed it with a Chinese MP3 player and thought it was the player being crappy. I could still play all the songs that were supposedly gone. Today, I noticed it with a little thumb drive that I've had for years. I plugged it into my husband's computer running winXP, and the files showed up in a weird, unusable form. I was able to delete them for real.

View 4 Replies View Related

Ubuntu :: Wine / Rosetta Stone - "Cannot Create Needed Files Of Not Enough Disk Space"

Mar 27, 2010

Running ver 9.10 with Wine installed. Up untill about 2 mos ago Wine loaded 'Rosetta' ok. I tried last week and get Application Error. "Cannot create needed files of not enough disk space". I have over 35 gb unused space. I removed wine (purged) and re-installed -- still no good. It however works on my laptop that has same configuration (9.10)??

View 2 Replies View Related

Slackware :: Disk Space Lost- Root Partition Has Very Little Space Left

Jan 31, 2010

Today I was installing a lot of software since I'm just setting up my Slackware system again after a fresh install, and I realized that my root partition has very little space left.

Here is the output of df -h:


Code:

As you can see, I have a 20G (19G here for some reason) root partition, 8G /var, and 86G of /home. I thought this would be plenty since many recent recommendations for / are 10-15G. Now, though, 17G are used up for some reason! How is this possible? I thought a full slackware install only had about 4G of software! I don't have any music or movies or any crazy huge files that I know of, and those would be in my /home directory anyway. Is there any way I can see which files are taking up all this space?

If it's necessary to allocate more space to my / partition, is it still possible to boot up a GParted live Cd, shrink /home a bit, move some partitions to the right, and expand my root partition? I would REALLY prefer I don't have to reinstall since I just spent a ton of time setting up my system again, but if worst comes to worst ... :'-(

In case you're curious, here's my /etc/fstab:

Code:

View 14 Replies View Related

Hardware :: Reduced Disk Space / Use The Total Amount Of Space?

Aug 25, 2009

OS: RHEL AS 5 64-bit

HDD:300 GB Hardware mirror (HP blade bl460c)

While installing OS, in partition window after OS file system structure I've left 277 GB. But after installation it shows Size - 255GB and available disk space is 242 GB.

Isn't it weired? How can I use the total amount of space in Linux? I need the whole 277GB exactly. What should be my workaround?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved