User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter...

46
Elastic Volume Service User Guide Issue 04 Date 2016-12-30 HUAWEI TECHNOLOGIES CO., LTD.

Transcript of User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter...

Page 1: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Elastic Volume Service

User Guide

Issue 04

Date 2016-12-30

HUAWEI TECHNOLOGIES CO., LTD.

Page 2: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Copyright © Huawei Technologies Co., Ltd. 2017. All rights reserved.No part of this document may be reproduced or transmitted in any form or by any means without prior writtenconsent of Huawei Technologies Co., Ltd. Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.All other trademarks and trade names mentioned in this document are the property of their respectiveholders. NoticeThe purchased products, services and features are stipulated by the contract made between Huawei and thecustomer. All or part of the products, services and features described in this document may not be within thepurchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,and recommendations in this document are provided "AS IS" without warranties, guarantees orrepresentations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in thepreparation of this document to ensure accuracy of the contents, but all statements, information, andrecommendations in this document do not constitute a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.Address: Huawei Industrial Base

Bantian, LonggangShenzhen 518129People's Republic of China

Website: http://www.huawei.com

Email: [email protected]

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

i

Page 3: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Contents

1 Overview......................................................................................................................................... 11.1 Description......................................................................................................................................................................21.2 What Functions Does EVS Provide?..............................................................................................................................21.3 What Are the Types of EVS Disks?............................................................................................................................... 21.4 EVS Charging Standards................................................................................................................................................ 21.5 Relationships with Other Services..................................................................................................................................3

2 Getting Started............................................................................................................................... 42.1 Operation Procedure....................................................................................................................................................... 52.2 Purchasing an EVS Disk.................................................................................................................................................52.3 Initializing an EVS Disk (Windows).............................................................................................................................. 92.4 Initializing an EVS Disk (Linux)..................................................................................................................................13

3 Operation Guide..........................................................................................................................183.1 Managing EVS Disks................................................................................................................................................... 193.2 Expanding Capacity of an EVS Disk (Windows).........................................................................................................203.3 Expanding Capacity of an EVS Disk (Linux).............................................................................................................. 273.4 Backing Up EVS Disks................................................................................................................................................ 34

4 FAQs...............................................................................................................................................364.1 What Is Elastic Volume Service?..................................................................................................................................374.2 What Are the Types of EVS Disks?............................................................................................................................. 374.3 What Are EVS Disk Specifications?............................................................................................................................ 374.4 How Is the EVS Disk Performance?............................................................................................................................ 374.5 How Many EVS Disks Can Be Attached to an ECS?.................................................................................................. 384.6 Can an EVS Disk Be Attached to Multiple ECSs?...................................................................................................... 384.7 How to Attach an EVS Disk to an ECS?......................................................................................................................384.8 Can EVS Disk Capacity Be Changed?......................................................................................................................... 384.9 Is Disk Capacity Expansion Supported?...................................................................................................................... 384.10 How Do I Expand EVS Disk Capacity?.....................................................................................................................384.11 How Many EVS Disks Can I Purchase?.....................................................................................................................394.12 Will Data in the EVS Disk Be Lost When the EVS Disk Is Detached?.....................................................................394.13 How Many Status Types Does an EVS Disk Have? What Does Each Status Type Mean?....................................... 394.14 What Should I Do If an Error Occurs on My EVS Disk?.......................................................................................... 40

Elastic Volume ServiceUser Guide Contents

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

ii

Page 4: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

A Change History........................................................................................................................... 42

Elastic Volume ServiceUser Guide Contents

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

iii

Page 5: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

1 Overview

1.1 Description

1.2 What Functions Does EVS Provide?

1.3 What Are the Types of EVS Disks?

1.4 EVS Charging Standards

1.5 Relationships with Other Services

Elastic Volume ServiceUser Guide 1 Overview

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

1

Page 6: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

1.1 DescriptionElastic Volume Service (EVS) disks are scalable virtual block storage devices designedbased on the distributed architecture. You can create EVS disks online and attach them toElastic Cloud Servers (ECSs). The method for using EVS disks is the same as that for usinghard disks on physical servers. Compared with traditional hard disks, EVS disks have higherdata reliability and I/O throughput capabilities. They are also easier to use. EVS disks applyto file systems, databases, and system software and applications that require block storagedevices.

EVS disks are also called disks.

1.2 What Functions Does EVS Provide?EVS provides hard disk resources for ECSs. With EVS, you can:

l Create an EVS disk.

l Attach an EVS disk to an ECS.

l Expand the capacity of an EVS disk.

l Create an EVS disk backup.

l Detach an EVS disk.

l Delete an EVS disk.

l Query an EVS disk.

1.3 What Are the Types of EVS Disks?Three types of EVS disks are provided: ultra-high I/O, high I/O, and common I/O. EVS diskswith different I/O capacities provide different features, and their prices also vary. Choose EVSdisks based on your requirements.

l EVS disks with ultra-high I/O

EVS disks that use solid state disk (SSD). These EVS disks provide ultra-high I/O andlow latency. They support Relational Database Service (RDS), Not Only SQL(NoSQL), and data warehouse applications.

l EVS disks with high I/O

EVS disks that use serial attached SCSI (SAS). These EVS disks provide high I/O andlow latency. They support RDS, NoSQL, data warehouse, and file system applications.

l EVS with common I/O

EVS disks that use Serial Advanced Technology Attachment (SATA). These EVS disksprovide reliable block storage and can run key applications.

1.4 EVS Charging StandardsEVS disk charging standards are made based on factors, such as capacity, type, and useduration. You can pay for EVS disks in Yearly/Monthly . For details, see Table 1-1.

Elastic Volume ServiceUser Guide 1 Overview

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

2

Page 7: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Table 1-1 EVS charging standards

Charging Item

ProductType

Description

StepSpecifications

Unit By Hour ByMonth

ByYear

EVS CommonI/O

Linearcharging

1 GB Yuan perGB

0.000667 0.32 3.2

EVS High I/O Linearcharging

1 GB Yuan perGB

0.002229 1.07 10.7

EVS Ultra-high I/O

Linearcharging

1 GB Yuan perGB

0.005208 2.5 25

1.5 Relationships with Other Servicesl ECS: EVS disks can be attached to ECSs and can be used as scalable block storage

devices.l Volume Backup Service (VBS): The VBS service can back up EVS disk data to ensure

the reliability and security of the ECS data.l Cloud Eye (CES): After enabling the EVS service, you can use the CES service to view

the status of monitored service objects without installing additional plug-ins. Table 1-2lists the EVS monitoring metrics.

Table 1-2 EVS monitoring metrics

Metric Definition Monitored Object

Formula

Disk ReadRate

This metric is used to show thenumber of bytes read from themonitored object per second(bytes/second).

EVS disks Total number of bytesread from an EVS diskattached to the ECS/Monitoring period

Disk WriteRate

This metric is used to show thenumber of bytes written to themonitored object per second(bytes/second).

EVS disks Total number of byteswritten to an EVS diskattached to the ECS/Monitoring period

Disk ReadRequests

This metric is used to show thenumber of read requests sent tothe monitored object persecond (requests/second).

EVS disks Total number of readrequests sent to an EVSdisk attached to theECS/Monitoring period

Disk WriteRequests

This metric is used to show thenumber of write requests sentto the monitored object persecond (requests/second).

EVS disks Total number of writerequests sent to an EVSdisk attached to theECS/Monitoring period

Elastic Volume ServiceUser Guide 1 Overview

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

3

Page 8: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

2 Getting Started

2.1 Operation Procedure

2.2 Purchasing an EVS Disk

2.3 Initializing an EVS Disk (Windows)

2.4 Initializing an EVS Disk (Linux)

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

4

Page 9: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

2.1 Operation ProcedureFigure 2-1 shows the process of EVS disk-related operations.

Figure 2-1 Operation procedure flow chart

2.2 Purchasing an EVS Disk

Precautions

When an ECS is created, the system disk is automatically added. You do not need toindependently purchase the system disk.

You can purchase data disks during or after ECS creation. If you create data disks during ECScreation, the system automatically attaches the data disks to the ECS. If you purchase datadisks after ECS creation, you must manually attach the purchased data disks to the ECS.

Purchasing an EVS Disk

Step 1 Log in to official website of Huawei Enterprise Cloud.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

5

Page 10: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Step 2 Click Register in the upper right corner of the page.

On the displayed Register page, register an account as prompted. For details, see Register onHuawei Enterprise Cloud Management Console.

After you have successfully registered, the system automatically redirects you to yourpersonal information page.

Step 3 Return to the homepage of Huawei Enterprise Cloud and click Elastic Volume Service(EVS) in the Various Products area.

The page for you to purchase EVS disks is displayed.

Step 4 Click Buy Now.

Step 5 Configure the basic information about the EVS disk, as shown in Table 2-1.

NOTE

You can also select Create from Backups to create new EVS disks using backup data. For details, seeCreate an EVS Disk Using a VBS Backup in section Data Restoration Using a VBS Backupprovided in the Volume Backup Service User Guide.

Table 2-1 Parameter description

Parameter Description Remarks

AZ MandatorySpecifies the availability zone (AZ)within which the EVS disk is to becreated.

The AZ must be the same asthe one accommodating thetarget ECS.

Capacity MandatorySpecifies the disk size (GB).The parameter value is as follows:l System disk: 40 GB to 32768 GBl Data disk: 100 GB to 32768 GB

If you use a backup to createan EVS disk, the diskcapacity must be greaterthan or equal to the backupsize. When the disk capacityis not specified, the size ofthe disk is the same as thesize of the backup.The maximum number ofEVS disks as well as themaximum disk capacityallowed to purchase aredisplayed. To ensureeffective resource usage, anupper limit is set on thecapacity of EVS disks to bepurchased. If the capacity ofthe EVS disks you needexceeds the upper limit,click Apply for HigherQuota to obtain higherquota. You can purchase theEVS disks you need afterthe request is approved.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

6

Page 11: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Parameter Description Remarks

Disk Name OptionalThe disk name can contain letters,digits, hyphens (-), and underscores(_), and cannot exceed 64 characters.l If you create disks one by one,

this parameter value is used as theactual disk name.

l If you create disks in batches, thisparameter value is used as theprefix of disk names, and the diskname is in the Disk name-4 digitformat.

For example, if you createtwo disks and use volume asthe disk name, the EVS disknames will be volume-0001and volume-0002.

Disk Type Mandatoryl Common I/O: EVS disks that use

Serial Advanced TechnologyAttachment (SATA). These EVSdisks provide reliable blockstorage and can run keyapplications.

l High I/O: EVS disks that useserial attached SCSI (SAS).These EVS disks provide highI/O and low latency and supportRDS, NoSQL, data warehouse,and file system applications.

l Ultra-high I/O: EVS disks thatuse solid state disk (SSD). TheseEVS disks provide ultra-high I/Oand low latency and supportRDS, NoSQL, and datawarehouse applications.

Charging Mode MandatoryYearly/Monthly

N/A

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

7

Page 12: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Parameter Description Remarks

Quantity MandatorySpecifies the number of disks to becreated in batches. The default valueis set to 1, which means only onedisk is created. Currently, you cancreate up to 100 disks at a time.NOTE

If EVS disks are created using backups,batch creation is not supported, and thisparameter must be set to 1.

The maximum number ofEVS disks you are allowedto purchase is displayed. Toensure effective resourceusage, an upper limit is seton the number of EVS disksto be purchased. If thenumber of the EVS disksyou need exceeds the upperlimit, click Apply forHigher Quota to obtainhigher quota. You canpurchase the EVS disks youneed after the request isapproved.

Valid Period MandatoryThe valid period ranges from 1month to 3 years.

N/A

Step 6 Click Buy Now.

Step 7 Confirm EVS disk information, and read and agree to the service agreement.

Step 8 Click Submit Order.

Step 9 Pay for EVS disks as prompted and click OK.

The homepage of Elastic Volume Service is displayed.

Step 10 Enter the name of the new EVS disk in the search box above the upper right corner of the disk

list. Click to view the disk creation information.

Step 11 After the EVS disk is created and its status changes to Available, locate the row that containsthe EVS disk and click Attach in the Operation column.

Step 12 In the displayed dialog box, select the ECS to which the disk is to be attached. Select themount point from the drop-down list and then click Attach.

The mount point is the drive letter of the EVS disk to be attached to the ECS. The mountpoint for each EVS disk on the same ECS must be unique.

Return to the disk list page. If the disk status changes to In-use, the EVS disk is successfullyattached to the ECS.

Step 13 Initialize the data disk.

For details, see 2.3 Initializing an EVS Disk (Windows) or 2.4 Initializing an EVS Disk(Linux).

----End

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

8

Page 13: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

2.3 Initializing an EVS Disk (Windows)Scenarios

The method for initializing EVS disks varies depending on the operating system (OS) runningon the ECS. This section uses the Windows Server 2008 R2 Enterprise OS to describe how toinitialize an EVS disk of an ECS running Windows. For details about initializing the EVSdisks of ECSs running other Windows OSs, see the OS product documentation.

EVS disks can be used only after being initialized in either of the following scenarios:

l EVS disks are added to an ECS during ECS creation.l New EVS disks are attached to an ECS for capacity expansion.

Prerequisitesl You have logged in to the ECS. For details, see Logging In to an ECS in the Elastic

Cloud Server User Guide.l EVS disks have been attached to the ECS and have not been initialized.

ProcedureStep 1 In the ECS desktop, right-click Computer and choose Manage from the shortcut menu.

The Server Manager page is displayed.

Step 2 In the navigation tree, choose Storage > Disk Management.

Step 3 In the right pane, a disk list is displayed, and the Initialize Disk dialog box is displayedindicating the disks that need to be initialized. Select MBR (Master Boot Record) and clickOK, as shown in Figure 2-2.

Figure 2-2 Unallocated disks

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

9

Page 14: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Step 4 Right-click the unallocated area on the disk and choose New Simple Volume from theshortcut menu, as shown in Figure 2-3.

Figure 2-3 Creating a simple disk

Step 5 On the displayed New Simple Volume Wizard page, click Next.

Figure 2-4 New simple volume wizard

Step 6 Specify the simple volume size as required (the default value is the maximum) and clickNext.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

10

Page 15: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 2-5 Specifying the volume size

Step 7 Assign the driver letter and click Next.

Figure 2-6 Assigning the driver letter or path

Step 8 Format the new partition by the configuration parameters and click Next.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

11

Page 16: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 2-7 Formatting the partition

Figure 2-8 Completing the partition creation

Step 9 Click Finish to complete the wizard. Wait for the initialization to complete. When the volumestatus changes to Healthy, the initialization is successful, as shown in Figure 2-9.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

12

Page 17: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 2-9 Successful disk initialization

----End

2.4 Initializing an EVS Disk (Linux)

Scenarios

The method of initializing EVS disks varies depending on the OS running on the ECS. Thissection uses the CentOS 7.0 64-bit OS to describe how to initialize an EVS disk of an ECSrunning Linux. For details about initializing the EVS disks of ECSs running other Linux OSs,see the OS product documentation.

EVS disks can be used only after being initialized in either of the following scenarios:

l EVS disks are added to an ECS during ECS creation.

l New EVS disks are attached to an ECS for capacity expansion.

Prerequisitesl You have logged in to the ECS as user root. For details, see Logging In to an ECS in

the Elastic Cloud Server User Guide.

l EVS disks have been attached to the ECS and have not been initialized.

Creating Partitions and Attaching a Disk

The following operations are used as an example. When a new data disk is attached to anECS, the disk must be set as the primary partition in ext4 format and be automaticallyattached to the /mnt/sdc directory upon ECS start.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

13

Page 18: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Step 1 Run the following command to query information about the newly added EVS disk:

fdisk -l

If information similar to the following is displayed, the ECS contains two disks. /dev/xvda isused as the system disk, and /dev/xvdb is the newly added data disk.

[root@ecs-b656 test]# fdisk -l

Disk /dev/xvda: 42.9 GB, 42949672960 bytes, 83886080 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x000cc4ad

Device Boot Start End Blocks Id System/dev/xvda1 * 2048 2050047 1024000 83 Linux/dev/xvda2 2050048 22530047 10240000 83 Linux/dev/xvda3 22530048 24578047 1024000 83 Linux/dev/xvda4 24578048 83886079 29654016 5 Extended/dev/xvda5 24580096 26628095 1024000 82 Linux swap / Solaris

Disk /dev/xvdb: 10.7 GB, 10737418240 bytes, 20971520 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes

Step 2 Run the following command to switch to the fdisk mode:

fdisk Newly added data disk

/dev/xvdb is used as an example.

fdisk /dev/xvdb

Information similar to the following is displayed:

[root@ecs-b656 test]# fdisk /dev/xvdbWelcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Device does not contain a recognized partition tableBuilding a new DOS disklabel with disk identifier 0xb00005bd.Command (m for help):

Step 3 Enter n and press Enter to create partitions.

Enter n to add a partition.

Information similar to the following is displayed:

l p indicates the primary partition.l e indicates the extended partition.Command (m for help): nPartition type: p primary (0 primary, 0 extended, 4 free) e extended

Step 4 Enter p and press Enter to create a primary partition as an example.

Information similar to the following is displayed: (Partition number indicates the serialnumber of the primary partition. The value can be 1 to 4.)

Select (default p): pPartition number (1-4, default 1):

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

14

Page 19: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Step 5 Enter the number of the primary partition and press Enter. Primary partition number 1 is usedas an example.

Information similar to the following is displayed: (First sector indicates the start cylindernumber. The value can be 2048 to 20971519, and the default value is 2048.)

Partition number (1-4, default 1): 1First sector (2048-20971519, default 2048):

Step 6 Select the default start cylinder number 2048 and press Enter.

Information similar to the following is displayed: (Last sector indicates the end cylindernumber. The value can be 2048 to 20971519, and the default value is 20971519.)

First sector (2048-20971519, default 2048):Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519):

Step 7 Select the default end cylinder number 20971519 and press Enter.

Information similar to the following is displayed: (A primary partition is created for a 10-GBdata disk.)

Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519):Using default value 20971519Partition 1 of type Linux and of size 10 GiB is setCommand (m for help):

Step 8 Enter p and press Enter to view the created partition.

Information similar to the following is displayed: (Details about the /dev/xvdb1 partition aredisplayed.)

Command (m for help): p

Disk /dev/xvdb: 10.7 GB, 10737418240 bytes, 20971520 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0xb00005bd

Device Boot Start End Blocks Id System/dev/xvdb1 2048 20971519 10484736 83 Linux

Command (m for help):

Step 9 Enter w and press Enter to write the partition result to the partition table.

Information similar to the following is displayed: (The partition is successfully created.)

Command (m for help): wThe partition table has been altered!

Calling ioctl() to re-read partition table.Syncing disks.

Step 10 Run the following command to synchronize the new partition table to the data disk:

partprobe

Step 11 Run the following command to set the format for the file system of the newly createdpartition:

mkfs -t File system format /dev/xvdb1

The ext4 file format is used as an example.

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

15

Page 20: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

mkfs -t ext4 /dev/xvdb1

Information similar to the following is displayed:[root@ecs-b656 test]# mkfs -t ext4 /dev/xvdb1mke2fs 1.42.9 (28-Dec-2013)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks655360 inodes, 2621184 blocks131059 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=215167795280 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: doneWriting inode tables: doneCreating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: done

The initialization takes a period of time. Observe the system running status, and do not exit.

Step 12 Run the following command to create a mounting directory:

mkdir Mounting directory

/mnt/sdc is used as an example.

mkdir /mnt/sdc

Step 13 Run the following command to attach the new partition to the created directory:

mount /dev/xvdb1 Mounting directory

Attaching the newly created partition to the /mnt/sdc directory is used as an example.

mount /dev/xvdb1 /mnt/sdc

Step 14 Run the following command to view the attachment result:

df -TH

Information similar to the following is displayed: (The newly created /dev/xvdb1 partition isattached the /mnt/sdc directory.)[root@ecs-b656 test]# df -THFilesystem Type Size Used Avail Use% Mounted on/dev/xvda2 xfs 11G 7.4G 3.2G 71% /devtmpfs devtmpfs 4.1G 0 4.1G 0% /devtmpfs tmpfs 4.1G 82k 4.1G 1% /dev/shmtmpfs tmpfs 4.1G 9.2M 4.1G 1% /runtmpfs tmpfs 4.1G 0 4.1G 0% /sys/fs/cgroup/dev/xvda3 xfs 1.1G 39M 1.1G 4% /home/dev/xvda1 xfs 1.1G 131M 915M 13% /boot/dev/xvdb1 ext4 11G 38M 9.9G 1% /mnt/sdc

----End

Setting Automatic Disk Attachment Upon ECS StartTo enable automatic disk attachment when an ECS starts, you cannot specify /dev/xvdb1in /etc/fstab. This is because the sequence codes of cloud devices may change during the ECS

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

16

Page 21: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

stop and start. You are advised to use the universally unique identifier (UUID) to set theautomatic disk attachment.

NOTE

The disk UUID is the unique character string for storage devices in a Linux system.

Step 1 Run the following command to query the disk UUID:

blkid Disk partition

Querying the UUID of /dev/xvdb1 is used as an example:

blkid /dev/xvdb1

Information similar to the following is displayed:

[root@ecs-b656 test]# blkid /dev/xvdb1/dev/xvdb1: UUID="1851e23f-1c57-40ab-86bb-5fc5fc606ffa" TYPE="ext4"

Step 2 Run the following command to open the fstab file using the vi editor:

vi /etc/fstab

Step 3 Press i to enter the editing mode.

Step 4 Move the cursor to the end of the file and press Enter. Then add the following information:UUID=1851e23f-1c57-40ab-86bb-5fc5fc606ffa /mnt/sdc ext4 defaults 0 2

Step 5 Press Esc, enter :wq, and press Enter.

The system saves the configurations and exits the vi editor.

----End

Elastic Volume ServiceUser Guide 2 Getting Started

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

17

Page 22: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

3 Operation Guide

3.1 Managing EVS Disks

3.2 Expanding Capacity of an EVS Disk (Windows)

3.3 Expanding Capacity of an EVS Disk (Linux)

3.4 Backing Up EVS Disks

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

18

Page 23: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

3.1 Managing EVS Disks

Attaching an EVS DiskAfter you have purchased EVS disks, attach them to ECSs. ECSs use EVS disks as data disks.A system disk is automatically added to the ECS upon the ECS creation, and you do not needto manually attach the system disk.

Data disks can also be created upon the ECS creation. Therefore, they do not need to beattached during this period. When you independently purchase EVS disks, attach the EVSdisks to ECSs. To attach EVS disks, perform the following operations:

Step 1 Log in to the management console.

Step 2 Click . Under Storage, click Elastic Volume Service.

Step 3 Locate the target EVS disk and click Attach. Table 3-1 shows the details about the disk.

Table 3-1 Configuration description

Type of AttachedDisks

Type of AttachedECSs

Number ofAttached ECSs

Number of ECSMount Points

EVS ECS 1 14

Step 4 In the displayed dialog box, select the ECS to which the disk is to be attached. Select themount point from the drop-down list and then click Attach.

The mount point is the drive letter of the EVS disk to be attached to the ECS. The mountpoint for each EVS disk on the same ECS must be unique.

Return to the disk list page. If the disk status changes to In-use, the EVS disk is successfullyattached to the ECS.

Step 5 Initialize the EVS disk.

For details, see 2.3 Initializing an EVS Disk (Windows) or 2.4 Initializing an EVS Disk(Linux). The procedure for formatting EVS disks varies depending on the OSs running on theECS. For details, see the related OS product documentation.

----End

Detaching an EVS DiskA system disk (mounted on the /dev/sda mount point) can be detached from an ECS onlywhen the ECS is in the Stopped state. Therefore, stop an ECS before detaching system disksfrom it. A data disk can be detached from an ECS when the ECS is in the Stopped orRunning state.

Click to unfold detailed information about an EVS disk. Then click the link of the targetECS to view the ECS status.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

19

Page 24: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

On the disk list, locate the row that contains the specified disk and click Detach in theOperation column. If the disk status changes to Available, the disk is successfully detached.

Deleting an EVS Disk

If an EVS disk is no longer used, release virtual resources by deleting the EVS disk from thesystem. A deleted EVS disk is not charged.

Before deleting an EVS disk, ensure that the disk status is Available, Error, Expansionfailed, or Restoration failed.

Step 1 In the disk list, locate the row that contains the specified disk and choose More > Delete.

Step 2 (Optional) If you need to delete multiple EVS disks, select in front of the target disksand click Delete. In the displayed dialog box, confirm the deletion information and click OK.

----End

NOTICEDeleting an EVS disk deletes all data on the disk. Exercise caution when performing thisoperation.

3.2 Expanding Capacity of an EVS Disk (Windows)

Scenarios

When the available disk space is insufficient, expand the disk capacity with either of thefollowing methods:

l Expand the capacity of an existing disk.l Apply for a new disk and attach it to an ECS.

Restrictionsl Both the system and data disks support capacity expansion.l Capacity of in-use disks cannot be expanded. Before expanding the disk capacity, ensure

that the disk status is Available, that is, the disk is not attached to an ECS.

Procedure

The method for initializing EVS disks varies depending on the OS running on the ECS. Thissection uses Windows Server 2008 R2 as an example to describe how to initialize an EVSdisk. For information on how to initialize EVS disks of ECSs running other types of WindowsOSs, see the corresponding OS product documentation.

Step 1 Log in to the management console.

Step 2 Expand the disk capacity based on the disk type.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

20

Page 25: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

l For data disks:

a. Click . Under Storage, click Elastic Volume Service.b. On the disk list, locate the row that contains the specified disk and click Detach in

the Operation column.The disk is detached.

c. In the disk list, locate the row that contains the specified disk, click More in theOperation column, and select Expand Capacity.Enter the size of the newly added disk as prompted.

d. Click Buy Now.e. Read and agree to the ECS service agreement.f. Click Submit Order.

g. Return to the disk list and click to view the disk capacity after modification.After the disk capacity changes to the configured value, the disk capacity issuccessfully expanded.

h. Locate the row that contains the specified disk and click Attach in the Operationcolumn.The disk is attached to the ECS.

NOTE

After the disk is successfully attached to the ECS, you must initialize the disk for the ECS touse it.

i. Click . Under Computing, click Elastic Cloud Server.j. Locate the row that contains the ECS and click Remote Login in the Operation

column.k. On the Server Manager page, select the disk to be expanded. The original disk

capacity is displayed. Figure 3-1 shows the original disk capacity.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

21

Page 26: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 3-1 Unallocated disks

l. Right-click the selected disk and select Extend Volume. Figure 3-2 shows the pagefor selecting the extended volume.

Figure 3-2 Selecting the extend volume

m. On the displayed Extend Volume Wizard page, click Next. Figure 3-3 shows theExtend Volume Wizard page.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

22

Page 27: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 3-3 Extend volume wizard

n. In the Select Space (MB)(E): row shown in Figure 3-4, enter the target capacityand click Next.

Figure 3-4 Select space

o. Click Finish to complete the wizard. After the capacity expansion is successful, thedisk capacity is greater than the original capacity. Figure 3-5 shows the pagedisplayed after the disk capacity is successful.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

23

Page 28: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 3-5 Successful capacity expansion

l For system disks:

a. Click . Under Computing, click Elastic Cloud Server.b. On the management console, locate the row that contains the ECS to which the disk

is attached, click More in the Operation column, and select Stop.The ECS is stopped.

c. On the disk list, locate the row that contains the specified disk and click Detach inthe Operation column.The disk is detached.

d. In the disk list, locate the row that contains the specified disk, click More in theOperation column, and select Expand Capacity.Enter the size of the newly added disk as prompted.

e. Click Buy Now.f. Read and agree to the ECS service agreement.g. Click Submit Order.

h. Return to the disk list and click to view the disk capacity after modification.After the disk capacity changes to the configured value, the disk capacity issuccessfully expanded.

i. Locate the row that contains the specified disk and click Attach in the Operationcolumn.The disk is attached to the ECS.

NOTE

After the disk is successfully attached to the ECS, you must initialize the disk for the ECS touse it.

j. Click . Under Computing, click Elastic Cloud Server.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

24

Page 29: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

k. Locate the row that contains the ECS, and click More in the Operation column,and select Start.The ECS is started.

l. Locate the row that contains the ECS and click Remote Login in the Operationcolumn.

m. On the Server Manager page, select the disk to be expanded. The original diskcapacity is displayed. Figure 3-6 shows the original disk capacity.

Figure 3-6 Selecting the system disk

n. Right-click the selected disk and select Extend Volume. Figure 3-7 shows the pagefor selecting the extended volume.

Figure 3-7 Selecting the extend volume

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

25

Page 30: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

o. On the displayed Extend Volume Wizard page, click Next. Figure 3-8 shows theExtend Volume Wizard page.

Figure 3-8 Extend volume wizard

p. In the Select Space (MB)(E): row shown in Figure 3-9, enter the target capacityand click Next.

Figure 3-9 Select space

q. Click Finish to complete the wizard. After the capacity expansion is successful, thedisk capacity is greater than the original capacity. Figure 3-10 shows the pagedisplayed after the disk capacity is successful.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

26

Page 31: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Figure 3-10 Successful capacity expansion

----End

3.3 Expanding Capacity of an EVS Disk (Linux)

Scenarios

When the available disk space is insufficient, expand the disk capacity with either of thefollowing methods:

l Expand the capacity of an existing disk.l Apply for a new disk and attach it to an ECS.

Restrictionsl Both the system and data disks support capacity expansion.l Capacity of in-use disks cannot be expanded. Before expanding the disk capacity, ensure

that the disk status is Available, that is, the disk is not attached to an ECS.

Procedure

The method for initializing EVS disks varies depending on the OS running on the ECS. Thissection uses CentOS 7.0 64-bit OS as an example to describe how to initialize an EVS disk ofan ECS running a Linux OS. For information on how to initialize EVS disks of ECSs runningother types of Linux OSs, see the corresponding OS product documentation.

The following procedure uses an EVS disk that has been attached to a Linux ECS as anexample. The disk is installed in /mnt/sdc, the partition is /dev/xvdb1, and the file systemformat is ext4. Capacity expansion is required.

Step 1 Log in to the management console.

Step 2 Expand the disk capacity based on the disk type.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

27

Page 32: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

l For data disks:

a. Click . Under Computing, click Elastic Cloud Server.b. Locate the row that contains the ECS to which the disk is attached and click

Remote Login.The ECS is logged in to as user root.

c. Run the following command to detach the disk:umount /mnt/sdc

d. Locate the row that contains the ECS to which the disk is attached, click More inthe Operation column, and select Stop.The ECS is stopped.

e. In the navigation tree on the left, click Elastic Volume Service.The EVS disk management page is displayed.

f. Locate the row that contains the target disk and click Detach in the Operationcolumn.The disk is detached.

g. In the disk list, locate the row that contains the specified disk, click More in theOperation column, and select Expand Capacity. Enter the size of the newly addeddisk as prompted.

h. Click Buy Now.i. Read and agree to the agreement.j. Click Submit Order.

k. Return to the disk list and click to view the disk capacity after modification.After the disk capacity changes to the configured value, the disk capacity issuccessfully expanded.

l. Locate the row that contains the specified disk and click Attach in the Operationcolumn.The disk is attached to the ECS.

NOTE

After the disk is successfully attached to the ECS, you must initialize the disk for the ECS touse it.

m. Click . Under Computing, click Elastic Cloud Server.n. Locate the row that contains the ECS, and click More in the Operation column,

and select Start.The ECS is started.

o. Locate the row that contains the ECS and click Remote Login in the Operationcolumn.The ECS is logged in to as user root.

p. Run the following command to check the disk partition information:fdisk -l

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

28

Page 33: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

If information similar to the following is displayed, the ECS contains twodisks. /dev/xvda is used as the system disk, and /dev/xvdb is the data disk.[root@ecs-b656 test]# fdisk -l

Disk /dev/xvda: 42.9 GB, 42949672960 bytes, 83886080 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x000cc4ad

Device Boot Start End Blocks Id System/dev/xvda1 * 2048 2050047 1024000 83 Linux/dev/xvda2 2050048 22530047 10240000 83 Linux/dev/xvda3 22530048 24578047 1024000 83 Linux/dev/xvda4 24578048 83886079 29654016 5 Extended/dev/xvda5 24580096 26628095 1024000 82 Linux swap / Solaris

Disk /dev/xvdb: 24.7 GB, 24696061952 bytes, 48234496 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0xb00005bd

Device Boot Start End Blocks Id System/dev/xvdb1 2048 20971519 10484736 83 LinuxCapacity of the /dev/xvdb disk is successfully expanded.

NOTE

After the disk capacity is successfully expanded, use the disk, such as how the disk ispartitioned and to which directory the disk is attached, based on your requirements. Thisdocument only provides an example.

q. Run the following command and enter d to delete the /dev/xvdb1 existing partition:fdisk /dev/xvdbInformation similar to the following is displayed:[root@ecs-b656 test]# fdisk /dev/xvdbWelcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.Be careful before using the write command.

Command (m for help): dSelected partition 1Partition 1 is deleted

Command (m for help):r. Enter n and press Enter to create partitions.

Enter n to add a partition.Information similar to the following is displayed:n p indicates the primary partition.n e indicates the extended partition.Command (m for help): nPartition type: p primary (0 primary, 0 extended, 4 free) e extended

s. Enter p and press Enter to create a primary partition as an example.Information similar to the following is displayed: (Partition number indicates theserial number of the primary partition. The value can be 1 to 4.)

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

29

Page 34: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Select (default p): pPartition number (1-4, default 1):

t. Enter the number of the primary partition and press Enter. Primary partitionnumber 1 is used as an example.Information similar to the following is displayed: (First sector indicates the startcylinder number. The value can be 2048 to 20971519, and the default value is2048.)Partition number (1-4, default 1): 1First sector (2048-20971519, default 2048):

u. Select the default start cylinder number 2048 and press Enter.Information similar to the following is displayed: (Last sector indicates the endcylinder number. The value can be 2048 to 20971519, and the default value is20971519.)First sector (2048-20971519, default 2048):Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519):

v. Select the default end cylinder number 20971519 and press Enter.Information similar to the following is displayed: (The partition is successfullycreated.)Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519):Using default value 20971519Partition 1 of type Linux and of size 10 GiB is setCommand (m for help):

w. Enter p and press Enter to view the created partition.Information similar to the following is displayed: (Details about the /dev/xvdb1partition are displayed.)Command (m for help): p

Disk /dev/xvdb: 10.7 GB, 10737418240 bytes, 20971520 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0xb00005bd

Device Boot Start End Blocks Id System/dev/xvdb1 2048 20971519 10484736 83 Linux

Command (m for help): x. Enter w and press Enter to write the partition result to the partition table.

Information similar to the following is displayed: (The partition is successfullycreated.)Command (m for help): wThe partition table has been altered!

Calling ioctl() to re-read partition table.Syncing disks.

y. Run the following commands to check and adjust the size of the /dev/xvde1partition:e2fsck -f /dev/xvdb1Information similar to the following is displayed:[root@ecs-b656 test]# e2fsck -f /dev/xvdb1e2fsck 1.42.9 (28-Dec-2013)Pass 1: Checking inodes, blocks, and sizesPass 2: Checking directory structurePass 3: Checking directory connectivity

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

30

Page 35: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Pass 4: Checking reference countsPass 5: Checking group summary information/dev/xvdb1: 11/655360 files (0.0% non-contiguous), 83137/2621184 blocks

resize2fs /dev/xvdb1Information similar to the following is displayed:[root@ecs-b656 test]# resize2fs /dev/xvdb1resize2fs 1.42.9 (28-Dec-2013)Resizing the filesystem on /dev/xvdb1 to 6029056 (4k) blocks.The filesystem on /dev/xvdb1 is now 6029056 blocks long.

l For system disks:

a. Click . Under Computing, click Elastic Cloud Server.b. Locate the row that contains the ECS to which the disk is attached, click More in

the Operation column, and select Stop.The ECS is stopped.

c. In the navigation tree on the left, click Elastic Volume Service.The EVS disk management page is displayed.

d. Locate the row that contains the target disk and click Detach in the Operationcolumn.The disk is detached.

e. In the disk list, locate the row that contains the specified disk, click More in theOperation column, and select Expand Capacity. Enter the size of the newly addeddisk as prompted.

f. Click Buy Now.g. Read and agree to the agreement.h. Click Submit Order.

i. Return to the disk list and click to view the disk capacity after modification.After the disk capacity changes to the configured value, the disk capacity issuccessfully expanded.

j. Locate the row that contains the specified disk and click Attach in the Operationcolumn.The disk is attached to the ECS.

NOTE

After the disk is successfully attached to the ECS, you must initialize the disk for the ECS touse it.

k. Click . Under Computing, click Elastic Cloud Server.l. Locate the row that contains the ECS, and click More in the Operation column,

and select Start.The ECS is started.

m. Locate the row that contains the ECS and click Remote Login in the Operationcolumn.The ECS is logged in to as user root.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

31

Page 36: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

n. Run the following command to view the disk information:fdisk -lInformation similar to the following is displayed: (/dev/xvda indicates the systemdisk.)[root@ecs-bab9 test]# fdisk -l

Disk /dev/xvda: 64.4 GB, 64424509440 bytes, 125829120 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x000cc4ad

Device Boot Start End Blocks Id System/dev/xvda1 * 2048 2050047 1024000 83 Linux/dev/xvda2 2050048 22530047 10240000 83 Linux/dev/xvda3 22530048 24578047 1024000 83 Linux/dev/xvda4 24578048 83886079 29654016 5 Extended/dev/xvda5 24580096 26628095 1024000 82 Linux swap / Solaris

NOTE

If the to-be-expanded disk is a system disk, enable the target partition to be automaticallyattached upon system startup. Otherwise, the expanded data is not displayed.

The following steps use an example to describe how to create a new partition for theexpanded disk space and attach the partition to the /opt directory.

o. Run the following command to enter the fdisk mode (/dev/xvda is used as anexample):fdisk /dev/xvdaInformation similar to the following is displayed:[root@ecs-bab9 test]# fdisk /dev/xvdaWelcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.Be careful before using the write command.

Command (m for help):p. Enter n and press Enter to create partitions.

Because the system disk has five existing partitions, the system automaticallycreates a sixth one.Information similar to the following is displayed:Command (m for help): nAll primary partitions are in useAdding logical partition 6First sector (26630144-83886079, default 26630144):

q. Enter the start cylinder number, for example, the default number, and press Enter.The start cylinder number must be greater than the end cylinder number of theexisting partition.Information similar to the following is displayed:First sector (26630144-83886079, default 26630144):Using default value 26630144Last sector, +sectors or +size{K,M,G} (26630144-83886079, default 83886079):

r. Enter the new partition's end cylinder number and press Enter.The default end cylinder number is used as an example.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

32

Page 37: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Information similar to the following is displayed:Last sector, +sectors or +size{K,M,G} (26630144-83886079, default 83886079):Using default value 83886079Partition 6 of type Linux and of size 27.3 GiB is set

Command (m for help): s. Enter p and press Enter to view the created partition.

Information similar to the following is displayed:Disk /dev/xvda: 64.4 GB, 64424509440 bytes, 125829120 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x000cc4ad

Device Boot Start End Blocks Id System/dev/xvda1 * 2048 2050047 1024000 83 Linux/dev/xvda2 2050048 22530047 10240000 83 Linux/dev/xvda3 22530048 24578047 1024000 83 Linux/dev/xvda4 24578048 83886079 29654016 5 Extended/dev/xvda5 24580096 26628095 1024000 82 Linux swap / Solaris/dev/xvda6 26630144 83886079 28627968 83 Linux

Command (m for help): t. Enter w and press Enter.

Enter the partition result into the partition table to complete partition creation.Information similar to the following is displayed:Command (m for help): wThe partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old table. The new table will be used atthe next reboot or after you run partprobe(8) or kpartx(8)Syncing disks.

u. Run the following command to synchronize the new partition table to the disk:partprobe

v. Run the following command to set the format for the file system of the newlycreated partition:mkfs -t ext4 /dev/xvda6Take the ext4 file format as an example. After a period of time, observe the systemrunning status. Information similar to the following is displayed:[root@ecs-bab9 test]# mkfs -t ext4 /dev/xvda6mke2fs 1.42.9 (28-Dec-2013)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks1790544 inodes, 7156992 blocks357849 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=2155872256219 block groups32768 blocks per group, 32768 fragments per group8176 inodes per groupSuperblock backups stored on blocks:

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

33

Page 38: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000

Allocating group tables: doneWriting inode tables: doneCreating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: done

w. Run the following command to attach the new partition to the directory whosespace needs to be added (for example, /opt):mount /dev/xvda6 /optInformation similar to the following is displayed:[root@ecs-bab9 test]# mount /dev/xvda6 /opt[root@ecs-bab9 test]#

NOTE

If the new partition is attached to a directory that is not empty, the subdirectories and files inthe directory will be hidden. Therefore, you are advised to attach the new partition to anempty directory or a newly created directory. If the new partition must be attached to adirectory that is not empty, move the subdirectories and files in the directory to anotherdirectory temporarily. After the partition is successfully attached to the directory, move thesubdirectories and files back.

x. Run the following command to view the attachment result:df -THInformation similar to the following is displayed:[root@ecs-bab9 test]# df -THFilesystem Type Size Used Avail Use% Mounted on/dev/xvda2 xfs 11G 7.4G 3.2G 71% /devtmpfs devtmpfs 4.1G 0 4.1G 0% /devtmpfs tmpfs 4.1G 82k 4.1G 1% /dev/shmtmpfs tmpfs 4.1G 9.2M 4.1G 1% /runtmpfs tmpfs 4.1G 0 4.1G 0% /sys/fs/cgroup/dev/xvda3 xfs 1.1G 39M 1.1G 4% /home/dev/xvda1 xfs 1.1G 131M 915M 13% /boot/dev/xvda6 ext4 29G 47M 28G 1% /opt

----End

3.4 Backing Up EVS Disks

Scenarios

After VBS is enabled, you can back up EVS disk data. For details, see Creating a VBSBackup in the Volume Backup Service User Guide.

NOTE

You can create backups only when the EVS disks are in the Available or In-use state.

You cannot create EVS disk backups if your account balance is less than 100 RMB or your account isfrozen.

Configuring a Backup Policy

With backup policies configured, data in EVS disks can be periodically backed up to improvethe data security.

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

34

Page 39: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Step 1 Log in to the management console.

Step 2 Click . Under Storage, click Elastic Volume Service.

Step 3 In the disk list, locate the EVS disk whose data you want to back up and choose More >Configure Backup Policy in the Operation column.

The Configure Backup Policy dialog box is displayed.

Step 4 In the list of backup policies, click Associate to select the target backup policy.

NOTE

If the EVS disk has been associated with a backup policy, you can first disassociate the EVS disk withthis backup policy and then associate it with the target one.

Step 5 (Optional) To create a new backup policy, click Edit Backup Policy.

The Volume Backup Service page is displayed.

For details about how to create a backup policy, see section Data Backup Using a BackupPolicy in the Volume Backup Service User Guide.

Step 6 In the displayed Associate Backup Policy dialog box, click OK.

After the association is complete, the system automatically backs up data in EVS disksaccording to the backup policy.

----End

Elastic Volume ServiceUser Guide 3 Operation Guide

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

35

Page 40: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

4 FAQs

4.1 What Is Elastic Volume Service?

4.2 What Are the Types of EVS Disks?

4.3 What Are EVS Disk Specifications?

4.4 How Is the EVS Disk Performance?

4.5 How Many EVS Disks Can Be Attached to an ECS?

4.6 Can an EVS Disk Be Attached to Multiple ECSs?

4.7 How to Attach an EVS Disk to an ECS?

4.8 Can EVS Disk Capacity Be Changed?

4.9 Is Disk Capacity Expansion Supported?

4.10 How Do I Expand EVS Disk Capacity?

4.11 How Many EVS Disks Can I Purchase?

4.12 Will Data in the EVS Disk Be Lost When the EVS Disk Is Detached?

4.13 How Many Status Types Does an EVS Disk Have? What Does Each Status Type Mean?

4.14 What Should I Do If an Error Occurs on My EVS Disk?

Elastic Volume ServiceUser Guide 4 FAQs

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

36

Page 41: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

4.1 What Is Elastic Volume Service?EVS disks are scalable virtual block storage devices designed based on the distributedarchitecture. You can perform operations on EVS disks online. The method for using EVSdisks is the same as that for using hard disks on physical servers. Compared with traditionalhard disks, EVS disks have higher data reliability and I/O throughput capabilities. They arealso easier to use. EVS disks apply to file systems, databases, and system software andapplications that require block storage devices.

EVS disks are also called disks.

4.2 What Are the Types of EVS Disks?Three types of EVS disks are provided: ultra-high I/O, high I/O, and common I/O. EVS diskswith different I/O capacities provide different features, and their prices also vary. Choose EVSdisks based on your requirements.

l EVS disks with ultra-high I/OEVS disks that use solid state disk (SSD). These EVS disks provide ultra-high I/O andlow latency. They support RDS, NoSQL, and data warehouse applications.

l EVS disks with high I/OEVS disks that use serial attached SCSI (SAS). These EVS disks provide high I/O andlow latency. They support NoSQL, data warehouse, RDS and file system applications.

l EVS with common I/OEVS disks that use Serial Advanced Technology Attachment (SATA). These EVS disksprovide reliable block storage and can run key applications.

4.3 What Are EVS Disk Specifications?EVS disks can meet large-capacity storage requirements. The capacity of system disks rangesfrom 40 GB to 32768 GB, and that of data disks ranges from 100 GB to 32768 GB.

4.4 How Is the EVS Disk Performance?Table 4-1 lists the EVS disk performance.

Table 4-1 Performance data of the EVS disk

Parameter Common I/O High I/O Ultra-high I/O

Maximum capacity of adisk

32 TB 32 TB 32 TB

Maximum IOPS of adisk

1000 3000 20000

Maximum throughput ofa disk

90 MBPS 150 MBPS 350 MBPS

Elastic Volume ServiceUser Guide 4 FAQs

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

37

Page 42: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

Parameter Common I/O High I/O Ultra-high I/O

Delay 10 ms 3 ms 2 ms

4.5 How Many EVS Disks Can Be Attached to an ECS?Up to 10 EVS disks be attached to an ECS.

4.6 Can an EVS Disk Be Attached to Multiple ECSs?No. An EVS disk can be attached to only one ECS.

4.7 How to Attach an EVS Disk to an ECS?Log in to the management console, locate the row that contains the target disk, and clickAttach in the Operation column.

4.8 Can EVS Disk Capacity Be Changed?Yes. However, it can only be expanded.

4.9 Is Disk Capacity Expansion Supported?EVS disks, including data and system disks, support capacity expansion.

You can expand the capacity of EVS disks only when the disks are in the Available state, thatis, the disks are not attached to an ECS. Capacity of disks in the In-use state cannot beexpanded.

Figure 4-1 shows the disk status.

Figure 4-1 Disk status

4.10 How Do I Expand EVS Disk Capacity?The process of expanding the disk capacity is as follows:

1. Detaching the EVS disk: Detach the disk from the ECS.2. Expanding the capacity of the EVS disk: Expand the capacity of the disk.3. Attaching the EVS disk: Attach the expanded disk to the ECS.4. Initializing the EVS disk: Log in to the ECS and initialize the expanded disk. You can

use the expanded EVS disk after the initialization is complete.

Elastic Volume ServiceUser Guide 4 FAQs

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

38

Page 43: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

For details, see Expanding Capacity of an EVS Disk (Windows) and Expanding Capacityof an EVS Disk (Linux) in the Elastic Volume Service User Guide.

4.11 How Many EVS Disks Can I Purchase?You can purchase up to 100 EVS disks.

4.12 Will Data in the EVS Disk Be Lost When the EVSDisk Is Detached?

Not necessarily.

To prevent data loss when detaching an EVS disk, perform the following operations:

l For Windows OSs, shut down the ECS, and detach the EVS disk on the ManagementConsole.

l For Linux OSs, log in to the ECS and run the umount command to detach the EVS disk.After the command is successfully executed, shut down the ECS and detach the EVSdisk on the Management Console.

4.13 How Many Status Types Does an EVS Disk Have?What Does Each Status Type Mean?

An EVS disk has several status types. The following table lists the EVS disk status, themeaning of each status, and the operations a disk in each status allows.

Table 4-2 EVS disk status description

EVS DiskStatus

Description Allowed Operation

In-use The disk is attached to the ECS. Creating VBS backupsand detaching

Available The EVS disk has not been attached to anyECS.

Creating VBS backups,attaching, expandingcapacity, and deleting

Creating The EVS disk is being created. None

Attaching The EVS disk is being attached to an ECS. None

Detaching The EVS disk is being detached from an ECS. None

Deleting The EVS disk is being deleted. None

Restoring A VBS backup is being used to restore theEVS disk.

None

Expanding The capacity of the EVS disk is beingexpanded.

None

Elastic Volume ServiceUser Guide 4 FAQs

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

39

Page 44: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

EVS DiskStatus

Description Allowed Operation

Uploading Data on the EVS disk is being uploaded to animage. This status occurs when you create animage from an ECS.

None

Downloading Data is being downloaded from an image tothe EVS disk. This status occurs when youcreate an ECS.

None

Error An error occurs when you try to create anEVS disk.

Deleting

Deletion failed An error occurs when you try to delete anEVS disk.

No operations can beperformed.

Expansionfailed

An error occurs when you try to expand thecapacity of an EVS disk.

Deleting

Restorationfailed

An error occurs when you try to restore anEVS disk.

Deleting

NOTE

If an EVS disk Status is Error, Deletion failed, Expansion failed, or Reversion failed, you can rectifythe error by following the steps provided in section What Can I Do If an Error Occurs on My EVSDisk.

4.14 What Should I Do If an Error Occurs on My EVSDisk?

If an error occurs, the disk may show one of the states listed in the following table. Accordingto the error status, attempt the suggested solution.

Table 4-3 Solutions for disk errors

ErrorStatus

Handling Suggestion

Error Delete the EVS disk in the Error state and create another one.If you select Yearly/Monthly to create the disk and an error occurs duringdisk creation, customer service personnel will help you handle the error. Ifyou require that the error be handled as soon as possible, contact ourcustomer service personnel.

Deletionfailed

Contact customer service personnel.The disk will no longer be charged once its status changes to Deletionfailed.

Elastic Volume ServiceUser Guide 4 FAQs

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

40

Page 45: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

ErrorStatus

Handling Suggestion

Expansionfailed

Our customer service personnel will contact you and help you handle thiserror. Do not perform any operations on the disk before the customer servicepersonnel contact you. If you require that the error be handled as soon aspossible, contact our customer service personnel.

Restorationfailed

Our customer service personnel will contact you and help you handle thiserror. Do not perform any operations on the disk before the customer servicepersonnel contact you. If you require that the error be handled as soon aspossible, contact our customer service personnel.

Elastic Volume ServiceUser Guide 4 FAQs

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

41

Page 46: User Guide - developer-res-cbc-cn.obs.cn-north-1 ... · Table 2-1 Parameter description Parameter Description Remarks AZ Mandatory Specifies the availability zone (AZ) within which

A Change History

ReleasedDate

What's New

2016-12-30 This issue is the fourth official release, which incorporates the followingchanges:l Modified the flow chart in section 2.1 Operation Procedure.l Modified the operations for initializing data disks in section 2.4

Initializing an EVS Disk (Linux).

2016-11-30 This issue is the third official release, which incorporates the followingchanges:l Added section 2.1 Operation Procedure.l Updated the command output information in sections 2.3 Initializing

an EVS Disk (Windows), 2.4 Initializing an EVS Disk (Linux), 3.2Expanding Capacity of an EVS Disk (Windows), and 3.3Expanding Capacity of an EVS Disk (Linux).

l Divided the previous section "EVS Disk Capacity Expansion" into twonew sections, 3.2 Expanding Capacity of an EVS Disk (Windows)and 3.3 Expanding Capacity of an EVS Disk (Linux).

2016-07-15 This issue is the second official release, which incorporates the followingchange:l Modified the description for attaching EVS disks in section 2.3

Initializing an EVS Disk (Windows).

2016-03-14 This issue is the first official release.

Elastic Volume ServiceUser Guide A Change History

Issue 04 (2016-12-30) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

42