To expand the capacity of a cloud hard disk, follow these general steps:
- Check Compatibility: Ensure your cloud provider supports disk expansion for your current disk type (e.g., SSD, HDD).
- Backup Data: Before resizing, create a snapshot or backup to prevent data loss.
- Resize the Disk: Use the cloud provider's console or API to increase the disk size.
- Extend File System: After resizing, adjust the file system (e.g., ext4, NTFS) to recognize the new capacity.
Example:
If you're using a 100GB cloud disk and need 200GB:
- Create a snapshot of the disk.
- Resize the disk to 200GB via the cloud console.
- Log in to your server and run
resize2fs (Linux) or expand the volume in Disk Management (Windows).
For Tencent Cloud, use Cloud Block Storage (CBS) to scale disk capacity. Snapshots can be created via CBS Snapshot for backup, and resizing is managed through the CVM Console or API. After resizing, use resize2fs to apply the changes.