在物理机安装更新,重启之后,发现有一个DB处于Suspect状态,该db的Files分布在不同的Server上,我怀疑是在RemoteServer重启时,导致该DB不能访问Remote Files,于是 SQL Server 进入 Suspect状态。
查看Windows 日志报告,发现一下错误信息:
The operating system returned error 53(The network path was not found.) to SQL Server during a read at offset 0x000001bed08000 in file ‘\\RemoteServerName\ShareFolder\xxxx.ndf‘. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
WorkAround
这个错误是由于Remote Server重启,导致DB不能访问位于Remote Server上的Files。等到所有的Remote Server都重启之后,将DB的Service重启,一旦SQL Server Instance检测到DB的所有files 都能正常访问,DB恢复正常。
参考doc:
How To Repair A Suspect Database In MSSQL
Recovering a SQL Server Database from Suspect Mode