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
- On HUAWEI CLOUD, create an ECS that runs the same OS and is in the same region and AZ as the target server.
- 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.
- 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
- 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.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.