We help IT Professionals succeed at work.

C: drive free space keeps shrinking on Excange 2016 CU1

We have two Exchange 2016 CU1 servers in DAG.   C: drive free space keeps shrinking on both servers. I have extended the 40 GB space and after 4 to 6 days now only 9 GB is left and almost 30 GB space has been consumed.

The mailbox database and database logs folders are on other separate drives. Only Exchange is installed in C drive.  Can you please guide me how I can cater this case? if it is normal then please let me know what kind of logs consuming this space repidly.
Comment
Watch Question

Dr. KlahnPrincipal Software Engineer
CERTIFIED EXPERT

Commented:
Well, first you need to find out what is using up the space, then you can decide how to address it.  WinDirStat would be a good tool to start looking around to see where the space is going.  

https://windirstat.net/

Personally I prefer OverDisk, but it is getting to be rather long in the tooth now and may not work on 64-bit systems.

Overdisk in use
Find the huge directory, then find the huge files, once you know that then we can give you advice on how to proceed.
Sam Simon NasserIT Support Professional
CERTIFIED EXPERT

Commented:
try glarysoft cleaner https://www.glarysoft.com/disk-cleaner/ for free
maybe their is windows update or other software that is eating the drive.
Dr. KlahnPrincipal Software Engineer
CERTIFIED EXPERT
Commented:
I *very strongly* advise against using any "system optimizer" or "disk cleaner" on a server, even if there is a full backup available.  A shotgun solution on a server should remain as the very last resort; too many things can go wrong.

Discover what the specific problem is first, then address it.
MASEE Solution Guide - Technical Dept Head
CERTIFIED EXPERT
Most Valuable Expert 2017
Commented:
Hi Muhammed Asif
What is your free size as of now?
Please read my comment on this how to move logs
https://www.experts-exchange.com/questions/29079465/How-do-I-change-the-default-drive-where-new-exchange-2016-database-are-created.html#a42441990
Muhammad AsifSenior Solutions Architect
CERTIFIED EXPERT

Author

Commented:
Hi Everyone,

Thanks to all for comments.  I have managed to find the problem. The Kaspersky antivirus is installed on the server and it is generating to much logs.

BTW, what is the normal size of IIS logs which are generated by Exchange? Can you please let me know the directories where Exchange generates logs of like active sync , ews and other IIS logs?
System Engineer
CERTIFIED EXPERT
Commented:
Hi,

those logs are usually on C:\inetpub\logs\LogFiles. On my Exchange 2013, with 50 users, I get around 1Gb per day.
Created a script that deletes them after 1 month, so they don't use to much space.

Regards,
Ivan.
Muhammad AsifSenior Solutions Architect
CERTIFIED EXPERT

Author

Commented:
Hi Ivan,

Thanks for your reply . Can you please share the script here so we may use it as well? Moreover, can we use the same script for Exchange 2016 as well on Windows server 2016?
IvanSystem Engineer
CERTIFIED EXPERT
Commented:
Hi,

here is a simple vbscript that I use. Modify location of logs and days that you want to keep logs after script is run. In this case logs that are up to 30 days old are not deleted.
Save text as vbscript, and configure scheduled task to run when you want it, like once per month or more..

sLogFolder = "c:\inetpub\logs\LogFiles"
iMaxAge = 30   'in days
Set objFSO = CreateObject("Scripting.FileSystemObject")
set colFolder = objFSO.GetFolder(sLogFolder)
For Each colSubfolder in colFolder.SubFolders
        Set objFolder = objFSO.GetFolder(colSubfolder.Path)
        Set colFiles = objFolder.Files
        For Each objFile in colFiles
                iFileAge = now-objFile.DateCreated
                if iFileAge > (iMaxAge+1)  then
                        objFSO.deletefile objFile, True
                end if
        Next
Next
MASEE Solution Guide - Technical Dept Head
CERTIFIED EXPERT
Most Valuable Expert 2017
Commented:
BTW you can change the IIS logging path.
IIS.jpg
This will help you configure IIS log file path, IIS log period, Local time filename and rollover configuration.
https://gallery.technet.microsoft.com/office/Change-IIS-Log-File-e4bd3f4b

Hope this helps.

MAS
COD ITIT Coordinator

Commented:
If it's the same drive as your mailbox data store I would check the log files. Log files build up and will take up space.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.