disable zero file initialization on fsx drives.

Heisenberg 261 Reputation points
2021-08-04T16:29:48.16+00:00

we have non production database server on AWS and our AWS admin has created an FSX drive for hosting the database files. is there any way to disable zero file initialization on these drives or is it same as mentioned in the below article.

https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-instant-file-initialization?view=sql-server-ver15

SQL Server Other
{count} votes

4 answers

Sort by: Most helpful
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2021-08-04T17:01:35.813+00:00

    You mean that you want to have IFI on some drives and not on others? I have never heard of such an option, and given that it is controlled by a Windows permission, I can't see how there could be.

    0 comments No comments

  2. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2021-08-05T06:33:18.993+00:00

    Hi @SQLServerBro,

    >is there any way to disable zero file initialization on these drives or is it same as mentioned in the below article.

    IFI is applied to data files,

    In SQL Server, for data files only, instant file initialization (IFI) allows for faster execution of the previously mentioned file operations, since it reclaims used disk space without filling that space with zeros.

    And instant file initialization is only available if the SQL Server service startup account has been granted SE_MANAGE_VOLUME_NAME. Members of the Windows Administrator group have this right and can grant it to other users by adding them to the Perform Volume Maintenance Tasks security policy.


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar thread.

    0 comments No comments

  3. Heisenberg 261 Reputation points
    2021-08-05T17:55:16.337+00:00

    I think i didn't phrase my question correctly. I mean to say i want to enable IFI for fsx drives. The configuration as mentioned in the below article applies to FSX drives too?

    https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-instant-file-initialization?view=sql-server-ver15

    0 comments No comments

  4. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2021-08-06T07:30:39.273+00:00

    Hi @SQLServerBro,

    > I mean to say i want to enable IFI for fsx drives. The configuration as mentioned in the below article applies to FSX drives too?

    No, IFI is only applied to data files.

    But if you mean enable IFI on data files that storage on Amazon FSx, the answer is yes.

    Refer to the blog Enable instant file initialization for SQL server on Amazon EC2.


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.