It seems that W2K8 Server enables hibernation by default. This is quite interesting since I'm not sure how many people actually hibernate a server. Nevertheless, it's something we need to deal with. Particularly for those (like me) who do most of their work in VMs.
As you may know, Windows creates a file named hiberfil.sys in the root of the system drive for systems where hibernation is enabled. The hiberfil.sys file is always the same size as physical RAM. In a VM where hibernation is normally replaced with the VM software's suspend feature, that can be quite a sizeable chunk of wasted space. In a production environment I would normally want to disable hibernation, too.
Trouble is, you can't disable hibernation anywhere in the GUI. It must be disabled from the command line using the command:
powercfg.exe /hibernate offThis is further documented in the following MS KB articles:
Thank you, you helped me.
ReplyDeleteIn Windows Server 2008 RTM hibernate was turned on by default (I didn't do anything). After installing Svp2 there was no hibernate anymore. Found your Blog with google and "powercfg -h on" was the solution.
Alfg
ps. using Server 2008 as my home OS
FYI - I have confirmed that hibernation will not be enabled by default in Windows Server 2008 R2.
ReplyDeletethis caught me out, thanks for the post
ReplyDelete2008 SP2, ran the command, no confirmation it'd done anything but the .sys file immediately disappeared
I fixed the link to "How to Disable Hibernation on Windows Vista".
ReplyDelete