EBS Expansion

<p>This article describes how to expand EBS.</p> <p><strong>Usage Guidelines</strong></p> <p>1.Only data disk expansion is supported and it has a quota restriction.</p> <p>2.If a data disk is creating snapshots, you cannot perform the expansion operation.</p> <p>3.Expansion only increases the capacity of a data disk and does not increase EBS partition capacity.</p> <p>4.Only EBS expansion is supported, while EBS reduction is not. For example, if you have a data disk with a capacity of 20 G, for which you create a snapshot at time t1 and expanded its capacity to 40 G at time t2, the disk capacity remains 40 G and will still be charged by that capacity even if you roll back the disk to the status of t1.</p> <p><strong>Procedures</strong></p> <p><strong>Method 1:</strong></p> <p>1.Log in to the<a href="#https://yun.pingan.com/console/ecs/overview" target="_blank"> ECS Console</a>.</p> <p>2.In the left navigation pane, click <strong>Instance</strong> to enter the <strong>Instance Management</strong> page.</p> <p>3.Select the target region and click the name of target instance to enter the <strong>Instance Information</strong> page.</p> <p>4.On the <strong>Disk </strong>tab, in the operation column of the target EBS, click <strong>EBS Upgrade</strong>.</p> <p>5.Enter the <strong>EBS Upgrade </strong>page, and enter the upgraded capacity.</p> <p>6.Click <strong>Confirm</strong> to enter the <strong>Order Confirmation</strong> page.</p> <p>7.Click <strong>CONFIRM UPGRADE</strong> to enter the <strong>Payment Result</strong> page.</p> <p><strong>Note</strong>: The expansion here only increases the capacity of the EBS not of the partition. Partition expansion needs to be performed in OS system.</p> <p><strong>Method 2:</strong></p> <p>1.Log in to the<a href="#https://yun.pingan.com/console/ecs/overview" target="_blank"> ECS Console</a>.</p> <p>2.In the left navigation pane, click <strong>Block Storage &gt; Disk</strong> to enter the <strong>Disk Management</strong> page.</p> <p>3.Select the target region, and in the operation column of the target EBS click︙.</p> <p>4.Click <strong>EBS Upgrade</strong> and the <strong>EBS Upgrade</strong> dialog box will open.</p> <p>5.Click <strong>Confirm </strong>after entering the upgraded capacity.</p> <p>6.Enter the <strong>Order Confirmation</strong> page and click <strong>CONFIRM UPGRADE</strong>.</p> <p>7.Enter the <strong>Payment Result</strong> page.</p> <p><strong>Note</strong>: The expansion here only increases the capacity of the EBS not of the partition. Partition expansion needs to be performed in OS system.</p> <p><strong>Subsequent Procedures</strong></p> <p><strong>Windows Operation System</strong><strong> Data Disk Expansion</strong></p> <p>After the EBS is expanded on the Console, the partition of the Operating System is not expanded. So, you need to expand the partition manually. This example illustrates how to expand data disk capacity from 20 G to 30 G for Windows Server 2012R264bit Operating System.</p> <p><strong>Usage Guidelines</strong></p> <p>1.When EBS is creating snapshots, expansion operation is not supported.</p> <p>2.Pay-by-month disks cannot be expanded.</p> <p>3.Disk expansion can only increase the capacity of data disks, but cannot increase that of system disks.</p> <p><strong>Prerequisites</strong></p> <p>You have successfully expanded the data disk. For more information, see EBS expansion.</p> <p><strong>Procedures</strong></p> <p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Log in to a Windows Instance.</p> <p>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On Windows desktop, right-click <strong>Start</strong>, and then click <strong>Disk Management</strong> (K) to enter the <strong>Disk Management</strong> page.</p> <p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In the menu, click <strong>Operation</strong> &gt; <strong>Refresh or Operate </strong>&gt; <strong>Rescan Disk</strong>.</p> <p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; After refreshing or rescanning the disk, you can view whether the disk data capacity has been expanded. This example illustrates how to expand a data disk from 20 G to 30 G, and Disk 1 is the data disk to be expanded.</p> <p>5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Right click the blank area of Disk 1&rsquo;s main partition, and then click <strong>Expand</strong> <strong>Volume</strong>.</p> <p>6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter the <strong>Expand</strong> <strong>Volume Navigation</strong> page, keep the default configuration, and click <strong>Next</strong>.</p> <p>7.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then you can view that Disk E is expanded to 30 G.</p> <p><strong>Linux Operation System Data Disk Expansion</strong></p> <p>After the EBS is expanded on the Console, the partition of the Operating System is not expanded. So, you need to expand the partition manually. In this case the Linux Operating System is CentOS7.2_64bit, and a data disk has been mounted. The data disk before expansion has only one main partition (0/dev/vdb) with a ext3 file system and the mounting point /test. After expansion, its capacity will be expanded from 40 G to 50 G, but it still has only one main partition.</p> <p><strong>Usage Guidelines</strong></p> <p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When an EBS is creating snapshots, expansion operation is not supported.</p> <p>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pay-by-month disks cannot be expanded.</p> <p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expansion only increases the capacity of the data disk, but does not increase the capacity of the file system.</p> <p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disk expansion can only increase the capacity of data disks, but cannot increase that of system disks.</p> <p><strong>Expand an Existing Partition</strong></p> <p><strong>Procedures</strong></p> <p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Log in to a Linux instance.</p> <p>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter df &ndash;h to view the mounting directory of the partition.</p> <p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unmount /dev/vdbl.</p> <p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Delete the former partition, and create a new one, fdisk/dev/vdl.</p> <p>(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter d, and press Enter key to delete the existing partition.</p> <p><strong>Note:</strong></p> <ul> <li>Data stored in the disk will not be cleared after the partition data disk is deleted.</li> <li>It is not recommended to perform this operation on a disk with multiple partitions.</li> </ul> <p>(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter <strong>n</strong>, and press the <strong>Enter</strong> key to create a new partition.</p> <p>(3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter <strong>p</strong>, and press the <strong>Enter</strong> key to create a new main partition.</p> <p>(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter partition number, in this case the number is 1 by default, and press the <strong>Enter</strong> key.</p> <p>(5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter the first sector number, in this case a default number is used, and press the <strong>Enter</strong> key.</p> <p>(6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter the last sector number, in this case a default number is used, and press the <strong>Enter</strong> key.</p> <p>(7)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; At last, enter <strong>w</strong>, press the <strong>Enter</strong> key, and the altered partition has been written.</p> <p>5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Check system file e2fsck -f /dev/vdb1, refresh file system size resize 2fs /dev/vdb1.</p> <p>6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Remount partition &quot;mount /dev/vdb1 /test&quot;, to enter df &ndash;h to view the expanded partition.</p> <p><strong>Partition, Format and Mount Disk</strong></p> <p><strong>Procedures</strong></p> <p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To partition a data disk, perform the following command in order:</p> <p>(1)&nbsp;&nbsp;&nbsp; Run fdisk/dev/vdb to partition the data disk.</p> <p>(2)&nbsp;&nbsp;&nbsp; Enter n, and press Enter key to create a new partition.</p> <p>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run command fdisk -l to view the new partition.</p> <p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run command mkfs.ext3 /dev/vdb1 to create a file system in the new partition.</p> <p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (It is suggested to) Back up etc/fstab by running command &quot;cp /etc/fstab /etc/fstab.bak&quot;.</p> <p>5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A disk partition can be mounted with either a partition no. or a UUID no..</p> <p>(1)&nbsp;&nbsp;&nbsp; Mounting with partition no.</p> <p>Run command &quot;echo /dev/vdb1 /mnt ext3 defaults 0 0 &gt;&gt; /etc/fstab&quot; to write new partition information in /etc/fstab.</p> <p>(2)&nbsp;&nbsp;&nbsp; Mounting with UUID no.</p> <p>[root@ebs/]# blkid /dev/vdb1</p> <p>Run command &quot;echo UUID=49c0904a-42ce-4eef-87df-0f7de059e68e /mnt ext3 defaults 0 0 &gt;&gt; /etc/fstab&quot; to write new partition information in /etc/fstab.</p> <p>6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run command &quot;mount /dev/vdb1 /mnt&quot; to mount the file system.</p> <p>7.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter df &ndash;h to view disk space and usage, and you can view that /mnt directory has been successfully mounted.</p> <p>When the disk is successfully mounted, you can use the file system space.</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products