Showing posts with label disk space. Show all posts
Showing posts with label disk space. Show all posts

27 December 2018

Save disk space - Compact - NTFS compress your folders

In the ever ongoing search for disk space on Exchange servers it is possible to compress certain folders with NTFS compression.
You could do this through the file explorer and click yourself silly, or you can turn to PowerShell.
Actually it's just an old command prompt program, but we'll use it in PowerShell.

Now first things first:

DO NOT USE THIS ON YOUR MAILBOXDATABASES!!!

This may seem like a no brainer but I don't want to hear that someone used it because I didn't warn them.
The only thing you can safely use this for is on log files, temp files, etl files and blg files.
If you've read my previous blog post about cleaning up certain logging folders used by exchange (which can be found here:
https://vanbrenk.blogspot.com/2018/02/clean-iis-log-files-blg-and-etl-files.html)

Here are the directories you can compress safely:
As always with scripts/code found on the internet, test it yourself on a test environment.

.\compact.exe /C /S /A /I "C:\Program Files\Microsoft\Exchange Server\V15\Logging\*"                        
.\compact.exe /C /S /A /I "C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces\*"                        
.\compact.exe /C /S /A /I "C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs\*"                        
.\compact.exe /C /S /A /I "C:\Program Files\Microsoft\Exchange Server\V15\FIP-FS\Data\ProgramLogArchive\*"                        
.\compact.exe /C /S /A /I "C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\FrontEnd\Connectivity\*"                        
.\compact.exe /C /S /A /I "C:\Windows\System32\LogFiles\HTTPERR\*"

24 May 2018

Clean up Exchange 2013 files and folders - Reclaim disk space

After installing CU20 last night I started the day cleaning up the mess left by the installation and by running Exchange itself. As you all know Exchange likes disk space, the more you throw at it the more it takes, it likes disk space almost as much as it does memory :-).

After coming across the V15\ClientAccess\Owa folder I noticed that it had a lot of folders and files in it with older versions like
  • 15.0.1210.2
  • 15.0.1210.6
  • 15.0.1293.2
  • 15.0.1293.4
And so on...
Now after some reading up I couldn't find a definitive answer on if I could savely delete those folders.
So my advise, when in doubt, don't delete!
This comes from my experience from once I deleted the content in the Inetpub\Temp directory, after witch IIS didn't work anymore.

The list below is what I know and found to be safe to delete:
Not that you should logging but you could.
The better solution would be to compress the logging directories, and the best is to add disk space ;-)

C:\Program Files\Microsoft\Exchange Server\V15\Logging\
C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces\
C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs
C:\Program Files\Microsoft\Exchange Server\V15\FIP-FS\Data\ProgramLogArchive\
C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\FrontEnd\Connectivity 

C:\Windows\Temp
C:\Users\%username%\AppData\Local\Temp
C:\Windows\System32\LogFiles
C:\inetpub\logs


Happy disk space reclaiming.