tencent cloud

Feedback

Extending Data Disk Partitions and File Systems (Windows)

Last updated: 2023-12-21 21:32:23

    Overview

    After expanding a cloud disk in the console, you need to either assign its expanded capacity to an existing partition, or format it into an independent new partition.
    If you expand a cloud disk that is attached to a running CVM, you need to rescan the disk to recognize the disk capacity after expansion.
    If the cloud disk to be expanding is not attached to a CVM or the attached CVM is shut down, the disk capacity after expansion will be automatically recognized.
    Note:
    Extending the file system may affect existing data. We strongly recommend that you manually create a snapshot to back up your data before performing the operation.
    To extend the file system, you need to restart the instance or rescan the disk, which will lead to business interruption for a certain period. We recommend you choose an appropriate time for this operation.
    After extension of the file system, we strongly recommend you rescan the disk to recognize the capacity. If you refresh the system or perform other operations, the expanded capacity may not be recognized.

    Prerequisite

    You have attached the cloud disk to a Windows CVM via the console and created a file system.
    You have logged in to a Windows CVM instance on which you want to extend partitions and the file system. See Logging in to Windows Instance Using RDP (Recommended).
    Note:
    This document describes how to expand a disk attached to a CVM instance with Windows Server 2012 R2 installed. Note that the steps may vary by operating system version.

    Directions

    Note:
    If you expand a cloud disk that is attached to a running CVM instance in the console, you must rescan the disk to recognize the capacity before extending the file system of an existing partition or creating a partition.
    If the cloud disk to be expanded is not attached to a CVM instance or the attached CVM instance is shut down, you can directly proceed with extending the file system of an existing partition or creating a partition.
    If the Virtio driver of the CVM is earlier than version 58003, restart the instance before performing the operation. You can first check the Virtio driver version.

    Rescanning the disk

    1. Right-click
    
    and select Computer Management.
    2. On the left sidebar of the Computer Management window, select Storage > Disk Management.
    3. Right-click Disk Management and select Rescan Disks.
    4. After the scan is completed, check whether the data disk has expanded to the specified size. (In this example, the scan shows that the cloud disk is expanded from 10 GB to 50 GB).

    Extending the file system of an existing partition or creating a partition

    You can extend the file system of an existing partition or create a partition as instructed below:
    Extending the file system of an existing partition
    Creating a partition
    1. Right-click the blank space of the disk and select Extend Volume.
    2. Follow the Extend Volume Wizard to extend the volume. The new data disk capacity will be added to the original volume.
    1. Right-click the free space of the disk and select New Simple Volume.
    2. Follow the New Simple Volume Wizard to create a simple volume with default settings. The new data disk capacity will be formatted into a new partition.

    Viewing the Virtio driver version

    1. Right-click
    
    and select Device Manager.
    2. Unfold Storage Controller items and double-click Tencent VirtIO SCSI controller.
    3. Select the Driver tab to view the current version, which is 58005 here.

    References

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support