Can't remove Pagefile from C: drive - SBS 2003

Posted on 2012-09-11
Last Modified: 2012-09-16
Hi All,

have picked up a client with an SBS2003 server that has a small primary (C) partition - 33GB.
It is very low on space - 1.65GB free.  As we are going to be migrating to SBS2011 there is some patching and preps to be required prior. The low space is a concern.

Have tried clearing up as much as possible, to free space, but there was a critical app that is installed and unable to move it.

I have tried to move the pagefile to the D drive, via the usual method
System Properties > Advanced > Performance Options > Advanced tab > Virtual Memory.
Have set the C: drive to 'No Paging File'
Have set the D: drive to Custome size - 4095-4095  (as the server has 4GB RAM installed)
This has always worked in the past - after rebooting of course.

If I run 'Systeminfo' it reports back the following.

Total Physical Memory:     3,582 MB
Available Physical Memory: 157 MB
Page File: Max Size:       7,010 MB
Page File: Available:      2,702 MB
Page File: In Use:         4,308 MB
Page File Location(s):     d:\pagefile.sys

*note: the page file maxsize appears to be the combination of both the C Drive page file and D drive page file.

The server had been set like this when we first saw it, but we noticed that the pagefile was  still on the C Drive. I assumed that it just required a restart as that would normally clear it. After a restart the pagefile was still there - and when trying to delete it manually, it wouldn't delete as it was still in use.

I have dug down into the registry and it appears to be as it should.  Have even set the registry to purge the pagefile at each reboot. I can see that it is recreating the C drive page file after rebooting.  But not the D drive page file (as I deleted it to see if it was in use)

Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Value 0
  Name:            ClearPageFileAtShutdown
  Type:            REG_DWORD
  Data:            0x1

Value 9
  Name:            PagingFiles
  Type:            REG_MULTI_SZ
  Data:            d:\pagefile.sys 4095 4095

I have checked the security permissions on both C and D drive - System has full control of both.
I have checked the permissions on the registry to make sure that System has full control - HKLM, HKUSers, HKClassesRoot, HKCurrentConfig, even HKLM\System\CurrentControlSer\Control\Session Manager\Memory Management

It kind of looks like the registry settings are being ignored.

I am really stumped, would greatly appreciate any advice anyone has to offer.
Question by:Travola77
    LVL 23

    Assisted Solution

    by:Suliman Abu Kharroub
    Try to clean the registry using ccleaner.


    Configure page file. On c drive to be something very small (16 Mb) and make sure to to configure it d drive.... Here there is a risk which is server may not be able to boot if it ignores page file on d making page file on c drive bigger will eliminate that risk.

    Last thing, are both c and d in the same HDD ?
    LVL 9

    Expert Comment

    While applying System Properties > Advanced > Performance Options > Advanced tab > Virtual Memory.
    After entering the value in D drive click set then ok and apply and reboot the server.

    Accepted Solution

    Hi DJSharma - yes I had already tried that. Thanks for your response

    Hi Sulimanw - I am a bit hesitant about using CCleaner on a server.
    I had also tried setting the pagefile to 16MB - however as soon as the server booted it complained of not enough space, and then increased the page file size - the server was also very slow and a few services shut down till I restarted it.

    However you question about the drives being on the same HDD had me thinking.  I checked the Array configuraiton.  The drives are on a 3-disk RAID 5 set.  The C and D are partitions set at the RAID level, and seen as seperate drives in Windows Disk Management.

    In Windows Disk Management I noticed that the D drive is actually a dynamic disk. It turns out you can't put a pagefile on a dynamic disk!

    So it looks like I will need to convert the Data drive back to a Basic disk.
    LVL 46

    Expert Comment

    Convert it without dataloss using Paragon Drive Backup 11 Server. It does this conversion pretty fast.

    Author Closing Comment

    Helped me look at the Disk structure to then find the root of the problem. The first reposnder didnot provide the solution but gave me the idea of where to look.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Integrate social media with email signatures

    Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

    Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
    Learn about cloud computing and its benefits for small business owners.
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now