Skip to content

Commit f42f68a

Browse files
authored
Merge pull request #8678 from MicrosoftDocs/main
Auto push to live 2025-04-09 10:00:02
2 parents 52d6a98 + bc07d5a commit f42f68a

File tree

1 file changed

+53
-9
lines changed

1 file changed

+53
-9
lines changed
Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
---
2-
title: SQL Server Azure VM Deployment Fails with Drive Not Ready Error
3-
description: Resolves an issue that occurs when you try to deploy a SQL Server on Azure VM image in Azure Marketplace.
4-
ms.date: 04/02/2025
2+
title: SQL Server VMs Failing to Deploy or SQL Server Instance Not Coming Online
3+
description: Learn how to address a failure when you try to deploy a SQL Server on Azure VM image in Azure Marketplace, or when a manually-installed SQL Server instance fails to come online after an Azure VM is restarted or deallocated.
4+
ms.date: 04/08/2025
55
ms.author: mathoma
66
author: MashaMSFT
77
ms.reviewer: mathoma, v-sidong
88
ms.custom: sap:SQL Licensing, Installation and Patching
99
---
10-
# "System Drive returned status not ready for use" error and Azure SQL Server VM deployment fails
10+
# SQL Server on Azure VM failing to deploy or SQL Server instance not coming online
1111

12-
This article helps you resolve a failed deployment of a SQL Server on Azure Virtual Machine (VM) image in Azure Marketplace.
12+
This article helps you resolve the following scenarios:
13+
- a SQL Server on Azure Virtual Machine (VM) Azure Marketplace image failing to deploy.
14+
- a SQL Server instance failing to come online after an Azure VM is restarted or deallocated.
1315

1416
_Applies to:_  SQL Server on Azure VMs
1517

@@ -18,24 +20,65 @@ _Applies to:_  SQL Server on Azure VMs
1820
1921
## Symptoms
2022

21-
When you try to deploy a SQL Server on Azure VM image in Azure Marketplace, the deployment fails with a status of `Conflict` and the following error:
23+
If you encounter this issue, you are likely to see:
24+
- SQL Server on Azure VM deployments failing when using an Azure Marketplace image.
25+
- SQL Server failing to come online after an Azure VM is restarted for manually installed instances of SQL Server.
26+
27+
### SQL Server on Azure VM deployment fails
28+
29+
When you try to deploy a SQL Server on Azure VM image from Azure Marketplace, the deployment fails with a status of `Conflict` and the following error:
2230

2331
> System Drive returned status not ready for use.
2432
33+
For example, if you're deploying an image from the Azure portal, you might see the following error for the deployment in the Activity log:
34+
2535
:::image type="content" source="media/sql-deployment-fails-drive-not-ready/sql-deployment-error.png" alt-text="Screenshot of the deployment error in the Azure portal." lightbox="media/sql-deployment-fails-drive-not-ready/sql-deployment-error.png":::
2636

37+
### SQL Server fails to come online after the VM is restarted
38+
39+
You might see this issue after following this sequence of events:
40+
41+
1. You deploy an Azure VM from the [impacted VM](#impacted-vms) list.
42+
1. You manually install an instance of SQL Server to the Azure VM.
43+
1. You configure your SQL Server `tempdb` database to use the local SSD ephemeral storage (typically, the `D:` drive).
44+
1. Your VM is restarted or deallocated.
45+
1. Your SQL Server instance fails to come online.
46+
47+
If you encounter this issue, you might see the following error in the SQL Server error log:
48+
49+
```output
50+
CREATE FILE encountered operating system error 3(The system cannot find the path specified.)
51+
while attempting to open or create the physical file 'D:\SQLTemp\tempdb.mdf'.
52+
Error: 17204, Severity: 16, State: 1. FCB::Open failed: Could not open
53+
file D:\SQLTemp\tempdb.mdf for file number 1. OS error:
54+
3(The system cannot find the path specified.).
55+
Error: 5120, Severity: 16, State: 101.
56+
Unable to open the physical file "D:\SQLTemp\tempdb.mdf". Operating system error 3:
57+
"3(The system cannot find the path specified.)".
58+
Error: 1802, Severity: 16, State: 4 CREATE DATABASE failed.
59+
Some file names listed could not be created. Check related errors.
60+
Could not create tempdb. You may not have enough disk space available.
61+
Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server.
62+
Check for additional errors in the event log that may indicate why the
63+
tempdb files could not be initialized.
64+
```
65+
2766
## Cause
2867

29-
Some of the newest Azure VM sizes present a RAW Local SSD volume for ephemeral storage configured with the Non-Volatile Memory Express (NVMe) interface. This configuration might cause the deployment of a SQL Server on Azure VM image to fail because it attempts to place `tempdb` data files on the local SSD volume.
68+
Some of the newest Azure VM sizes present a RAW local SSD volume for ephemeral storage configured with the Non-Volatile Memory Express (NVMe) interface. This configuration results in failure because SQL Server attempts to place the `tempdb` database on the ephemeral storage and fails as the local SSD volume isn't available. Additionally, the ephemeral storage shows as RAW after the machine is deallocated.
3069

31-
The deployment fails because the RAW Local SSD volume isn't formatted or initialized, which makes the ephemeral storage unavailable and prevents SQL Server from accessing it during the installation process of SQL Server during the deployment of the virtual machine.
70+
The RAW local SSD volume causes the SQL VM deployment to fail, and prevents manually installed SQL Server instances from coming online after the VM is restarted. In both cases, SQL Server is trying to initialize the `tempdb` database on the ephemeral storage, which is not available. The deployment fails because SQL Server is installed during the deployment of the Azure VM, and the ephemeral storage isn't available. Likewise, manually installed instances of SQL Server fail to come online after the VM is restarted because the ephemeral storage isn't available when SQL Server tries to create the `tempdb` database.
3271

3372
## Resolution
3473

3574
This issue occurs because of the selected Azure VM size. To solve the issue, use one of the following methods:
3675

3776
- If possible, use another VM SKU, such as those listed in the [VM size best practices](/azure/azure-sql/virtual-machines/windows/performance-guidelines-best-practices-vm-size#checklist).
38-
- If you can't use another VM SKU, deploy the VM using a Windows Server-only image, [format and initialize the temporary NVMe drive](/azure/virtual-machines/enable-nvme-temp-faqs#how-can-i-format-and-initialize-temp-nvme-disks-in-windows-when-i-create-a-vm-), and then manually install SQL Server. Additionally, make sure that the VM isn't configured using a [sector size greater than 4 KB](sql-installation-fails-sector-size-error-azure-vm.md#resolution) before installing SQL Server.
77+
- If you want to use a particular VM that is on the [impacted VMs](#impacted-vms) list, use a machine without the lowercase `d` in the name, which places `tempdb` on the same storage as the SQL Server data files. For example, use the `FXmsv2` VM size instead of the `FXmdsv2`. The latter has uninitialized ephemeral storage, as indicated by the `d` in the name.
78+
- If you can't use another VM SKU without a RAW local SSD, then deploy the VM using a Windows Server-only image, [format and initialize the temporary NVMe drive](/azure/virtual-machines/enable-nvme-temp-faqs#how-can-i-format-and-initialize-temp-nvme-disks-in-windows-when-i-create-a-vm-), and then manually install SQL Server. **You must reinitialize the disk before starting SQL Server every time the VM is restarted, or deallocated.**
79+
80+
> [!NOTE]
81+
> Make sure the VM isn't configured using a [sector size greater than 4 KB](sql-installation-fails-sector-size-error-azure-vm.md#resolution) before installing SQL Server.
3982
4083
## Impacted VMs
4184

@@ -48,6 +91,7 @@ This issue occurs with VMs that are deployed with an uninitialized temporary dri
4891
|[Edsv6](/azure/virtual-machines/sizes/memory-optimized/edsv6-series#sizes-in-series)|[Eadsv6](/azure/virtual-machines/sizes/memory-optimized/eadsv6-series#sizes-in-series)|
4992
|[Edsv6](/azure/virtual-machines/sizes/memory-optimized/edsv6-series#sizes-in-series)||
5093
|[Lsv3](/azure/virtual-machines/sizes/storage-optimized/lsv3-series#sizes-in-series) - All Azure VMs||
94+
|[Fxmdsv2](/azure/virtual-machines/sizes/compute-optimized/fxmdsv2-series#sizes-in-series)||
5195

5296

5397

0 commit comments

Comments
 (0)