现象
通过 Linux 代理程序对机器进行整机备份或磁盘/卷备份
备份失败且提示以下错误:
No volumes have been found while processing the 'All Volumes' template.*
或者
No volumes have been found while processing the 'Fixed Volumes' template
或者
The SnapAPI kernel module is not loaded for the kernel currently running on the system. Install the module for this kernel version, and then retry the backup.
Error code: 101
Module: 149
LineInfo: 0x14525B055CC9B598
Fields: {"$module":"disk_bundle_lxa64_14330"}
Message: The SnapAPI kernel module is not loaded for the kernel -default that is running in this system. Install the module for this kernel version, and then retry the backup.
原因
没有为系统上当前运行的内核版本加载 SnapAPI 内核模块。 此错误通常发生在内核更新之后。
如果自安装安克诺斯产品以来没有成功备份,则 snapapi 模块可能安装不正确或根本没有安装。
解决方案
首先,安装与内核版本完全匹配的内核源程序:有关说明,请参阅产品文档。
安装必要的源后,在机器上重新安装 Linux 下的代理程序。
如果此方案不能解决问题,请从受影响的计算机收集系统信息并参考本文联系技术支持部门。
如果安装失败或者安装后备份失败,并显示“没有为在此系统中运行的内核 4.15.0-121-generic 加载 SnapAPI 内核模块。安装此内核版本的模块,然后重试备份。”内核更新后,模块在更新过程中没有正确重建。当安装新内核并重新启动系统时,dkms_autoinstaller 会尝试为新内核自动构建模块。如果重新启动后模块不存在,则 dkms_autoinstaller 未启动或无法构建模块。为避免此问题,您需要在更新内核时安装 kernel-devel 软件包。
如果安装失败或者安装后备份失败,并在 CentOS 上显示“没有为再次系统中运行的内核 4.18.0-193.19.1.el8_2.x86_64 加载 Snap API 内核模块。安装此内核版本的模块,然后重试备份” Cent OS 8.2 启用安全启动后,该问题是由 Red Hat 确认的 Bug 1861977 引起的。作为该问题的解决方法,降级 grub2 及其依赖项:
yum downgrade grub2 shim mokutil