HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Instant File Initialization

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
initializationfileinstant

Problem

How can i check if IFI is enabled on my PROD server?

I did the following checks:

-
Ensured that the service account under which SQL Server is running is part of Administrators group.

-
Perform Volume Maintenance tasks permission is set for "Administrators"

Does this mean that IFI enabled?

Solution

Easiest way is to

  • enable TF 3004 and 3605 (turn them off when done)



  • Create a dummy database



  • Check in error log for "SQL Server is zeroing out ..."



SQL Server 2016 will log the message by default when Instant file Initialization is enabled ... instant file initialization is enabled

Obviously, you can use xp_cmdshell whoami /priv or tsql way.

Good PFE blog reading : How and Why to Enable Instant File Initialization

Context

StackExchange Database Administrators Q#162787, answer score: 9

Revisions (0)

No revisions yet.