Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Extending the Volume Group by Adding an EVS Disk

Updated on 2024-10-25 GMT+08:00

Scenarios

If the space of an LVM volume group no longer meets your needs, you can extend the volume group by adding new EVS disks, creating physical volumes, and adding the physical volumes to the volume group.

Figure 1 Example of extending a volume group

Procedure

  1. Create an EVS disk and attach it.

    1. Log in to the management console.
    2. Under Storage, click Elastic Volume Service. The disk list page is displayed.
    3. Click Buy Disk and create a disk.

      For details, see Purchasing an EVS Disk.

    4. In the disk list, locate the new disk and click Attach in the Operation column.
    5. On the displayed page, select the target ECS and select a device name from the drop-down list. Ensure that the EVS disk and ECS reside in the same AZ.

      Return to the disk list page. The status of the disk is Attaching, indicating that the disk is being attached to the ECS. When the disk status changes to In-use, the disk is successfully attached.

  2. Log in to the ECS as user root.
  3. Run the following command to query the volume group size:

    vgdisplay

    Information similar to the following is displayed:

    [root@ecs-lvmtest ~]# vgdisplay
      --- Volume group ---
      VG Name               vgdata
      System ID
      Format                lvm2
      Metadata Areas        2
      Metadata Sequence No  3
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                1
      Open LV               1
      Max PV                0
      Cur PV                2
      Act PV                2
      VG Size               19.99 GiB
      PE Size               4.00 MiB
      Total PE              5118
      Alloc PE / Size       4864 / 19.00 GiB
      Free  PE / Size       254 / 1016.00 MiB
      VG UUID               NLkZV7-hYYE-0w66-tnlt-Y6jL-Ik7S-76w4P6

    In the command output, the VG Size value indicates the volume group size, which is 19.99 GiB.

  4. Run the following command to view and take note of the device names:

    fdisk -l | grep /dev/vd | grep -v vda

    Information similar to the following is displayed:

    [root@ecs-lvmtest ~]# fdisk -l | grep /dev/vd | grep -v vda
    Disk /dev/vdb: 10.7 GB, 10737418240 bytes, 20971520 sectors
    Disk /dev/vdc: 10.7 GB, 10737418240 bytes, 20971520 sectors
    Disk /dev/vdd: 10.7 GB, 10737418240 bytes, 20971520 sectors

    In the command output, the new EVS disk has been attached to the ECS, and the device name is /dev/vdd.

  5. Run the following command to create a physical volume using the new EVS disk:

    pvcreate Disk device name

    In this example, run the following command:

    pvcreate /dev/vdd

    Information similar to the following is displayed:

    [root@ecs-lvmtest ~]# pvcreate /dev/vdd
      Physical volume "/dev/vdd" successfully created.

  6. Run the following command to extend the volume group by adding the physical volume to the volume group:

    vgextend Volume group name Physical volume name

    In this example, run the following command:

    vgextend vgdata /dev/vdd

    Information similar to the following is displayed:

    [root@ecs-lvmtest ~]# vgextend vgdata /dev/vdd
      Volume group "vgdata" successfully extended

  7. Run the following command to query details of the volume group:

    vgdisplay

    Information similar to the following is displayed:

    [root@ecs-lvmtest ~]# vgdisplay
      --- Volume group ---
      VG Name               vgdata
      System ID
      Format                lvm2
      Metadata Areas        3
      Metadata Sequence No  4
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                1
      Open LV               1
      Max PV                0
      Cur PV                3
      Act PV                3
      VG Size               <29.99 GiB
      PE Size               4.00 MiB
      Total PE              7677
      Alloc PE / Size       4864 / 19.00 GiB
      Free  PE / Size       2813 / <10.99 GiB
      VG UUID               NLkZV7-hYYE-0w66-tnlt-Y6jL-Ik7S-76w4P6

    In the command output, 10 GB has been added to the VG Size volume group.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback