• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 657
  • Last Modified:

Exchange mail server running out of room

I have an HP server with 135 GB of space for my mail server and I am running out of room.  The directory C:\Program Files\Exchsrvr alone is taking up 122 GB.  

Name                         Size  
Mdbdata            128,007,600 KB    
Pos-sbs.log            300,265 KB        
Bin                    158,551 KB        
Exchweb                 47,780 KB      
Res                     22,223 KB        
Oma                      3,483 KB      
Mtadata                  3,036 KB      
Srsdata                  2,162 KB      
Schema                     210 KB    
Address                    366 KB  

1. My exchange mail files are huge - they grew large months ago and now that we really have about 20GB of mail stored they have never shrunk.  I assume the only way to get the files back to smaller sizes is to run an offline defrag of the mailbox?

2. There are a bunch of log files in C:\Program Files\Exchsrvr\MDBDATA - Can I just delete all those?  They are named E0018409.log and all are 5,120KB.  Also can I stop the mail server from creating those?

3. The C:\Program Files\Exchsrvr\POS-SBS.log is full of files, can I delete all those and have the mail server stop creating them?  They are named 20091217.log and some are as big as 50 MB.

Anything else I can delete?  Thanks.


untitled.bmp
0
kim2vp
Asked:
kim2vp
  • 26
  • 23
  • 4
  • +1
2 Solutions
 
CaptainGibletsCommented:
I would recomend putting another drive in your exchange server right clicking on the "first storage group" going in to properties and changing the path of the log files, exchange will then move the log files for you, you can also do this with the stm file to seperate them on to different drives to free up space.

You can also right click the server name and go in to properties and there is an option for how long to keep the log files for, i think by default its about 30 days? you can change it lower and they will be automatically deleted.



0
 
JluchtCommented:
I agree with Giblets. My situation allows me to do something a little different.  I actually have 3 mail databases.  I have separated each company into its own mail database all on different drives.  This allows room to grow and keep the log files for 45 days.  I also keep a daily copy of the mail store on each drive as a fail safe to eliminate downtime if a drive array were to fail.  

If you can move some mailboxes around to separate the mail stores then it would free up some space.
0
 
kim2vpAuthor Commented:
I presume you mean a physical drive, or can I just hook up a USB drive for this purpose?  Thanks.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
CaptainGibletsCommented:
I have used an external hard drive when recovering data from exchange etc but i wouldnt recomend using an external drive in a live enviorment but it is possible.

If you need to save more space you can also disable message tracking if you are that low on space.
0
 
Glen KnightCommented:
You cannot store an exchange database on removeable media.

I would suggest looking at your logfiles first, how many of te log files do you have and what date is the oldest one?  How often are you performing full backups if your information store sing an Exchange Aware backup product? For example the built in backup product for Windows?

Check your event log for event 1221 to see how much whitespace is in the database, if there isn't any then an offline defrag is pretty pointless.

Is physical storage space an issue?

What are the size if the EDB & STM files in the MDBDATA folder?
0
 
Glen KnightCommented:
Sorry didn't see the screen shot for some reason it didn't come up until I posted my comment.

There are log files there from a few days ago which would indicate your not backing up the information store every day?
0
 
Glen KnightCommented:
You also have message tracking enabled how far does this go back?
See here for help configuring it: http://www.msexchange.org/tutorials/Exchange-2003-Message-Tracking-Logging.html

if your not going to use it turn it off and delete the logs you can turn it on again if you ever have a problem and need to use it
0
 
Glen KnightCommented:
Just for note SBS does not support more than 1 datastore neither does Exchange Standard.
0
 
JluchtCommented:
Make sure its a physical drive or you can use a SAN Or NAS.  A USB or Even Firewire drive is a No No.

How ever... funny story..  Just recently I walked into a another companies server room and seen a 32gb jump drive plugged in to the front of a server.  I asked what that was for, he replied, "we ran our of room on our exchange server..."  I didn't inquire further.
0
 
kim2vpAuthor Commented:
I'm backing up each night, but I'm using iDrive so it does not think I am backing it up.  I was using Veritas but it kept crashing the SQL so I am working on moving to something else.  
0
 
kim2vpAuthor Commented:
I assume it'll take me a couple of days to buy a drive and add it to the server, I don't have anything handy.  I do have a USB backup drive I can add right away and move the log files.  I need to do something soon as I am literally out of room, I have less than 100mb right now and a few more log files and I'll be gone.  Can I just delete those log files if I don't need them?
0
 
kim2vpAuthor Commented:
Also I have a file server with over 200 GB free.  Can I just tell exchange to save the log files there?  
0
 
Glen KnightCommented:
You cannot move an exchange database to a removeable drive it will not let you!

Also look at the properties of the store in Exchange System Manager what is the deleted items set to?

Set it to 0 and then ask your users to delete/archive some mail this will then create whitespace for you and you can then perform an offline defrag of the database to recover the whitespace into physical space as per: http://www.msexchange.org/tutorials/Exchange-ISINTEG-ESEUTIL.html
0
 
CaptainGibletsCommented:
i wouldnt advise just deleting them, as if your exchange crashes it can be left in a dirty shutdown state and not mount again and you will need log files to restore it to a clean shutdown state.

i would change the settings within exchange and let it delete the files.
0
 
Glen KnightCommented:
Disable message tracking then delete the logfiles in POS-SBS.log

then check your retention periods.
0
 
Glen KnightCommented:
DO NOT DELETE THE LOGFILES IN THE MDBDATA FOLDER!!!!

Please follow my instructions and you can have this problem resolved quite quickly!
0
 
Glen KnightCommented:
Backup the EXchange Information Store using NTBACKUP and make sure you do a full backup, this will flush the logs properly!
0
 
Glen KnightCommented:
Also check for event 1221 in the event viewer what does it say?
0
 
kim2vpAuthor Commented:
Where should I back it up to?  Can I use a USB drive or back it up to the file server?  Can people use the mail server while it is backing up?

>Backup the EXchange Information Store using NTBACKUP and make sure you do a full backup, this will flush the logs properly!
0
 
Glen KnightCommented:
Do you have a tape you can backup to?
It should take the backup whilst online.
0
 
kim2vpAuthor Commented:
The tape backup is connected to the file server, so no I really don't have a tape backup to use for this.
0
 
Glen KnightCommented:
Are you can backup to USB
0
 
Glen KnightCommented:
How do you normally back the server up?
0
 
kim2vpAuthor Commented:
I use IDrive now for both the file and the mail server.  I was using veritas but a windows update caused it to crash the SQL and so I'm researching a new backup method using a hybrid of online and physical backups.
0
 
Glen KnightCommented:
Whatever happens the information store need to have a full backup performed by an exchange aware backup product.

You can use NTBACKUP which is included with Windows.
Veritas (symantec as it's now called) is very good and it's what I use on all my deployments.

I suggest you use NTBACKUP for now as per: http://www.petri.co.il/backup_exchange_2000_2003_with_ntbackup.htm
0
 
Glen KnightCommented:
Forgot to say you can actually do it from your other server.

Do this then look see how many logfiles there are in the MDBDATA folder and report back.
0
 
kim2vpAuthor Commented:
I tried running the backup and saving the backup file to the File Server.  I got this error:

Backup Status
Operation: Backup
Active backup destination: File
Media name: "pos-sbs.bkf created 12/17/2009 at 12:52 PM"

Volume shadow copy creation: Attempt 1.
Backup of "POS-SBS\Microsoft Information Store\First Storage Group"
Backup set #1 on media #1
Backup description: "Set created 12/17/2009 at 12:52 PM"
Media name: "pos-sbs.bkf created 12/17/2009 at 12:52 PM"

Backup Type: Normal

Backup started on 12/17/2009 at 12:52 PM.

Error: The device reported an error on a request to write data to media.
Error reported: Unknown error.
There may be a hardware or media problem.
Please check the system event log for relevant failures.
The operation was ended.
Backup completed on 12/17/2009 at 1:03 PM.
Directories: 0
Files: 1
Bytes: 1,484,027,680
Time:  7 minutes and  44 seconds

Error: POS-SBS\Microsoft Information Store\First Storage Group is not a valid drive, or you do not have access.


----------------------

The operation did not successfully complete.

----------------------

0
 
kim2vpAuthor Commented:
I'm hooking up a USB drive and will try the backup again.
0
 
kim2vpAuthor Commented:
Also here is my 1221 entry:

Event Type:      Information
Event Source:      MSExchangeIS Public Store
Event Category:      General
Event ID:      1221
Date:            12/17/2009
Time:            12:03:56 AM
User:            N/A
Computer:      POS-SBS
Description:
The database "First Storage Group\Public Folder Store (POS-SBS)" has 3 megabytes of free space after online defragmentation has terminated.

For more information, click http://www.microsoft.com/contentredirect.asp.
0
 
Glen KnightCommented:
That's the public folder there should be another one for the private store?
0
 
JluchtCommented:
Dump your 50GB of log files onto that USB drive for retention purposes.  You do need those logs if that un-mounts clean for any reason as demazter said.  This will get you buy until you can install the other drive.
0
 
JluchtCommented:
Sorry.. i meant dirty.
0
 
Glen KnightCommented:
There should be no need to dump anything out to USB drive, once the backup has been run the logs will be flushed.
Then we can look at the retention periods etc.
0
 
kim2vpAuthor Commented:
Here is the other 1221 error:

Event Type:      Information
Event Source:      MSExchangeIS Mailbox Store
Event Category:      General
Event ID:      1221
Date:            12/17/2009
Time:            3:05:29 AM
User:            N/A
Computer:      POS-SBS
Description:
The database "First Storage Group\Mailbox Store (POS-SBS)" has 28868 megabytes of free space after online defragmentation has terminated.

For more information, click http://www.microsoft.com/contentredirect.asp.
0
 
Glen KnightCommented:
OK so there is 28GB of free space in the file so running an offline defrag will recover that space.
0
 
Glen KnightCommented:
How is the backup going?
0
 
Glen KnightCommented:
Once you have a backup of the Information store you can run an offline defrag to recover the 28GB of whitespace as per: http://www.msexchange.org/tutorials/Exchange-ISINTEG-ESEUTIL.html

Dismount the store then the command you need to run is:

ESEUTIL /D "C:\Program Files\Exchsrvr\MDBDATA\priv1.edb"

Make sure you have a backup/copy of the information store before you do this and set it off overnight as it will take a while to run.
0
 
kim2vpAuthor Commented:
The backup was running fine but now it has frozen up and the whole server is non-responsive so I will have to manually reboot it.
0
 
kim2vpAuthor Commented:
By the time I got to the server room to reboot it, it was already restarting itself.
0
 
kim2vpAuthor Commented:
I have this error:

Event Type:      Error
Event Source:      MSExchangeSA
Event Category:      General
Event ID:      9317
Date:            12/17/2009
Time:            4:41:45 PM
User:            N/A
Computer:      POS-SBS
Description:
Failed to register Service Principal Name for exchangeMDB; error code was c007200e.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
0
 
kim2vpAuthor Commented:
and this one:

Event Type:      Error
Event Source:      MSExchangeSA
Event Category:      General
Event ID:      9317
Date:            12/17/2009
Time:            4:41:45 PM
User:            N/A
Computer:      POS-SBS
Description:
Failed to register Service Principal Name for exchangeRFR; error code was c007200e.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
0
 
kim2vpAuthor Commented:
Event Type:      Error
Event Source:      Disk
Event Category:      None
Event ID:      7
Date:            12/17/2009
Time:            1:27:13 PM
User:            N/A
Computer:      POS-SBS
Description:
The device, \Device\Harddisk1, has a bad block.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 04 00 68 00 01 00 ba 00   ..h...º.
0008: 00 00 00 00 07 00 04 c0   .......À
0010: 00 01 00 00 9c 00 00 c0   ....œ..À
0018: 00 00 00 00 00 00 00 00   ........
0020: 00 e2 52 7e 4a 00 00 00   .âR~J...
0028: f1 0d 9f 04 00 00 00 00   ñ.Ÿ.....
0030: ff ff ff ff 00 00 00 00   ÿÿÿÿ....
0038: 40 00 00 84 02 00 00 00   @..„....
0040: 00 20 0a 12 80 03 20 00   . ..€. .
0048: 00 00 00 00 0a 00 00 00   ........
0050: f8 75 08 00 70 f5 10 88   øu..põ.ˆ
0058: 00 00 00 00 10 14 e6 88   ......æˆ
0060: 00 00 00 00 71 29 3f 25   ....q)?%
0068: 2a 00 25 3f 29 71 00 00   *.%?)q..
0070: 01 00 00 00 00 00 00 00   ........
0078: 70 00 03 00 00 00 00 0a   p.......
0080: 00 00 00 00 03 00 00 00   ........
0088: 00 00 00 00 00 00 00 00   ........
0
 
kim2vpAuthor Commented:
I presume HardDisk1 is my backup drive I just installed.
0
 
kim2vpAuthor Commented:
Event Type:      Error
Event Source:      HP System
Event Category:      System Power
Event ID:      1
Date:            12/17/2009
Time:            4:42:23 PM
User:            N/A
Computer:      POS-SBS
Description:
The system has rebooted from a Automatic Server Recovery (ASR) event.
 
User Action
Determine the nature of the Automatic Server Recovery (ASR) event, and take corrective action.
 
WBEM Indication Properties
AlertingElementFormat: 0 0 (Unknown)
AlertType: 5 0x5 (Device Alert)
Description: "The system has rebooted from a Automatic Server Recovery (ASR) event."
EventCategory: 16 0x10 (System Power)
EventID: "1"
ImpactedDomain: 4 0x4 (System)
IndicationIdentifier: "{6021AB11-A1EB-4AFD-9676-2AAC449DF4D2}"
IndicationTime: "20091217164220.251000-300"
NetworkAddresses[0]: "192.168.207.1"
OSType: 69 0x45 (Microsoft Windows Server 2003)
OSVersion: "5.2.3790"
PerceivedSeverity: 5 0x5 (Major)
ProbableCause: 111 0x6f (Timeout)
ProbableCauseDescription: "ASR Reboot Occurred"
ProviderName: "HP Recovery"
ProviderVersion: "2.1.0.0"
RecommendedActions[0]: "Determine the nature of the Automatic Server Recovery (ASR) event, and take corrective action."
Summary: "ASR reboot occurred"
SystemCreationClassName: "HP_WinComputerSystem"
SystemFirmwareVersion[0]: "2005.08.19"
SystemFirmwareVersion[1]: "2005.08.19"
SystemGUID: "31303833-3337-5355-4d36-303530323154"
SystemModel: "ProLiant ML350 G4p"
SystemName: "POS-SBS.pos.local"
SystemProductID: "380173-001"
SystemSerialNumber: "USM605021T"
TIME_CREATED: 129055597436550827 0x1ca7f61d17b3eab
 
For more information, please contact HP Support.
0
 
Glen KnightCommented:
It looks tht way.
Can you follow the guide I posted to back the store up from another server.
0
 
kim2vpAuthor Commented:
OK so I should just toss out this drive and try another one?

I may just go out tonight and get a brand new backup drive.
0
 
Glen KnightCommented:
If that's the only thing that's changed it's fair to assume there is something wrong with the drive.

For now back the store up using NTBackup from another server.

This will then allow you to flush the logs and have a backup before you run ESEUTIL
0
 
kim2vpAuthor Commented:
when I'm at the other server I don't see a way to backup the mail server.
0
 
Glen KnightCommented:
You will need to install the exchange management tools on the other server see here: http://www.petri.co.il/backup_exchange_from_non_exchange_server.htm
0
 
Glen KnightCommented:
Also see here for install instructions: http://technet.microsoft.com/en-us/library/aa996691(EXCHG.65).aspx

the other issue you are going to come across is space to run ESEUTIL so you may have to manually copy the EDB to the other server after it's been backed up and run the ESEUTIL from there.

Just make sure you follow the petri guide.
0
 
Glen KnightCommented:
How did you get on?
0
 
kim2vpAuthor Commented:
I finally found a working USB hard drive, hooked it up and ran the backup directly last night.  It finished with no errors and now I have 43GB of free space on this server.  Thanks so much for all the help!
0
 
kim2vpAuthor Commented:
So now that I have my space back, assuming I go ahead and do a nightly backup using an exchange aware backup method I shouldn't need to put another drive in the server, should I?
0
 
Glen KnightCommented:
No there should be no need to put another drive in.
Just make site you are doing the correct backups and you will be fine.
0
 
kim2vpAuthor Commented:
Thanks again.
0
 
Glen KnightCommented:
That's why were here for :-)
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 26
  • 23
  • 4
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now