Server migration error message Client.SystemConfigure.Grub2InstallFailed

更新时间:
复制 MD 格式

When an SMC migration task fails with the "Client.SystemConfigure.Grub2InstallFailed" error, the GRUB 2 bootloader installation on the target disk has failed. Install the missing GRUB modules and retry the migration.

Problem description

During SMC migration, the migration task fails with the error message "Client.SystemConfigure.Grub2InstallFailed".

Cause

A system configuration error on the target disk prevented the GRUB 2 tool from installing the bootloader.

Solution

  1. Check the Logs/p2vs_tool.log file in the client folder for do_grub_install errors, for example:

2024-11-15 03:21:03.818 [Error]	[tool::do_grub_install] do grub install failed.
2024-11-15 03:21:03.819 [Error]	[tool::do_linux_grub] fix os grubs failed
2024-11-15 03:21:03.815 [Error]	[tool::do_grub_install] grub v2 install return: 1, error_msg: grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
  • If the log shows that the file path containing doesn't exist includes i386-pc

    • CentOS/Redhat/Aliyun/Anolis/Rocky Linux/AlmaLinux: Run yum -y install grub2-pc-modules to install the grub2 module.

    • Ubuntu/Debian: Run apt-get -y install grub-pc-bin to install the grub2 module.

  • If the log shows that the file path containing doesn't exist includes x86_64-efi

    • CentOS/Redhat/Aliyun/Anolis/Rocky Linux/AlmaLinux: Run yum -y install grub2-efi-x64-modules to install the grub2 module.

    • Ubuntu/Debian: Run apt-get -y install grub-efi-amd64-bin to install the grub module.

  • If the log shows that the file path containing doesn't exist includes arm64-efi

    • CentOS/Redhat/Aliyun/Anolis/Rocky Linux/AlmaLinux: Run yum -y install grub2-efi-aa64-modules to install the grub2 module.

    • Ubuntu/Debian: Run apt-get -y install grub-efi-arm64-bin to install the grub2 module.

  1. In the SMC client installation directory, run the ./go2aliyun_client --rerun --forcesync command to retry the migration.

  2. If the issue persists, collect the /smc/go2aliyun_client*/Logs logs and contact us.