No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

OceanStor 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
add virtual_machine block

add virtual_machine block

Function

The add virtual_machine block command is used to add a block device to a virtual machine (VM).

Format

add virtual_machine block vm_id=? block_id_list=?

Parameters

Parameter

Description

Value

vm_id=?

VM ID.

To obtain the value, run the "show virtual_machine general" command without parameters.

block_id_list=?

List of block device IDs.

To obtain the value, run the "show virtual_machine block owner_container_id=?" command with parameter "container id".When multiple blocks to be added,seprate the block IDs with commas(,) or range separted by hyphens(-).For example, block_id_list=1-5,7,9-11.

Level

Administrator

Usage Guidelines

None.

Example

Add a block device to a VM.

admin:/>add virtual_machine block vm_id=1 block_id_list=2 
Add block 2 successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 313114

Downloads: 38

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next