Error: 17053 LogWriter: Operating system error 21 (The device

Source: Internet
Author: User

An error occurred during the Detach database today. Run dbcc checkdb to view the following information from the 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.

According to error 21, this should be a disk problem, but many other databases on the disk can work normally, and there is no problem with the newly created files.

Then we can see the 823 error, which should be caused by a hardware error. Microsoft recommends running dbcc checkdb. But it cannot run at all.

The following error is still reported when you try to run dbcc checkdb with tablock.

Then I tried to restart the service and the database was ready. No error was found when running dbcc checkdb.

It seems that this problem is a monster. If there is no problem with hardware disks, a disk error is reported.

 

 

This article is from the "follow SQL Server Technology" blog, please be sure to keep this source http://lzf328.blog.51cto.com/1196996/1294871

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.