Data Disk Partition and Formating of Windows CVMs

Last updated: 2017-10-25 15:07:24

PDF

By default, the data disks purchased on the CVM purchase page are not automatically mounted under an offline state. Data disks that are not partitioned and formatted cannot be used. This tutorial will guide you to mount, partition and format data disks in a Windows system.

The path to the "Disk Management" interface may vary with the Windows version (Windows 2012, Windows 2008, Windows 2003, etc.), but the steps to partition and format the disks are basically the same.

This article provides the guide on how to mount, partition and format data disks on Windows 2012 and Windows 2008.

Note:

Once formatted, all the data in the disk will be cleared. Make sure that there is no data left in the disk or the important data has been backed up before formatting. To avoid any service exception, make sure that the CVM has stopped providing services before formatting.

1. Disk Partitioning and Formatting on Windows 2012

On Windows 2012, the path to Disk Management is "Start" - "Server Management" - "Tools" - "Computer Management" - "Disk Management".

"Disk 1" is an unpartitioned disk. Here, the process is illustrated by creating one partition for "Disk 1". Right click on Disk 1, then select "Online". Right click again, then select "Initialize Disk". Select "GPT" or "MBR" depending on the partitioning method, and click on the "OK" button.

Note: Make sure to select GPT as the partitioning method if the disk is larger than 2TB.

Right click on the unallocated space, and select "New Simple Volume". In the "New Simple Volume Wizard" pop-up window, click "Next".
Enter the desired disk size for the partition, then click "Next". Enter the drive letter, then click "Next". Select "File System", then "Format Partition", and click "Next". Upon completing the New Simple Volume Wizard, click "Finish".

2. Disk Partitioning and Formatting on Windows 2008

On Windows 2008, the path to "Disk Management", different from that on Windows 2012, is "Server Management" - "Storage" - "Disk Management".

"Disk 1" is an unallocated disk. Here, the process is illustrated by creating one partition for "Disk 1".

"Disk 1" is not online in the initial state. Right click "Disk 1", and then click "Online" in the pop-up menu.

Again, right click "Disk 1", and then click "Initialize Disk" in the pop-up menu.

Select the GPT initialization method, and click the "OK" button.

Note: Make sure to select GPT as the partitioning method if the disk is larger than 2TB.

Right click on the unallocated region behind "Disk 1", and select "New Simple Volume" in the shortcut menu that pops up.
As prompted by the Wizard, enter the size of the disk partition, then click "Next".

Select "File System", then "Format Partition", and click "Next".

Upon completing the New Simple Volume Wizard, click "Finish".

"Formatting..." is displayed.

At this point, the newly partitioned data disk can be seen on the computer screen.

Note: Do not convert a basic hard disk to a dynamic hard disk. We are not liable for any data loss arising out of this action.

3. Online Settings

Under a Windows operating system, online settings are often needed in Disk Management. To help you make better use of Elastic Cloud Block Storage, we recommend that you modify the operating system as follows:
Open the cmd line and run the following command

diskpart
san policy = onlineall

Once remounted to the Windows CVM, the Elastic Cloud Block Storage can be used directly without any user action as long as it contains a valid file system.