创建静默快照报错:msg.snapshot.error-QUIESCINGERROR

当在ESXi上创建虚拟机快照时遇到msg.snapshot.error-QUIESCINGERROR错误,通常是由于VMware Tools超时导致的。解决方案包括更新VMware Tools至10.1.0或更高版本,或者应用特定的ESXi修补程序。此外,快照分为即写即拷和分割镜像两种类型,VSS属于即写即拷类型,依赖于客户机操作系统的VSS服务和VMware Tools的配合。

ESXi上的日志

 

 

相关背景

VMware 产品可能要求先让客户机操作系统内的文件系统进入静默模式,再执行快照操作,以便保持备份和数据的完整性。

静默操作可以由 Microsoft 卷影复制服务 (VSS) 来完成,不提供 VSS 的操作系统则使用 SYNC 驱动程序来执行静默操作。调用 VSS 时,所有 VSS 提供程序都必须处于运行状态。如果任何第三方提供程序或 VSS 服务本身存在问题,则快照操作可能会失败。

注意: 虚拟机客户机操作系统在执行快照操作后失败,需要重新引导。

原因:

由 VMware Tools 进行的用于冻结 Linux 文件系统的调用由于虚拟机上的高 I/O 而花费过长时间时,会出现此问题。 在冻结操作期间,VMware Tools 不响应,导致主机中止静默的快照操作。

如果虚拟机已完成文件系统冻结,则它会请求主机生成虚拟机的快照。 但是,由于主机之前因 VMware Tools 超时而中止了快照操作,因此此任务将会被中止,文件系统将仍处于已冻结状态。

解决办法 1或者2 :

1)Update the VMware Tools to version 10.1.0 or later.     Set the disk.EnableUUID parameter to false in the virtual_machine.vmx file.   

2)   VMware ESXi 5.1 修补程序版本 ESXi510-201510401,可从 VMware Downloads 获取。 有关详细信息,请参见 VMware ESXi 5.1, Patch Release ESXi510-201510401 (2114860)。

    VMware ESXi 5.5 Update 3,可从 VMware Downloads 获取。 有关详细信息,请参见 VMware ESXi 5.5 Update 3 Release Notes。
    VMware ESXi 6.0 Update 1,可从 VMware Downloads 获取。 有关详细信息,请参见 VMware ESXi 6.0 Update 1 Release Notes。

 

选自:vmware KB2116120         KB2079220

   

=================

延展:

快照大致分为2种,一种叫做即写即拷(copy-on-write)快照,通常也会叫作指针型快照,VSS即属于这一种,另一种叫做分割镜像快照,常叫做镜像型快照。指针型快照占用空间小,对系统性能影响较小,但如果没有备份而原数据盘坏了,数据就无法恢复了;而镜像型快照实际就是当时数据的全镜像,会对系统性能造成一定负荷,但即使原数据损坏也不会有太大影响,不过要占用到相等容量的空间。

VMware Data Recovery 使用 Microsoft Windows 卷影复制服务 (VSS) 静默,该服务可为某些 Windows 操作系统提供备份基础结构,以及提供用于创建一致的时间点数据副本(称为卷影复制)的机制。

VSS 通过与商用应用程序、文件系统服务、备份应用程序、快速恢复解决方案和存储硬件协调来生成一致的卷影复制。客户机操作系统中运行的 VMware Tools 提供 VSS 支持。VMware 提供 VSS 请求程序和 VSS 快照提供程序 (VSP)。请求程序组件可用于受支持的客户机内,并会对外部备份应用程序的事件做出响应。初始化备份过程时,VMware Tools 服务将对请求程序进行实例化。VSP 作为一种 Windows 服务进行注册,并会在应用程序处于静默状态时通知 ESX/ESXi 主机,从而生成虚拟机的快照。

根据在虚拟机中运行的客户机操作系统,Data Recovery 使用不同的静默机制。

 

卸载vmware tools   运行# vmware-uninstall-tools.pl

linux 较高发行版本可安装open-vm-tools, # yum -y install open-vm-tools.x86_64

起服务器
systemctl enable vmtoolsd.service
systemctl status vmtoolsd.service

 

[WARNING] The requested profile "yarn-build" could not be activated because it does not exist. [ERROR] Failed to execute goal on project application: Could not collect dependencies for project org.thingsboard.mqtt-broker:application:jar:2.2.0-SNAPSHOT [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker:dao:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker:dao:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker:dao:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker.common.integration:cluster-integration-api:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker.common.integration:cluster-integration-api:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker.common.integration:cluster-integration-api:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker.common:actor:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker.common:actor:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker.common:actor:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker.common:queue:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker.common:queue:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker.common:queue:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker.common:util:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker.common:util:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker.common:util:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker.common:stats:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker.common:stats:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker.common:stats:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker:ui-ngx:jar:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker:ui-ngx:pom:2.2.0-SNAPSHOT (absent): Could not transfer artifact org.thingsboard.mqtt-broker:ui-ngx:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] Failed to read artifact descriptor for org.thingsboard.mqtt-broker:dao:jar:tests:2.2.0-SNAPSHOT [ERROR] Caused by: The following artifacts could not be resolved: org.thingsboard.mqtt-broker:dao:pom:2.2.0-SNAPSHOT (absent): org.thingsboard.mqtt-broker:dao:pom:2.2.0-SNAPSHOT failed to transfer from https://repo.typesafe.com/typesafe/releases/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of typesafe has elapsed or updates are forced. Original error: Could not transfer artifact org.thingsboard.mqtt-broker:dao:pom:2.2.0-SNAPSHOT from/to typesafe (https://repo.typesafe.com/typesafe/releases/): Connection reset [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
最新发布
07-03
### 问题分析 Maven 构建失败提示 `Could not transfer artifact org.thingsboard.mqtt-broker` 并报告连接被重置(`Connection reset from repo.typesafe.com`),这通常表明在尝试从远程仓库下载依赖时发生了网络中断或 SSL/TLS 握手失败。该问题可能与 Maven 配置、本地网络环境、SSL 证书信任链或目标仓库的可用性有关。 类似错误在其他场景中也出现过,例如 Spring Boot 依赖无法从官方仓库或阿里云镜像下载的情况,其根本原因包括网络连接超时、SSL 认证失败以及依赖版本不存在等[^1]。 --- ### 解决方案 #### 检查并更新 Maven 镜像配置 若使用了默认的中央仓库或特定的第三方镜像(如阿里云)来下载 ThingsBoard MQTT Broker 的依赖,应检查镜像是否支持所需的构件。如果当前镜像不包含相关依赖,可以尝试更换为更全面的镜像源,或者直接使用官方仓库: ```xml <mirrors> <mirror> <id>central</id> <url>https://repo.maven.apache.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> ``` 此配置将确保 Maven 使用官方中央仓库进行依赖解析,避免因镜像缺失导致的构件不可达问题[^3]。 #### 检查 SSL 证书和安全协议设置 由于错误信息中提及 `Connection reset`,可能是因为 Java 安全协议版本较低,无法与远程服务器建立 TLS 连接。可以通过升级 JDK 版本至 11 或更高版本以支持现代加密协议,同时可尝试添加 JVM 参数以启用调试模式查看详细 SSL 错误日志: ```bash mvn clean install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true ``` 上述参数允许 Maven 忽略 SSL 证书验证,适用于测试环境中的临时解决方案[^3]。 #### 清理本地仓库缓存 如果之前下载过程中发生中断,可能会导致 `.part` 或 `.lock` 文件残留,影响后续构建流程。应手动删除本地仓库中与 `org.thingsboard.mqtt-broker` 相关的目录,并重新执行构建命令: ```bash rm -rf ~/.m2/repository/org/thingsboard ``` 清理后再次运行 `mvn clean install` 可触发 Maven 重新下载所需依赖[^2]。 #### 手动下载并安装依赖 如果目标依赖在公共仓库中不可用,可尝试从项目维护者提供的私有仓库或 GitHub Release 页面手动下载 JAR 包,并通过以下命令将其安装到本地仓库: ```bash mvn install:install-file -Dfile=mqtt-broker-*.jar -DgroupId=org.thingsboard -DartifactId=mqtt-broker -Dversion=1.0.0 -Dpackaging=jar ``` 此方法适用于依赖缺失或仓库不稳定的情形[^4]。 #### 检查依赖版本和仓库地址 确认 `pom.xml` 中声明的 `org.thingsboard.mqtt-broker` 版本是否存在,且仓库地址是否正确指向了包含该构件的远程仓库。若项目使用了自定义仓库(如 Artifactory),需确保其配置无误: ```xml <repositories> <repository> <id>thingsboard-repo</id> <url>https://repo.thingsboard.io/artifactory/libs-release-public/</url> </repository> </repositories> ``` 此外,应定期核对仓库状态,确保其未因服务端问题而中断响应[^1]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值