Help Center/ Server Migration Service/ Best Practices/ Downsizing Disks on Linux
Updated on 2024-12-16 GMT+08:00

Downsizing Disks on Linux

This section introduces how to reduce the disk capacity for a Linux server when you use SMS to migrate it to Huawei Cloud.

Prerequisites

You have performed the operations in Preparations.

Procedure

  1. Install and start the SMS-Agent on the source server. After the Agent is started, view the source server record on the Servers page of the SMS console.
  2. Configure a target server. In the Configure Basic Settings > Migration Settings (Optional) area, enable Resize Disks and Partitions and click Resize Disks and Partitions. For details about the resizing rules, see What Are the Rules for Resizing Volume Groups, Disks, and Partitions?

    Once set, the settings of disk and partition resizing cannot be modified. To modify the settings, delete the task, restart the SMS-Agent, and configure the the target server again.

  3. (Optional) Configure volume groups. If the source server uses LVM, you can resize logical and physical volumes. If the source server does not uses LVM, skip this step.
  4. Resize partitions and, if needed, click Resize Disk to adjust disk sizes.
  5. Click Next: Confirm to confirm the disk and partitions settings. Then finish the migration task configuration and start the migration.