1

I have VPS Hosting windows 2012 Server + MSSQL Server 40GB storage. I am running out of space and I don't want to upgrade the hosting to more expensive variant.

I have cleaned logs, temporary files, recycle bin. And it is not enough. I analyzed the space with TreeSize and I cannot find anything more to delete.

Despite of it Windows folder has 23 GB and I believe, there is a lot of ballast like spellcheckers for languages I don't need. Is there something large I can safely remove from default instalation?

4 Answers 4

2

you can follow the guide attached below to reduce the WinSXS space in Windows 2012 installation.

https://blogs.technet.com/b/askpfeplat/archive/2013/02/24/how-to-reduce-the-size-of-the-winsxs-directory-and-free-up-disk-space-on-windows-server-2012-using-features-on-demand.aspx

Read the whole article because it affects the way you install new features/roles in the server. But if your server is already configured you shouldn't have problems.

If you have MSSQL Database backups configured, check that they have the compression enabled: http://technet.microsoft.com/en-us/library/bb933863.aspx

Deduplication option like Gabrial suggests is another shot, but in my opinion is not the best solution for a system partition.

Regards!

1
  • Thank you very much, I will try reduce WinSXS. My user's data are mostly compressed and unique, I don't believe that deduplication can do this job. I have only express edition of MSSQL, so I can't use compression for backup. Anyway backups goes directly to Dropbox and then are removed and archived by another computer. Feb 23, 2014 at 12:27
1

Windows Server 2012 has a new feature called Data Deduplication which can be worth to try.

You can install this feature from Powershell as follows:

PS C:\> Import-Module ServerManager

PS C:\> Add-WindowsFeature -name FS-Data-Deduplication

PS C:\> Import-Module Deduplication

How Much Disk Space Can I Expect to Reclaim?

When you install the Data Deduplication role service on a server running Windows Server 2012, DDPEVAL.EXE is also installed in the C:\Windows\System32 folder as an additional command-line tool. DDPEVAL.EXE can be run against any local NTFS volumes or NTFS network shares to estimate the amount of disk space that can potentially be reclaimed by moving that data to a Windows Server 2012 NTFS volume with Data Deduplication enabled.

C:\> DDPEVAL \\server\folder /V /O:logfile.txt

When you find out if the space that can be reclaimed is substantial, you are ready for the next step, running Optimization Jobs:

In Windows Server 2012 Data Deduplication, Optimzation Jobs perform the work of deduplicating data and optimizing a volume. These jobs can be run on-demand (manually) or on a scheduled basis.

You can trigger an optimization job on-demand in Windows PowerShell by using the Start-DedupJob cmdlet. For example:

PS C:\> Start-DedupJob –Volume E: –Type Optimization

You can query the progress of the job on the volume by using the Get-DedupJob cmdlet:

PC C:\> Get-DedupJob

Source: Keith Mayer Blog

3
  • Thank you for the tip, my data are quite unique, duplicates can be hardly found. I try to reduce WinSXS first and later maybe I will try data-deduplication. Feb 23, 2014 at 12:30
  • Note that Deduplication cannot be applied to boot or systems volumes. Dec 2, 2014 at 19:09
  • Dedupe is not a good idea on a database server. It's only useful (sometimes) on a file server.
    – LeeM
    Apr 30, 2019 at 0:12
0

Finnaly I have found the answer based on answer of Adrian Perez. It is powershell command from MSDN example.

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $FALSE } | Uninstall-WindowsFeature –Remove

It saved me almost 2GB on Windows 2012 server dedicated just for ASP.NET webserver adn SQL Server.

0

I found 90Gb of log files on C:\Windows\System32\LogFiles".

I used windirstat to find it: https://windirstat.net/download.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .