【Azure 云服务】Cloud Service Worker Role Workerrole突然停机,查看Events发现 Defrag Error (0x8900002D)

简介: 【Azure 云服务】Cloud Service Worker Role Workerrole突然停机,查看Events发现 Defrag Error (0x8900002D)

问题描述

Cloud Service Worker Role Workerrole突然停机,查看Events,发现是错误源为 Defrag。

错误消息

The volume Windows was not optimized because an error was encountered: Neither Slab Consolidation nor Slab Analysis will run if slabs are less than 8 MB. (0x8900002D)

Events 截图

 

问题解答

defrag的作用为Windows 系统在本地卷上查找和合并碎片文件以提高系统性能,在云服务的实例中,以计划任务的方式启动,默认携带参数为 “-c -h -o -k”, 对应的目的为:

  • -c : 在所有卷上执行此操作。
  • -h : 如果默认为低优先级, (以正常优先级) 。
  • -o : 针对每种媒体类型执行适当的优化。
  • -k : 对指定的卷执行板合并。

而错误 “The volume Windows was not optimized because an error was encountered: Neither Slab Consolidation nor Slab Analysis will run if slabs are less than 8 MB. (0x8900002D)” 是因为系统执行ScheduledDefrag 任务时候出错。在大多数情况下,这是由 -k 参数引起的,该参数告诉碎片整理程序对所选卷执行块合并。这将导致小于 8 MB 的块出现错误,并且通常会在 HyperV VM 上引发错误。解决方案为在参数中移除 “-k”。

 

操作步骤

第一步:打开 Task Scheduler

 

第二步:按下图指示,点击属性进行修改

 

第三步:打开如下窗口:去除 -k 然后点击 OK 按钮

 

 

参考资料

The volume (DRIVE:) was not optimized because an error was encountered: Neither Slab Consolidation nor Slab Analysis will run if slabs are less than 8 MB. (0x8900002D)http://blog.shawnhyde.com/post/2013/11/29/the-volume-drive-was-not-optimized-because-an-error-was-encountered-neither-slab-consolidation-nor-slab-analysis-will-run-if-slabs-are-less-than-8-mb-0x8900002d

defraghttps://learn.microsoft.com/zh-cn/windows-server/administration/windows-commands/defrag

相关文章
|
25天前
|
API
【Azure Cloud Service】Cloud Service(Classic) 迁移失败,找不到解决方案怎么办?
【Azure Cloud Service】Cloud Service(Classic) 迁移失败,找不到解决方案怎么办?
|
25天前
|
Windows
【Azure 应用服务】收集App Service 关于Availability Zone, Health check 以及 Traffic Manager的文档,并了解高可用(HA)和灾备(DR)
【Azure 应用服务】收集App Service 关于Availability Zone, Health check 以及 Traffic Manager的文档,并了解高可用(HA)和灾备(DR)
|
25天前
|
安全 Windows
【Azure 云服务】Azure Cloud Service中的错误事件 Error Event(Defrag/Perflib) 解答
【Azure 云服务】Azure Cloud Service中的错误事件 Error Event(Defrag/Perflib) 解答
|
28天前
|
C++
【Azure云服务 Cloud Service】如何在部署云服务Cloud Service时候通过启动任务Start Task来配置IIS (如开启ARR)
【Azure云服务 Cloud Service】如何在部署云服务Cloud Service时候通过启动任务Start Task来配置IIS (如开启ARR)
|
26天前
|
开发框架 .NET 中间件
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
|
25天前
|
Java
【Azure 应用服务】在App Service 中如何通过Managed Identity获取访问Azure资源的Token呢? 如Key Vault
【Azure 应用服务】在App Service 中如何通过Managed Identity获取访问Azure资源的Token呢? 如Key Vault
|
26天前
【Azure 应用服务】App Service下部署的应用报错 Out of Memory
【Azure 应用服务】App Service下部署的应用报错 Out of Memory
|
26天前
|
NoSQL 网络协议 Shell
【Azure 应用服务】App Service 项目部署成功后,应用连接 Azure Redis时报错 Could not get a resource from the pool
【Azure 应用服务】App Service 项目部署成功后,应用连接 Azure Redis时报错 Could not get a resource from the pool
|
25天前
【Azure Fabric Service】Service Fabric部署失败问题 Provisioning of VM extension ConfigureVM has timed out.
【Azure Fabric Service】Service Fabric部署失败问题 Provisioning of VM extension ConfigureVM has timed out.
|
25天前
【Azure 应用服务】App Service运行时突然中断:There is not enough space on the disk : 'D:localTempASPNETCORE...
【Azure 应用服务】App Service运行时突然中断:There is not enough space on the disk : 'D:localTempASPNETCORE...