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


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


Administrator Guide

OceanStor 2800 V5 V500R007

This document is applicable to OceanStor 2800 V5. Routine maintenance activities are the most common activities for the storage device, including powering on or off the storage device, managing users, modifying basic parameters of the storage device, and managing hardware components. This document is intended for the system administrators who are responsible for carrying out routine maintenance activities, monitoring the storage device, and rectifying common device faults.
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).
Adding the Number of LUNs for Storage Space Expansion (Applicable to VM Capacity Expansion Used for SmartContainer Only)

Adding the Number of LUNs for Storage Space Expansion (Applicable to VM Capacity Expansion Used for SmartContainer Only)

If the VMs have been enabled, you can add LUNs for VM expansion.


  • VMs are running correctly.
  • The total capacity of the newly created LUNs is determined.
  • The storage system has a storage pool that provides sufficient storage space to create LUNs.


  • In VM services, the VM file system cannot be expanded. You are advised not to expand the LUN where the VM file system resides.
  • To expand data disks in VM services, expand the LUNs of data disks first and then power on VMs again. Online capacity expansion is not supported when VMs are running. Adding data disks is the recommended way for expansion.
  • The LUN (whose block_id is 1) used to store VM images cannot be added to VMs.


  1. Locate the LUN group.

    1. Log in to the CLI of a VM.
    2. Run show virtual_machine general to check the controller to which the VM belongs.
      admin:/>show virtual_machine general 
        ID     Name      Owner Container ID  Health Status  Running Status  First Start Mode  VM Management Port  VM Management IP 
        -----  --------  ------------------  -------------  --------------  ----------------  ------------------  ---------------- 
        1      test      0                   Normal         Running         HD                5900       
        2      test1     0                   Normal         Powered Off     HD                --         
        65537  vm_test 1                   Normal         Powered Off     HD                --         
        65538  vm_test1  1                   Normal         Powered Off     CDROM             --             

      Based on the value of Owner Container ID, you can determine which controller the VM belongs to.

    3. Run show vhba generalowner_container_id=? to view the WWN of the VHBA.
      admin:/>show vhba general owner_container_id=0 
      Work Container ID         Owner Container ID          VHBA WWN 
      ------------------------- --------------------------- -------------------------- 
      0                         0                           210030d17eb0fe21     
    4. Run show vhost_initiator general [ wwn=?] to view the host corresponding to the WWN.





      VHOST initiator WWN

      To obtain the value, run the show vhost_initiator general command.

      admin:/>show vhost_initiator general wwn=210030d17eb0fe21 
      WWN               : 210030d17eb0fe21 
      Running Status    : Online 
      Free              : No 
      Alias             : -- 
      Host ID           : 0     

      The value of Host ID is the ID of the host corresponding to the WWN.

    5. Run show host host_group host_id=? to view the host group that is associated with the host.
      admin:/>show host host_group host_id=0 
      Host Group ID Host Group Name 
      ------------- --------------- 
      1             HostGroup000     
    6. Run show host_group mapping_view host_group_id=? to view the mapping view added to the host group.
      admin:/>show host_group mapping_view host_group_id=1 
      Mapping View ID Mapping View Name 
      --------------- ----------------- 
      0               testing     
    7. Run show mapping_view lun_group mapping_view_id=? to view LUN groups added to the mapping view.
      admin:/>show mapping_view lun_group mapping_view_id=1 
      LUN Group ID    LUN Group Name 
      ------------    -------------- 
      1               lun_group_001     

  2. In the navigation tree on the right, click Provisioning.

    The Provisioning page is displayed.

  3. Create LUNs.

    1. In the Block Storage Service area, click LUN.

      The LUN management page is displayed.

    2. Click Create.

      The Create LUN page is displayed.

    3. Set LUN parameters as required by the new service. Table 5-51 describes the parameters.
      Table 5-51 Parameters for creating a LUN




      Indicates the actual storage space allocated to the LUN. The capacity you set is the actual capacity that can be used by the LUN.


      Indicates the quantity of LUNs to be created. The storage system allows you to create multiple LUNs at a time. Each LUN is allocated with the same capacity and automatically named.

    4. Click OK.

  4. Add the newly created LUNs to a LUN group.

    1. On the LUN management page, click the LUN Group tab.

      The LUN management page is displayed.

    2. Select a LUN group to which you want to add the LUNs and click Add Object.

      The Add Object page is displayed.

    3. In the Available LUN area, select the newly created LUNs, click , and add the LUNs to the Selected LUN area.
    4. Click OK.

  5. Run scan virtual_machine block owner_container_id=? to scan the block device information.
  6. Add a block device to the VM.

    This operation will create space where VM data can reside.

    Run add virtual_machine block to add a block device to the VM. Configure parameters vm_id and block_id_list to specify the VM ID and block device ID.

    • You can run show virtual_machine block to view the block device ID.
    • One block device can only be added to one VM.

    For example, add a block device to VM test.

    admin:/>show virtual_machine block 
      ID  Health Status  Running Status  Owner Container ID  Capacity    Use Mode  WWN                               Virtual Machine ID Virtual Machine Name 
      --  -------------  --------------  ------------------  ----------  --------  --------------------------------  ------------------ --------------------  
      0 Normal         Online          0                    150.000GB  DATA      630d17e100b0fe1400065f6800000000  --           --  
      2 Normal         Online          0                    191.000GB  DATA      630d17e100b0fe140154791500000003  --           --  
      1 Normal         Online          1                    150.000GB  DATA      630d17e100b0fe14000667ff00000001  --           --  
    admin:/>add virtual_machine block vm_id=1 block_id_list=2 
    Add block 2 successfully.     

    If the WWN of a block device is the same as that of a newly created LUN, the block device is the one added to the VM.

Updated: 2019-07-11

Document ID: EDOC1000181576

Views: 18515

Downloads: 25

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