Consider the following scenario:
Issue 1: The installation process fails and you receive an error message
The installation process fails, and you receive an error message that resembles the following:
Additionally, you receive the following error messages in the Summary.txt and Detail.txt files that are found in the SQL Server setup log folder:
Summary.txt
Detail.txt
Note This issue also occurs when you try to perform aslipstream installation of SQL Server 2012 Service Pack 1 (SP1).
Issue 2: One or more SQL Server 2012 databases do not come online when SQL Server starts
One or more of your SQL Server 2012 databases sometimes do not come online when SQL Server starts after the computer is restarted. This issue may be sporadic. For example, the database may not come online after several restarts, but the database does come online after another restart. However, the virtual machine does not come online after another restart.
Additionally, the status of the SQL Server service does not change when you restart the virtual machine. If the databases does not come online when the SQL Server is first started after the restart, the database will not come online no matter how many times the SQL Server service is restarted.
However, if the database does come online, this issue does not affect the databases coming online when you restart the SQL Server service.
When this issue occurs, one or more of the following error messages may be logged in the SQL Server error log:
Also, the status of the database is Recovery Pending:
An error message that resembles the following is logged in the Security Event log:
- You try to run Microsoft SQL Server 2012 in a Hyper-V or VMware environment that is running Windows Server 2012.
- You select a non-default hard disk drive, a hard disk other than drive C: for example, for either the shared features and the instance root directory or the database file(s) are hosted on a non-OS drive and that drive is showing as a removable storage or removable disk in Windows Explorer.
- SQL Server is configured to run under an account other than a local system account.
- The Portable Device Enumerator Service (Wpdbusenum.dll) version is lower than 6.2.9200.16548 [GDR] / 6.2.9200.20652 [QFE].
- Windows Security Policy defined for Object Access [either local policy or group policy] as shown in the following screenshots:
Issue 1: The installation process fails and you receive an error message
The installation process fails, and you receive an error message that resembles the following:
Attempted to perform an unauthorized operation
Additionally, you receive the following error messages in the Summary.txt and Detail.txt files that are found in the SQL Server setup log folder:
Summary.txt
An error occurred during the setup process of the feature
Detail.txt
Attempted to perform an unauthorized operation.
HResult : 0x84bb0001
FacilityCode : 1211 (4bb)
ErrorCode : 1 (0001)
Data:
WatsonData = MSSQLSERVER
DisableRetry = true
Inner exception type: System.UnauthorizedAccessException
HResult : 0x84bb0001
FacilityCode : 1211 (4bb)
ErrorCode : 1 (0001)
Data:
WatsonData = MSSQLSERVER
DisableRetry = true
Inner exception type: System.UnauthorizedAccessException
Note This issue also occurs when you try to perform aslipstream installation of SQL Server 2012 Service Pack 1 (SP1).
Issue 2: One or more SQL Server 2012 databases do not come online when SQL Server starts
One or more of your SQL Server 2012 databases sometimes do not come online when SQL Server starts after the computer is restarted. This issue may be sporadic. For example, the database may not come online after several restarts, but the database does come online after another restart. However, the virtual machine does not come online after another restart.
Additionally, the status of the SQL Server service does not change when you restart the virtual machine. If the databases does not come online when the SQL Server is first started after the restart, the database will not come online no matter how many times the SQL Server service is restarted.
However, if the database does come online, this issue does not affect the databases coming online when you restart the SQL Server service.
When this issue occurs, one or more of the following error messages may be logged in the SQL Server error log:
Error: 17207, Severity: 16, State: 1
File activation failure. The physical file name "<x:\yourpath\databaselogfilename.ldf>" may be incorrect.
Error: 17207, Severity: 16, State: 1
File activation failure. The physical file name "<x:\yourpath\databasedatafilename.mdf>" may be incorrect.
Error: 17207, Severity: 16, State: 1
File activation failure. The physical file name "<x:\yourpath\databasedatafilename.ndf>" may be incorrect.
Error: 5120, Severity: 16, State: 5.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '<x:\yourpath\databasedatafilename.ldf>'. Diagnose and correct the operating system error, and retry the operation.
Error: 5120, Severity: 16, State: 5.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '<x:\yourpath\databasedatafilename.mdf>'. Diagnose and correct the operating system error, and retry the operation.
Error: 5120, Severity: 16, State: 5.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '<x:\yourpath\databasedatafilename.ndf>'. Diagnose and correct the operating system error, and retry the operation.
File activation failure. The physical file name "<x:\yourpath\databaselogfilename.ldf>" may be incorrect.
Error: 17207, Severity: 16, State: 1
File activation failure. The physical file name "<x:\yourpath\databasedatafilename.mdf>" may be incorrect.
Error: 17207, Severity: 16, State: 1
File activation failure. The physical file name "<x:\yourpath\databasedatafilename.ndf>" may be incorrect.
Error: 5120, Severity: 16, State: 5.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '<x:\yourpath\databasedatafilename.ldf>'. Diagnose and correct the operating system error, and retry the operation.
Error: 5120, Severity: 16, State: 5.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '<x:\yourpath\databasedatafilename.mdf>'. Diagnose and correct the operating system error, and retry the operation.
Error: 5120, Severity: 16, State: 5.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file '<x:\yourpath\databasedatafilename.ndf>'. Diagnose and correct the operating system error, and retry the operation.
Also, the status of the database is Recovery Pending:
An error message that resembles the following is logged in the Security Event log: