Actions
Share

My server says "Low space on c: drive"

Low space on C: drive

There are several possible reasons for your C: drive to start running out of space. Common issues include files from the Windows Update process, undeliverable mail and IIS log files. When the C: drive becomes full it can result in your system running sluggish as well as causing your sites to fail.

Listed below are directory paths and file name examples of files that can be removed to help create additional space.

%windir%\$NtUninstallKB911280$:
These directories contain files required for update rollbacks.  It is recommended that you zip the files and place on a larger drive. In the event of a rollback issue, you will be required to place them back.
An example would be:
C:\WINNT\$NtUninstallKB911280$


%windir%\KB*.log:
These files are used for informational purposes only.  These files can be removed from the server permanently.
An example would be:
C:\WINNT\KB914388.log


%windir%\$hf_mig$KB*:
These directories contain files required for update rollbacks.  It is recommended that you zip the files and place on a larger drive. In the event of a rollback issue, they would be required and a delete of the file would prevent this option. Make sure to not remove the $hf_mig$ folder, only the content within as this folder is written to when updates are applied to the server.
An example would be:
C:\WINNT\$hf_mig$\KB911280


C:\Inetpub\mailroot\Badmail\*.eml
C:\Inetpub\mailroot\Drop\*.eml
These files are email that can not be sent due to various reasons.  These files can be removed from the server permanently.


%windir%\system32\LogFiles\MSFTPSVC1\*.log
%windir%\system32\LogFiles\W3SVC*\*.log
IIS logs web and FTP activity. This is normally used for statistical analysis and or security purposes. It is recommended that you zip the files and place on a larger drive, or download and archive them for future need.
An example would be:
C:\WINNT\system32\LogFiles\MSFTPSVC1\ex051025.log
C:\WINNT\system32\LogFiles\W3SVC3\ex060223.log

Depending on the version of Windows, you can delete old virus definitions:

Windows 2003:  C:\Program Files\Common Files\Symantec Shared\VirusDefs
Windows 2008:  C:\ProgramData\Symantec\Definitions\VirusDefs

PLEASE NOTE:  for SEP version 12, the definitions will be located here:

Server 2003 - C:\Documents and Settings\All Users\Application Data\Symantec\Symantec Endpoint Protection\CurrentVersion\Data\Definitions\VirusDefs

Server 2008/R2 - C:\ProgramData\Symantec\Symantec Endpoint Protection\CurrentVersion\Data\Definitions\VirusDefs




The date formatting used is as follows: for January 1st, 2012, the format is 20120101.001. 
Keep the newest virus definitions and the older ones can be safely deleted.  Also, any folder that ends in .tmp.

Make sure once you have removed the unnecessary files that you empty the recycle bin.

Tree Size: We have found this to be an extremely helpful tool in finding out where space is being allocated on your dive.  It is a freeware application that can be downloaded here:

http://www.jam-software.com/freeware/index.shtml  We are in no way affiliated with this company, we simply found their freeware product to be quite useful, and you will too.


Pagefile.sys:  Since the pagefile system takes up so much space, you might try to decrease the pagefile.sys as a fix.  Instead of doing that, we suggest moving the pagefile system to store data on the M: drive instead of the C: drive.  To do this, follow these simple steps:

1.  Right click on My Computer and go to Properties.



2.  In the System window, click on Advanced system settings



3.  From Advanced System Settings,  go to the Advanced tab and click on Settings under the Performance subsection.



4.  Under Performance Options, click on the Advanced tab and click the Change button.



5.  Uncheck the top checkbox Automatically manage paging file size for all drives.  From here, you should have the option to save the files to the M: drive.  Choose M: as the drive and choose the radio button System Managed Size.  It is important to click the Set button or these changes will not occur.  IMPORTANT NOTE:  These changes will require a reboot, so please keep that in mind before proceeding.



6. After Server Reboot Delete the pagefile.sys from the C: Drive.   You may have to Show the Protected Operation System Files to find pagefile.sys.   Once deleted from C: you should see it show up on the M: Drive and available space free on the C: drive.

* How to show hidden files.
Start -> Control Panel -> Appearance -> Folder Options (Show hidden files and folders) -> [UnCheck] Hide protected operating system files.         Once you have deleted the pagefile.sys document you will want to go back in and [ReCheck] this to Hide these files so that you do not accidently delete any in the future.

Article ID: 494, Created On: 2/5/2007, Modified: 4/9/2015

Feedback (0)