Linux操作系统,启动Agent时,提示:SMS.6563:File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference.
问题描述
Linux系统,启动迁移Agent时,出现提示:SMS.6563:File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference。
问题分析
出现该提示说明源端服务器缺少initrd或initramfs镜像文件。因部分云服务平台的服务器系统使用了定制内核,启动时使用了特定机制,不需要initrd或initramfs镜像文件也能正常启动。但华为云平台服务器,缺少initrd或initramfs镜像文件,会导致启动失败。

Initrd和Initramfs镜像文件作用基本相同,都是为系统提供内核启动需要的驱动。
不同操作系统,使用的镜像文件不同,例如:Ubuntu操作系统使用的是Initrd镜像文件,格式为initrd.img-xxx,而部分Centos操作系统使用的是Initramfs镜像文件,格式为initramfs-xxx.img。
解决方案
本方案以Ubuntu操作系统为例介绍。
- 执行如下命令,检查源端服务器/boot 目录下是否有完整的启动文件。
#ls /boot
- 有完整启动文件的服务器如图1所示,有内核vmlinuz-xxx和对应版本的镜像文件initrd.img-xxx。
- 无完整启动文件的服务器如图2所示,只有内核vmlinuz-xxx,没有对应版本的镜像文件initrd.img-xxx。
- 执行如下命令,检查源端服务器是否缺少initrd镜像文件的更新组件。
#type update-initramfs
- 出现update-initramfs,说明存在initrd镜像文件的更新组件,请直接进行步骤4。
- 出现not found,说明缺少initrd镜像文件的更新组件,请进行下一步。
- 出现update-initramfs,说明存在initrd镜像文件的更新组件,请直接进行步骤4。
- 执行如下命令,安装initrd镜像文件的更新组件。
#apt install initramfs-tools
输入“y”,完成安装。再次执行步骤2的命令,确认安装成功。
- 执行如下命令,更新为对应版本号的initrd镜像文件。(xxxxx为对应的大版本号,xxxx为小版本号,xxx为内核来源)
#update-initramfs –c –k xxxxx-xxxx-xxx
如下图,补全版本号为5.4.0-1067-gcp的initrd镜像文件。
- 执行如下命令,进入/boot 目录,查看是否新增了正确版本号的initrd镜像文件。确认新增后,重新启动迁移Agent。
#ls /boot
Agent安装与启动 所有常见问题
- 如何在源端上安装迁移Agent?
- Agent无法下载该如何处理?
- 如何对迁移Agent进行软件完整性校验?
- 源端Agent注册后为什么主机迁移服务控制台没有记录?
- 如何查找修改SMS-Agent的配置文件?
- 如何查找SMS的运行日志?
- 为什么迁移过程中目的端ECS会被锁定?
- 如何解除目的端服务器锁定状态?
- Linux版的迁移Agent启动提示“rsync not installed on the source server”该如何处理?
- 应用程序因并行配置不正确无法启动
- 首次启动Agent时无法启动该如何处理?
- Windows Agent双击无法运行
- 启动Agent时出现“IO监控启动失败”,该如何处理?
- 启动Agent时提示“INTERNAL ERROR: cannot create temporary directory!”怎么办
- 如何处理迁移Agent提示“AK,SK鉴权失败,请保证系统时间与标准时间一致,并检查AK,SK”?
- Windows 2008 Agent启动后无法粘贴AK/SK该如何处理?
- Agent启动时提示“utf-8 codec can't decode byte 0xce in position0: invalid continuation byte”该如何处理?
- Agent启动时提示“加载wmi模块失败”该如何处理?
- Agent安装失败,“无法写入文件”或“不能打开要写入的文件”该如何处理?
- 如何重启Agent?
- Linux系统提示“/tmp卷空间不足导致agent无法启动"该如何处理?
- Linux系统提示“Agent startup failed because the noexec permission is not allow on /tmp for SMS Agent. Please remount /tmp without noexec.”该如何处理?
- 只支持迁移X86架构的服务器
- Linux启动Agent时提示“启动SMS Agent失败!磁盘”
- Window系统,启动Agent提示:SMS.1901,Agent无法读取磁盘信息
- Linux操作系统,启动Agent时,磁盘信息采集失败,该如何处理?
- Linux操作系统,启动Agent时,提示:SMS.6562:component i386-pc not found on source server. For solution, see SMS API Reference.
- Linux操作系统,启动Agent时,提示:SMS.6563:File initrd or initramfs of the xxxx version not found under /boot directory. For solution, see SMS API Reference.
- 迁移谷歌云平台服务器,选择是否禁用部分服务?
- Linux操作系统,启动Agent时,提示:SMS.0410:Failed to obtain NicName/IPAddress information of source server.
- 启动Agent失败,提示:SMS.0609,检测到就版本残留,请退出当前agent程序,完全卸载agent后,重新安装最新版
- Linux系统,启动Agent失败,提示:SMS.5103:Agent startup failed. Folder /tmp is missing
- Linux系统,启动Agent失败,提示:SMS.1353: Bind mount or repeated mount detected on /xxx of the source server.
- Linux系统,启动Agent失败,提示:SMS.1352: Unknown physical volumes detected on the source server.
- Linux系统,启动Agent失败,提示:SMS.1351: Mount point /xxx detected on the source server, which has no free space. Ensure that there is at least 1 MB of space.
more