Windows (2003/2008/2012) Elastic Cloud System Disk Expansion Method

Published: 2018-07-16


For windows data disk expansion, please refer to: https://www.west.cn/faq/list.asp?unid=512 

For linux data disk expansion, please refer to: https://www.west.cn/faq/list.asp?unid=587 

For Linux system disk, please refer to: https://www.west.cn/faq/list.asp?unid=905


Expansion after upgrading the hard disk on windows system:

Expand via script:http://downinfo.myhostadmin.net/vps/kuorong.bat Download and execute directly. For future expansion, you need to download it again and double-click to run.

I. Set up automatic expansion  

Start > Run---cmd--Enter

Copy the following command and paste it into the command line.

start powershell -NoExit -Command "Invoke-WebRequest -Uri 'http://download.west263.net/kuorong.bat' -OutFile 'C:\Windows\System32\kuorong.bat'; schtasks /create /tn 'KuorongStartup' /tr 'C:\Windows\System32\kuorong.bat' /sc onstart /ru SYSTEM /rl HIGHEST /f"

Wait for "Success: Successfully created scheduled task 'KuorongStartup'".

When expanding the disk in the future, the system will automatically complete the expansion.


2008 system  :

start powershell -NoExit -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.west263.net/kuorong.bat', 'C:\Windows\System32\kuorong.bat'); schtasks /create /tn 'KuorongStartup' /tr 'C:\Windows\System32\kuorong.bat' /sc onstart /ru SYSTEM /rl HIGHEST /f"


II. Manual operation steps

After upgrading the C drive size of an elastic cloud, the system will not automatically expand the C drive size. You need to complete the expansion according to the following operations. Before expansion, please disable the server's virtual memory and mysql and mssql services to avoid data corruption caused by the expansion.


Manual expansion for Win2008 system or Win2012:

First, please check whether virtual memory is set on the partition you want to extend to. If yes, please disable virtual memory first and restart.

Click Start > Run and enter diskmgmt.msc, then press Enter

image.png

Open Disk Management, right-click the C drive, and select [Extend Volume]

image.png

Follow the prompts and directly select Next to complete.

image.png

Use the following method to expand the C drive on Win2003 system:

1. Download Partition Adjustment.rar 

Download it to D drive (required), then extract it to D drive

blob.png

2. Double-click launcher.exe to run Partition Adjustment

blob.png

3. Next, adjust the C drive size as shown below

QQ Image 20150318113953.png

Click Yes, then click the top of the software

blob.png

Wait for execution to complete, and the C drive expansion will be completed