代码改变世界

虚拟机备份克隆导致SQL SERVER 出现IO错误案例

2014-08-20 10:28  潇湘隐者  阅读(3291)  评论(2编辑  收藏  举报

 

案例环境:  

            服务器配置: CPU: Intel E5-2690  RAM: 12G   虚拟机

            操作系统  : Windows Server 2008 R2 Standard Edtion   x64

            数据库版本: SQL SERVER 2008R2

 

案例介绍:

        晚上收到数据库一封告警邮件SQL Server Alert System: 'Severity 016' occurred on \\xxxxx。 邮件具体内容如下所示,

clipboard

DATE/TIME: 2014/8/13 22:56:11
 
DESCRIPTION:  BackupVirtualDeviceFile::SendFileInfoBegin:  failure on backup device '{0D9AFBD0-3C20-410F-A5E0-B9305296F52A}3'. Operating system error 995(failed to retrieve text for this error. Reason: 15105).
 
 
COMMENT:   (None)
 
JOB RUN:   (None)

于是检查SQL SERVER的错误日志,如下所示(部分具体内容,请见截图下面内容),

clipboard[1]

日期 2014/8/13 22:56:11 
 
日志 SQL Server (存档编号7 - 2014/8/14 0:00:00) 
 
源 Backup 
 
消息 
 
BACKUP failed to complete the command BACKUP DATABASE master. Check the backup application log for detailed messages.
 
日期 2014/8/13 22:56:11 
 
日志 SQL Server (存档编号7 - 2014/8/14 0:00:00) 
 
源 spid86 
 
消息 
 
I/O was resumed on database msdb. No user action is required.
 
日期 2014/8/13 22:56:11 
 
日志 SQL Server (存档编号7 - 2014/8/14 0:00:00) 
 
源 spid134 
 
消息 
 
Error: 18210, Severity: 16, State: 1.
 
日期 2014/8/13 22:56:11 
 
日志 SQL Server (存档编号7 - 2014/8/14 0:00:00) 
 
源 spid134 
 
消息 
 
BackupVirtualDeviceFile::SendFileInfoBegin: failure on backup device '{0D9AFBD0-3C20-410F-A5E0-B9305296F52A}5'. Operating system error 995(failed to retrieve text for this error. Reason: 15105).
 

检查系统Application日志,发现如下错误信息

clipboard[2]

clipboard[3]

有点怀疑是虚拟机的某些操作错误导致,大胆假设,小心求证。于是与系统管理员联系、沟通这件事情时,

发现他那个时间点正在备份、克隆虚拟机。导致这个IO错误出现。

clipboard[4]