You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/sql/database-engine/database-file-operations/troubleshoot-os-4kb-disk-sector-size.md
+39-39Lines changed: 39 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,36 @@ When you try to install a SQL Server instance on a machine with system disk sect
22
22
23
23
### Scenario 1
24
24
25
+
If you try to use sector size higher than 4 KB, you see the following error message:
26
+
27
+
```output
28
+
Error: 5179, Severity: 16, State: 1.
29
+
Cannot use file 'data file path', because it is on a volume with sector size 8192. SQL Server supports a maximum sector size of 4096 bytes. Move the file to a volume with a compatible sector size.
30
+
```
31
+
32
+
### Scenario 2
33
+
34
+
When you try to install a SQL Server instance on an Azure virtual machine (VM) running Windows, the installation fails, and you receive the following error message in the SQL Server error log when the engine tries to start during the installation:
35
+
36
+
> Cannot use file '...\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector size 8192. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
37
+
38
+
Additionally, you can see the following information in the **Summary.txt** log file in the SQL Server setup folder:
39
+
40
+
```output
41
+
Detailed results:
42
+
Feature: Database Engine Services
43
+
Status: Failed
44
+
Reason for failure: An error occurred during the setup process of the feature.
45
+
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
46
+
Component name: SQL Server Database Engine Services Instance Features
47
+
Component error code: 0x851A0019
48
+
Error description: Could not find the Database Engine startup handle.
49
+
```
50
+
51
+
For more information, see [SQL Server installation fails with sector size error on a Windows Server 2022 Azure virtual machine](../../azure-sql/sql-installation-fails-sector-size-error-azure-vm.md).
52
+
53
+
### Scenario 3
54
+
25
55
When you install any version of SQL Server, you see errors similar to the following message for the Database Engine Services component of SQL Server:
2025-02-26 20:01:16.80 spid14s Cannot use file 'C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\DATA\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector size 8192. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
43
73
```
44
74
45
-
### Scenario 2
75
+
### Scenario 4
46
76
47
-
You install any version of SQL Server on a Windows 10 device. Then, you upgrade the operating system (OS) on the device to Windows 11. When you try to start SQL Server on a Windows 11 device, the service fails to start. In the SQL Server error log, you notice entries similar to the following one:
77
+
You install any version of SQL Server on a Windows 10 device. Then, you upgrade the operating system (OS) on the device to Windows 11. When you try to start SQL Server on a Windows 11 device, the service fails to start. In the SQL Server error log, you notice the following entries:
48
78
49
79
```output
50
80
2021-11-05 23:42:47.14 spid9s There have been 256 misaligned log IOs which required falling back to synchronous IO. The current IO is on file C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\master.mdf.
51
81
```
52
82
53
-
### Scenario 3
83
+
### Scenario 5
54
84
55
-
You install any version of SQL Server on a Windows 10 device. Then, you upgrade the OS on the device to Windows 11. When you try to start SQL Server on a Windows 11 device, the service fails to start. In the SQL Server error log, you notice entries similar to the following one:
85
+
You install any version of SQL Server on a Windows 10 device. Then, you upgrade the OS on the device to Windows 11. When you try to start SQL Server on a Windows 11 device, the service fails to start. In the SQL Server error log, you notice the following entries:
56
86
57
87
```output
58
88
Faulting application name: sqlservr.exe, version: 2019.150.2000.5, time stamp: 0x5d8a9215
You install LocalDB on a Windows 11 device. The setup fails. In the SQL Server error log, you notice entries similar to the following one:
100
+
You install LocalDB on a Windows 11 device. The setup fails. In the SQL Server error log, you notice the following entries:
71
101
72
102
```output
73
103
2021-12-15 23:25:04.28 spid5s Cannot use file 'C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\TestInstance\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector size 16384. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
74
104
```
75
105
76
-
In the Windows 11 Application Event Log, you notice entries similar to the following one:
106
+
In the Windows 11 Application Event Log, you notice the following entries:
77
107
78
108
```output
79
109
Message : Windows API call WaitForMultipleObjects returned error code: 575. Windows system error message is: {Application Error}
@@ -85,36 +115,6 @@ Source : SQLLocalDB 11.0
85
115
> [!Note]
86
116
> You might encounter the failures mentioned in the previous scenarios for a SQL Server instance you installed manually or on a LocalDB instance installed by applications.
87
117
88
-
### Scenario 5
89
-
90
-
If you try to use sector size higher than 4 KB, you see the following error message:
91
-
92
-
```output
93
-
Error: 5179, Severity: 16, State: 1.
94
-
Cannot use file 'data file path', because it is on a volume with sector size 8192. SQL Server supports a maximum sector size of 4096 bytes. Move the file to a volume with a compatible sector size.
95
-
```
96
-
97
-
### Scenario 6
98
-
99
-
When you try to install a SQL Server instance on an Azure virtual machine (VM) running Windows, the installation fails, and you receive the following error message in the SQL Server error log when the engine tries to start during the installation:
100
-
101
-
> Cannot use file '...\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector size 8192. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
102
-
103
-
Additionally, you can see the following information in the **Summary.txt** log file in the SQL Server setup folder:
104
-
105
-
```output
106
-
Detailed results:
107
-
Feature: Database Engine Services
108
-
Status: Failed
109
-
Reason for failure: An error occurred during the setup process of the feature.
110
-
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
111
-
Component name: SQL Server Database Engine Services Instance Features
112
-
Component error code: 0x851A0019
113
-
Error description: Could not find the Database Engine startup handle.
114
-
```
115
-
116
-
For more information, see [SQL Server installation fails with sector size error on a Windows Server 2022 Azure virtual machine](../../azure-sql/sql-installation-fails-sector-size-error-azure-vm.md).
117
-
118
118
## Cause
119
119
120
120
During service startup, SQL Server begins the database recovery process to ensure database consistency. Part of this database recovery process involves consistency checks on the underlying filesystem before you try to open system and user database files.
@@ -144,7 +144,7 @@ Additionally, be aware of the Windows support policy for file system and storage
144
144
145
145
## Resolutions
146
146
147
-
- Currently, the `ForcedPhysicalSectorSizeInBytes` registry key is required to successfully install SQL Server when using modern storage platforms, such as NVMe, that provide a sector size larger than 4 KB. This Windows operating system registry key forces the sector size to be emulated as 4 KB. To add the `ForcedPhysicalSectorSizeInBytes` registry key, use **Registry Editor** or run commands as described in the **Command Prompt** or **PowerShell** section. You must reboot the device after adding the registry key for this change to take effect. There is no need to add [Trace Flag 1800](/sql/t-sql/database-console-commands/dbcc-traceon-trace-flags-transact-sql#tf1800) for this scenario.
147
+
- Currently, the `ForcedPhysicalSectorSizeInBytes` registry key is required to successfully install SQL Server when using modern storage platforms, such as NVMe, that provide a sector size larger than 4 KB. This Windows operating system registry key forces the sector size to be emulated as 4 KB. To add the `ForcedPhysicalSectorSizeInBytes` registry key, use **Registry Editor** or run commands as described in the **Command Prompt** or **PowerShell** section. You must reboot the device after adding the registry key for this change to take effect. There is no need to add Trace Flag 1800 for this scenario.
148
148
149
149
> [!IMPORTANT]
150
150
> This section contains steps that tell you how to modify the Windows registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see the [How to back up and restore the registry in Windows](../../../windows-server/performance/windows-registry-advanced-users.md#back-up-the-registry) article.
0 commit comments