In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to use Aliyun's cloud migration tool to reduce disk capacity. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Disk capacity reduction
Currently, CVM ECS does not support system disk or data disk capacity reduction. If you need to reduce disk capacity, you can use Aliyun Cloud Migration tool to achieve this goal.
Realization principle
The original purpose of the cloud migration tool is to balance the online and offline business loads of Ali Cloud users, but you can use its working principle to make a detour to reduce the ECS disk capacity of the CVM.
Cloud migration tool can re-create a custom image based on your ECS instance. During the production process, you can re-specify the disk size to achieve the purpose of reducing capacity. In addition to replacing the target object with an ECS instance, the tools and restrictions for disk reduction and cloud migration are exactly the same. Even because the object is a virtualized ECS instance, it will be more convenient and have a lower probability of reporting errors.
However, this capacity reduction method will cause changes to some attributes of the original ECS instance, such as instance ID (InstanceId) and public network IP. If your instance is a private network (VPC) instance, you can convert the public network IP to an elastic public network IP to retain the public network IP. Therefore, it is recommended to use elastic public network IP (EIP) or users who are less dependent on public network IP to use this method to reduce capacity.
prerequisite
When you mount a Linux instance on disk, you need to install the remote data synchronization tool rsync in the instance in advance.
CentOS instance: run yum install rsync-y
Ubuntu instance: run apt-get install rsync-y
Debian instance: run apt-get install rsync-y
Other distributions: refer to the documentation related to the installation of the official website of the distribution
You need to create an Access Key in the console in advance for output to the configuration file user_config.json.
Note: due to the excessive AccessKey permissions, in order to prevent data leakage, it is recommended that you create a RAM user sub-account and create an AccessKey using the RAM user sub-account.
For more prerequisites and restrictions, please see using Cloud Migration tool to migrate servers to Aliyun.
Operation steps
Use the administrator / root account to remotely connect to the target ECS instance.
Download the ZIP package of Aliyun's cloud migration tool.
Extract the cloud migration tool and go to the client file directory of the corresponding operating system and version to find the configuration file user_config.json.
See the paragraph to customize the user_config.json to complete the configuration.
The profile Linux Shell displays as shown in the following figure.
In the scenario of disk capacity reduction, the parameters you need to focus on are:
System_disk_size: this parameter can be set to the expected value of the downsized system disk (in GB), which cannot be less than the actual usage space of the system disk.
Data_disks: this parameter can be set to the expected value of the downsized data disk (in GB). This value cannot be less than the actual usage space of the data disk.
Note:
When the Linux instance comes with a data disk, you need to configure the parameter data_disks even if you do not consider reducing the capacity of the data disk, otherwise the cloud migration tool will copy the data from the data disk to the system disk by default.
When the Windows instance comes with a data disk, if there is no need to reduce the capacity of the data disk, you can leave the parameter data_disks unconfigured.
Execute the client main program go2aliyun_client.exe:
Windows instance: right-click go2aliyun_client.exe and select run as administrator.
Linux instance:
Running chmod + x go2aliyun_client gives the client executable permissions.
Run. / go2aliyun_client to run the client.
Wait for the result of the run:
When there is Goto Aliyun Finished! When prompted, go to the ECS console image details page to view the custom image after being scaled down. If a custom image has been generated, you can release the original instance, and then use the generated custom image to create an ECS instance. After the creation is completed, the disk reduction work has been completed.
When there is Goto Aliyun Not Finished! When prompted, check the log files in the Logs folder in the same directory for troubleshooting. After fixing the problem, re-run the cloud migration tool to resume the capacity reduction work, and the cloud migration tool will continue to migrate the cloud from the progress of the previous implementation, without having to start all over again.
So much for sharing about how to use Aliyun's cloud migration tool to reduce disk capacity. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.