![]() |
| |||||||||||||||||
|
Broadband - Exchange Exchange and a Global Mailbox Folder Internal Email Address Options when a Staff Member Prerequisites for Exchange Switching From POP3 |
Author: Simon Butler, Exchange MVP, MCSE Last Page Review: 30/01/2008 Among some Exchange administrators there is some confusion of the use of disk space. Usually when an administrator comes in one morning to find that the server has died because it has run of our disk space. There are four main types of files that can grow on an Exchange server.
On Exchange 2000 you can also include the bad mail files. Identifying the file use In order to work out where the disk space has gone, you need to identify the file types. A good first option is to use a tool which will analyse the disk space and tell you what folders have the most data in them. Use something like TreeSize for this. (Download). Once you know where the space is being used up, you can look to see what they are. Exchange Database Files Exchange database files are made up of two files, which should be treated as one - the stm file and edb file. On a default installation of Exchange 2003 and an installation of Exchange 2007 with public folder support you will have two file of each type. The files priv.edb and priv.stm are the mailboxes. The files pub.edb and pub.stm are your public and system folders. Do nothing with those files while Exchange is running. Message Tracking Logs Message tracking logs are a lot of every message that goes through the server. They only log the date time, sender and recipient, plus if you have enabled it, the subject. You can see if you have message tracking enabled by looking on the Properties of the Exchange server in ESM. Message tracking is on the first tab. Message tracking logs can be set to clean themselves up - a good idea is to keep 30 days of logs. However if you need to, you can delete the tracking logs. Web Access Log Files If your site is heavy user or web services, such as Outlook Web Access, RPC over HTTPS, Exchange ActiveSync then you will quickly clock up web logs. These are standard IIS logs and therefore can be treated as such. The default location for them is C:\Windows\System32\Logfiles. For the default web site it will be a folder named W3SVC1. The files in that folder can be deleted without any issues, no services need to be stopped. However you may wish to keep the last month or so in case you need to refer to them in the future. Bad Mail Exchange 2000 introduced the concept of Badmail - which is a directory that stores all of your bad mail email messages that generated a Non Delivery Report. Badmail functionality was switched off by default from Exchange 2003 Sp1 and higher - and for most administrators there is no need to enable the feature. Microsoft have bad mail management scripts available to download here: http://www.microsoft.com/downloads/details.aspx?familyid=782aaf0f-6239-40ad-adda-97863d852ff7&displaylang=en Exchange Transaction Logs Exchange transaction logs are the most common cause of loss of disk space use, as they are not flushed unless there is a successful backup. After a backup is successful the transaction logs are marked as committed and flushed. If a backup fails for some reason then you can get a rapid build up of the logs. The transaction logs are a log of everything the Exchange server has done since the last backup. Transaction log files are easily identified as they are always the same size - 5120kb in Exchange 2003 and older and 1024kb in Exchange 2007. Do NOT delete these files manually. If you are seeing a lot of transaction log build up, then you should first check your backups to see that they are working correctly. If you are using a third party backup tool to backup Exchange and it doesn't seem to be working correctly, then as a quick and dirty method to flush the logs, use ntbackup that is built in to Windows on the Exchange server to backup Exchange. This will flush the logs. A rapid build up of transaction logs can also be an indication of a problem with your email - an email loop or the server is being abused by a spammer. This should be investigated as well, particularly if the backup was successful and the transaction logs are all timed after the backup has completed. If you need to create space quickly, then transaction logs will compress very easily with little performance impact. Do NOT compress the entire directory, as this can cause problems. When you are compressing the files, make sure that you only select the transaction logs - not the database files that may be in the same folder, nor any other files that are in the folder that are not 5120kb in size. Do not compress the current log file either, as that will have a performance impact on the server. If you do need to manually delete the files, or you have reason to believe that Exchange isn't flushing the logs files correctly after a backup and there are committed log files still there, then you should review this KB article: http://support.microsoft.com/default.aspx?kbid=240145 Questions Q: How can I tell when the last successful backup was taken? Q: I backup our server using Ghost, True Image or other disk image based system, but the transaction logs don't flush. Q: Why shouldn't I simply enable circular logging to get rid of the transaction logs? Q: Can I move the database and/or transaction logs to another drive? Q: Can other things take up a lot of space? | |||||||||||||||||
| Last Page Update: 30/01/2008 |
Back to the Top Broadband - Exchange - Login Scripts - Network Admin - Outlook - Windows Mobile - Windows © Amset IT Solutions Ltd. 1998 - 2008. All rights reserved. Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions. All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned on this site. This site is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given. | |||||||||||||||||