Error: 17053 LogWriter: Operating system error 21(The device is not ready.)
2013-09-12 09:21
513 查看
今天在Detach数据库的时候出现错误,运行DBCC CHECKDB从SQL Server error log中看到下面的信息:
Error: 17053, Severity: 16, State: 1.
LogWriter: Operating system error 21(The device is not ready.)encountered.
Write error during log flush.
Error: 9001, Severity: 21, State: 4.
The log for database '' is not available.Check the event log for related error messages. Resolve any errors and restartthe database.
Error: 823, Severity: 24, State: 2.
The operating system returned error 21(The device is not ready.) to SQLServer during a read at offset 0x000000000de000 in file 'xx.mdf'. Additional messages in the SQL Server error log and system eventlog may provide more detail. This is a severe system-level error condition thatthreatens database integrity and must be corrected immediately. Complete a fulldatabase consistency check (DBCC CHECKDB). This error can be caused by manyfactors; for more information, see SQL Server Books Online.
根据错误21那么应该是磁盘的问题,但是这个磁盘上面放着很多其他的数据库都是可以正常工作的,而且新创建文件都没有问题。
之后看到823的错误,这个应该是硬件错误导致的。微软给出的建议是运行DBCC CHECKDB。但是根本无法运行。
尝试运行DBCC CHECKDB WITH TABLOCK仍然报上面的错误。
之后尝试重启了一次服务,数据库竟然好了。运行DBCC CHECKDB没有发现错误。
感觉这个问题很妖怪,在硬件磁盘都没有问题的情况下竟然报磁盘错误。
Error: 17053, Severity: 16, State: 1.
LogWriter: Operating system error 21(The device is not ready.)encountered.
Write error during log flush.
Error: 9001, Severity: 21, State: 4.
The log for database '' is not available.Check the event log for related error messages. Resolve any errors and restartthe database.
Error: 823, Severity: 24, State: 2.
The operating system returned error 21(The device is not ready.) to SQLServer during a read at offset 0x000000000de000 in file 'xx.mdf'. Additional messages in the SQL Server error log and system eventlog may provide more detail. This is a severe system-level error condition thatthreatens database integrity and must be corrected immediately. Complete a fulldatabase consistency check (DBCC CHECKDB). This error can be caused by manyfactors; for more information, see SQL Server Books Online.
根据错误21那么应该是磁盘的问题,但是这个磁盘上面放着很多其他的数据库都是可以正常工作的,而且新创建文件都没有问题。
之后看到823的错误,这个应该是硬件错误导致的。微软给出的建议是运行DBCC CHECKDB。但是根本无法运行。
尝试运行DBCC CHECKDB WITH TABLOCK仍然报上面的错误。
之后尝试重启了一次服务,数据库竟然好了。运行DBCC CHECKDB没有发现错误。
感觉这个问题很妖怪,在硬件磁盘都没有问题的情况下竟然报磁盘错误。
相关文章推荐
- Error: 17053 LogWriter: Operating system error 21(The device is not ready.)
- Error: 17053 LogWriter: Operating system error 21(The device is not ready.)
- Customization of the guest operating system 'winNetEnterpriseGuest' is not su
- [Solved]: System.Data.SqlClient.SqlError: Exclusive access could not be obtained because the database is in use.
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- 重启网络,报以下错误:Error: Connection activation failed: The connection is not for this device.
- The guest operating system is not Mac OS X Server.
- 安装DB2报错: Error: The required library file libstdc++.so.5 is not found on the system.
- Error: 9001, Severity: 21, State: 5 The log for database 'xxxx' is not available
- Ubuntu Error: the system network service is not compatible with this version
- PK3Err0040: The target device is not ready for debugging. Please check your configuration bit settin
- suse 11安装db2时The 32-bit library file libpam.so is not found on the system.
- VMWare的The network bridge on device VMnet0 is not running故障解决
- JAVA Error:The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry.....
- Oops, 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- IIS不能用,报错:Failed to execute request because the App-Domain could not be created. Error: 0×80070005 Access is denied
- 0x80091007 (The hash value is not correct) error when trying to deploy Windows 7 with SCCM OSD
- SharePoint 2016 installation error The program can not start because api-ms-win-crt-runtime-l1-1-0.dll is missing
- Could not install the app on the device, read the error above for details. Make sure you have an And