Windows Server 2008 VM: Hiberfil.sys is filling up Disk Space


This blog post is only valid for “Windows Server 2008” Release 1.

If you run Windows Server 2008 server in VM environment, you should know the following things.

  1. Hibernation feature is ENABLED by default in Windows Server 2008
  2. There are no GUI settings to turn hibernation off
  3. “hiberfil.sys” takes as much as your memory size, sitting in C: and wasting precious disk space in VM

I found out little lately that my Windows Server VMs were running out disk space and took a while to figure out what’s happening.

Solution:

You can disable the hibernation feature by command line tools. There is two step process:

1. Open command prompt in elevated mode (right click on Command prompt icon and select “Run as Administrator”). Type the following command to disable the hibernation feature.

powercfg.exe /hibernate off

2. Access your servers C: root directory from different computer (\Servernamec$) and delete “Hiberfil.sys” file. (if you try to delete this file locally on the server, you are in big surprise)

Hey best thing about this solution is NO REBOOT required. 🙂

3 thoughts on “Windows Server 2008 VM: Hiberfil.sys is filling up Disk Space

  1. You don’t actually need to delete from a remote machine. Just access it via: \\localhost\c$ 😉 That way it’s still via the admin share, but you don’t need the remote machine.

  2. Hey, thanks for this. It saved me from crashing my virtualised Exchange server whose disk was filling with transaction logs and where the full backup still had many hours to run before the logs could be purged. Whew!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s