How Do I Configure the Yum Repository for the Target Server After the Migration Is Complete?
Scenarios
The yum repository of Alibaba Cloud does not have a public IP address. After you migrate a server from Alibaba Cloud to Huawei Cloud, the yum repository configured for the source server will be unavailable for the target server.
Constraints
- Huawei Cloud private DNS servers must be configured for the target server for domain name resolution. For how to obtain IP addresses of Huawei Cloud private DNS servers, see What Are Huawei Cloud Private DNS Server Addresses?
- The operations described in this section apply to x86_64 ECSs.
Procedure
- Log in to the ECS as root. For details, see Logging In to a Linux ECS.
- Back up the CentOS-Base.repo file.
mkdir -p /etc/yum.repos.d/repo_bak/
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_bak/
- Use curl to download the CentOS-Base.repo file, and save the file into /etc/yum.repos.d/:
- CentOS 6
The CentOS community no longer provides security patch update or image source support for CentOS 6. The CentOS 6 image source package has been removed from the source address http://mirror.centos.org/centos-6/ and third-party images. If you want to continue to use CentOS 6, see How Can I Use the Automated Tool to Configure a Huawei Cloud Image Source (x86_64 and Arm)?
- CentOS 7
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.myhuaweicloud.com/repo/CentOS-Base-7.repo
- CentOS 6
- Clear the original yum cache:
- Generate a new cache.
Target Server Configuration and Launch FAQs
- What Are the Differences Between Target and Source Servers After the Migration?
- How Will the Authentication of a Target Server Change?
- How Do I Optimize a Windows Target Server After the Migration Is Complete?
- How Do I Fix the Error "SMS.1113 Failed to reconfigure partition details on the target server" When I Launch the Target Server?
- After a Windows Server Was Migrated, Why Is the Used Space of C: Drive Increased?
- How Do I Uninstall the SMS-Agent from the Source and Target Servers After the Migration Is Complete?
- How Do I Configure the Yum Repository for the Target Server After the Migration Is Complete?
- Why Is the File System Size Inconsistent Before and After the Migration?
- Why Can't I See Data Disks on a Windows Target Server After Migration?
- Why Can't a Windows Target Server Access the Internet After the Migration?
- Why Is the System Recovery Options Window Displayed When the Target Server Is Started?
- How Do I Fix a GRUB Error Because an XFS Volume Is Mounted to the /boot Partition?
- What Do I Do If a Target Server Fails to Be Created?
- How Do I Troubleshoot a MySQL Startup Failure on the Target Server After the Migration?
- How Do I Resolve Error "SELinux targeted" When I Start a Linux Target Server After the Migration Is Complete?
- Why Do the Agent Plug-ins from the Source Cloud Service Provider Exist on the Target Server After the Migration Is Complete?
- Why Is the Usable Memory (RAM) Less Than the Total Installed Memory on a Target Server Running 64-bit Windows?
- After the Migration Is Complete, Will Deleting the Target Server Configuration or Server Record Affect the Source or Target Server?
- How Do I Fix BSOD Errors When I Start a Windows Target Server After the Migration?
- How Do I Fix Startup Failures of a Windows Target Server After the Migration?
- If I Change the Password of the Source Server and Perform an Incremental Replication After the Full Migration Is Complete, Will the New Password Be Synchronized to the Target Server?
- What ECS Types Are Supported by SMS?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore