Solved

Slowly running out of room on our Windows 2000 Server

Posted on 2004-08-24
16
242 Views
Last Modified: 2010-04-03
Hi all. We are slowly running out of room on the system (root) partition on one of our servers. Yesterday we had about 450mb's of free space on our system partition, but today we have only 415. This server handles SQL, Exchange, and is our DC.

I scanned for viruses and trojans using two different virus scanners, but found nothing. Our Exchange database is on another partition. SQL databases are also stored on another partition. My only good guess is that we're logging too much and that log files are clogging our hard drive. I cleaned some logs out not too long ago, but the space gained by deleting those files didn't last long.

This slow but steady loss of free space will bring this server to its knees very shortly if I don't do something about this.

If it is log files, where do I go to delete the ones we don't need (I can decide how far back we need log files to go if I just know where to find all of them). Also, I already tried deleting all .tmp files, but that only produced a gain of 2mb. What am I missing here?
0
Comment
Question by:mckeough
  • 9
  • 6
16 Comments
 
LVL 15

Accepted Solution

by:
Yan_west earned 500 total points
ID: 11883132
1st, if your exchange is running on your C drive, be sure to delete your badmail directory ( \exchsvr\mailroob\svc 1\badmail)
Then, delete your smtp Log up to the date you want.. it'S under winnt\system32\logfiles\smtpsvc1..

This should clear you alot of space..
0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11883166
Also, be sure that you have an exchange aware backup that is running to remove the exchange transaction log..  under \exchsvr\mdbdata.. these are supposed to get removed automaticly by your backup. Do not delete them by yourself. If they stay there. you will eventually have a problem.

Exchange aware backup = arcserve/Backup exec with Exchange agent running on the exchange server.
0
 

Author Comment

by:mckeough
ID: 11883259
Should I delete the Badmail folder, or just the contents? There is quite a bit in there by the way. I think that's the problem. I'll double-check my backups, but I'm pretty sure Veritas is behaving itself.
0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11883268
Delete just the content.. the folder has to stay there.. but it is safe to delete it.
0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11883273
(safe to delete the content :) )
0
 

Author Comment

by:mckeough
ID: 11883277
OK. Thanks.
0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11883288
BTW, my badmail folder eats up 200 Megs/week..
0
 

Author Comment

by:mckeough
ID: 11883328
OK. Yeah, mine is about 253 megs right now with about 43,500 items in there. I think you hit the jackpot. Is there a way to automatically clear this folder out?

Also, any other log files I should keep an eye on?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 15

Expert Comment

by:Yan_west
ID: 11883343
You can make a batch file that delete the content of this specific folder, and add it in the task scheduler, and run it once/day..
0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11883354
I would delete the smtp logs too.. I keep 6 months, but it's up to you to decide how long you wanna keep. It depends on your organisation policy.
0
 

Author Comment

by:mckeough
ID: 11883453
By the way, what exactly is the badmail folder? Is it where all undeliverable mail goes or something like that?

I'll give you another 250 points if you can tell me how to make that batch file, or point me to a website that will tell me how.

0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11884085
Ok, here we go.. the badmail folder is all undeliverable mail that end up in your exchange server.. this mail was sent to
a- Non existant people
b- old address that arent in your organisation anymore (old employees, etc...)

Sometimes, spam servers send email to random addresses for a domain, so it will try sending something to jack@yourdomain.com even if it doesnt exist..

to create  a batch file:

Type this into notepad

del c:\<insert badmail directory>\*.* /q
exit

and save it as badmail.bat anywhere on your system.

then, go to start - settings - control pannel, and click on scheduled task. click on add scheduled task

it should start a wizard, click next. when it ask for a program, click browse, and go and get your badmail.bat batchfile. click next.
click on "perform this task daily", click next. set the start time, and click on perform this task every day, and set start date. Click next. Then enter your username credentials.. (so that it can run the batch file even if you are not logued in).

Then click finish.

0
 

Author Comment

by:mckeough
ID: 11884217
Sweet. Thanks!
0
 
LVL 15

Expert Comment

by:Yan_west
ID: 11884225
your welcome, don't forget your additional 250 pts :)
0
 

Expert Comment

by:NicIT7
ID: 11888105
Just a quick one, make sure your pagefiler is refreshing, not just adding and adding.
0
 

Author Comment

by:mckeough
ID: 11891503
I have it set at 1.5 gigs. Good point though, that was one of the first things I looked at. Thanks for your comment! :-)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A bootable USB key can be very handy now-a-days. My favorite USB key consists of our Windows 7 image, network card drivers (to connect up to a Ghost server), the latest BIOS updates for all of our PCs and CopyWipe (to erase a retired PC) Creating…
How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now