Help Center> Server Migration Service> FAQ> Disks> How Do I Fix Error "Failed to modify the configuration files of the target server"?

How Do I Fix Error "Failed to modify the configuration files of the target server"?

Symptom

When you tried to modify the configuration files of a Linux target server, you got message "SMS.3101 Failed to modify the configuration files of the target server."

Possible Causes

The /etc/default/grub file may be incorrectly configured.

Solution

  1. On HUAWEI CLOUD, create an ECS that runs the same OS and is in the same region and AZ as the target server.
  2. Stop the target server, detach the system disk from the target server, and attach the system disk to the ECS you created as a data disk, for example, vdb.
  3. Log in to the ECS and run the following commands:

    mount /dev/vdbx /mnt (vdbx refers to the root partition of the target server system disk, such as vdb1 or vbd2.)

    cp -f /etc/default/grub /mnt/etc/default/grub

    umount /mnt

  4. Detach the disk from the ECS, attach it back to the target server, and try again.

    Do not attach the system disk of the ECS to the target server.