none
how to relocate Pagefile.sys to another drive letter

    Question

  • I have SQL 2008 R2 and SharePoint 2010 installed on separate server but I am having a low disk space issue related to my windows 2008R2.

    I can see Pagefiles.sys is causing this. My best option is to move PageFile.Sys to another drive letter. Can anyone please let me?

    1. Are there any risks involve, if I want move this pagefiles.sys from C to another driver letter?

    2. How I can relocate pagefile.sys from C drive to another driver?

    I have found this TechNet link, where it is saying memory dump file, instead of pagefile.sys. are these same?

    http://technet.microsoft.com/en-us/library/ee424384(WS.10,printer).aspx

    I know you are an expert, please tell me the simplest and easiest step-by-step.

     

    Thursday, April 07, 2011 8:35 AM

Answers

  • I do not think there are any risk associated with this, however you will need to reboot your server afterwards.

    1. Right Click Computer | Choose Properties

    2. Click Advanced System Settings

    3. Performance Tab | Click Settings

    4. Advanced Settings Tab | Virtual Memory | Click Change

    5. Uncheck Automaticaly manage page file

    6. Clicking on disk will allow you to set paging file where you want

    I would recommend you to have a page file on c drive in size at least 500MB this should be sufficient for having dumps. Than you can have bigger paging file on different drive which should help in respect to performance


    With kind regards
    Krystian Zieja
    http://www.projectnenvision.com
    Follow me on twitter
    My Blog
    Thursday, April 07, 2011 9:02 AM
  • Hi,

     

    You don't need to delete the pagefile in C: manually, you can perform the following steps:

     

    1. Select C: in Virtual Memory window

    2. check the box "No paging file"

    3. Click on "Set" to apply the settings

     

    Please refer to the screen shot.

     

     

     

    By the way, you can check the following guide.

     

    How to move the paging file in Windows XP

    http://support.microsoft.com/kb/307886

     

    In addition, pagefile and dump file are different things.

     

    Overview of memory dump file options for Windows Vista, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows XP, and Windows 2000

    http://support.microsoft.com/kb/254649

     

     

    Best Regards,

    Vincent Hu

     

     

    Friday, April 08, 2011 2:52 AM
  • Hi,

     

    Uncheck the box “Automatically manage paging file size for all drivers”, then you can set pagefile on other drive.

     

    After the reboot, navigate to the Virtual Memory window and you will find the pagefile has been set on other drive, such as D:, just perform the steps, it will not hurt your computer.

     

     

    Best Regards,

    Vincent Hu

     

     

    • Marked as answer by mkhan100 Tuesday, April 12, 2011 9:48 PM
    Friday, April 08, 2011 7:07 AM

All replies

  • I do not think there are any risk associated with this, however you will need to reboot your server afterwards.

    1. Right Click Computer | Choose Properties

    2. Click Advanced System Settings

    3. Performance Tab | Click Settings

    4. Advanced Settings Tab | Virtual Memory | Click Change

    5. Uncheck Automaticaly manage page file

    6. Clicking on disk will allow you to set paging file where you want

    I would recommend you to have a page file on c drive in size at least 500MB this should be sufficient for having dumps. Than you can have bigger paging file on different drive which should help in respect to performance


    With kind regards
    Krystian Zieja
    http://www.projectnenvision.com
    Follow me on twitter
    My Blog
    Thursday, April 07, 2011 9:02 AM
  • Hello,

    please see: http://support.microsoft.com/kb/2267427

    For specific requirements of SQL and Sharepoint use the specific Applicaiton forums instead this one:

    http://social.technet.microsoft.com/Forums/en-US/category/sqlserver/

    http://social.technet.microsoft.com/Forums/en-US/category/sharepoint2010


    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Thursday, April 07, 2011 9:06 AM
  • Thank you for your quick reply.

    Sorry, can you please explain, how can I have two pagesfiles in two different drives? Please let me the steps.

    I have to allocate 20 GB memory in SQL server. However, I cannot have 20x1 GB or 20x1.5 GB page file in my C drive. I have same issue with my SharePoint server.

     

    Thursday, April 07, 2011 9:11 AM
  • Hello,

    you have a pagefile in c and a pagefile in d for example. NOT multiple ones on c.


    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Thursday, April 07, 2011 9:42 AM
  • I know you are talking about two pagefiles in two different drives. My question was how I do this.

     

     To claim the disk space back, I have to delete the default pagefiles in C. After I follow your steps, I can create another pagefile in D and select System managed size or custom size to create a new pagefile in D. But I can't delete the page file in C.

     

    1. How can I set default or tell windows to use the newly created pagefile in D, so I can delete the one in C.

     

    2. As per your recommendation, how can I create another pagefile in C, which will be sufficient for having dumps? Than the bigger paging file on D drive to help in respect to performance. I have 20 GB memory. So automatically,

     

    3. Finally, I can I be sure that windows will be Pagefile in D after the change?

     are the momory dump file and page file same?




    Friday, April 08, 2011 12:29 AM
  • Hi,

     

    You don't need to delete the pagefile in C: manually, you can perform the following steps:

     

    1. Select C: in Virtual Memory window

    2. check the box "No paging file"

    3. Click on "Set" to apply the settings

     

    Please refer to the screen shot.

     

     

     

    By the way, you can check the following guide.

     

    How to move the paging file in Windows XP

    http://support.microsoft.com/kb/307886

     

    In addition, pagefile and dump file are different things.

     

    Overview of memory dump file options for Windows Vista, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows XP, and Windows 2000

    http://support.microsoft.com/kb/254649

     

     

    Best Regards,

    Vincent Hu

     

     

    Friday, April 08, 2011 2:52 AM
  • Thank you for your reply.

     

    Now, please anser my remaining questions

    1. As per your screen print, I will select C drive, select No paging file and Set to delet the paging file on C. But I can I set my other page file ( which is on D) to automatic? 

     Should I select the tick box" Automatically manage paging file size for all drivers" or leave this tick box unckecked.

     

    2. How can I be sure that windows will use new paging file on D?

     

    Friday, April 08, 2011 6:29 AM
  • Hi,

     

    If you want to put the pagefile on D:, you need to configure it manually. Please check the guide. After the reboot, the system will create a pagefile automatically on the drive you specified.

     

    As far as I know, the box “Automatically manage paging file size for all drivers” is checked by default.

     

     

    Best Regards,

    Vincent Hu

     

     

    Friday, April 08, 2011 6:35 AM
  • Thanks Vincent for your quick reply.

    You can't create another pagefiles in D, without unchecking the "Automatically manage paging file size for all drives". It remains uncheck if you don't check it again. Now which I don't know

    1. How can I be sure that windows is using the newly created paging file on D?

    2. After deleting the pagefile in C, how can I tell my windows (2008 R2) to use the pagefile on D for performance automatically.

     

    Thanks in advance.  

    Friday, April 08, 2011 6:58 AM
  • Hi,

     

    Uncheck the box “Automatically manage paging file size for all drivers”, then you can set pagefile on other drive.

     

    After the reboot, navigate to the Virtual Memory window and you will find the pagefile has been set on other drive, such as D:, just perform the steps, it will not hurt your computer.

     

     

    Best Regards,

    Vincent Hu

     

     

    • Marked as answer by mkhan100 Tuesday, April 12, 2011 9:48 PM
    Friday, April 08, 2011 7:07 AM
  • Sorry to hijack this old thread but I am experiencing a similar issue so I dare to comment in the same post.

    I have changed the location of pagefile to D: with miminum size of 2GB and max size of 5GB whereas the system recommended is 6GB? Do you think not following the system recommended settings can hurt the Server by any means and I should always follow what system recommends? At the moment I have allocated the less space as recommended.

    Secondly I read in another blog that I always leave some space on C drive for pagefile for emergency use. Can I allocate 2 locations to pagefiles, one of C: and another on D: when C & D are on separate physical volumes. Or I can have it on D: only and shouldn't care about C: pagefile allocation for emergency use?

    Please help!!

    Kind Regards,

    Umair Saleem



    • Edited by Umair Saleem Wednesday, October 17, 2012 10:04 AM
    Wednesday, October 17, 2012 10:02 AM
  • Hopefully if you are there , I have a suggestion :

    1. open server manager --> system properties --> advanced tab --->virtual memory --> performance -- > settings


    Monday, February 17, 2014 11:09 AM
  • thanks for detail steps, this did the trick for me.

    --

    Alpesh Dhori

    Software Professional

    Tuesday, March 11, 2014 11:08 AM