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 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. 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).
create storage_pool

create storage_pool

Function

The create storage_pool command is used to create storage pools.

Format

create storage_pool name=? disk_type=? capacity=? [ raid_level=? ] [ disk_domain_id=? ] [ pool_id=? ]

Parameters

Parameter

Description

Value

name=?

Name of a storage pool.

The value contains 1 to 31 characters including digits, letters, underscores (_), hyphens (-), and periods (.).

disk_type=?

Physical type of a disk.

NOTE:

Only the disk type supported by a storage tier can be specified.

The value can be "SAS", "NearLine_SAS", "SSD", "SAS_SED", "NearLine_SAS_SED", "SSD_SED", or "SATA", where:

  • "SAS": SAS disk.
  • "NearLine_SAS": NL-SAS disk.
  • "SSD": SSD.
  • "SAS_SED": self-encrypting SAS disk.
  • "NearLine_SAS_SED": self-encrypting NL-SAS disk.
  • "SSD_SED": self-encrypting SSD.
  • "SATA": SATA disk.
NOTE:

The following describes the disk type supported by each storage tier:

  • tier 0 (high performance tier): SSD or self-encrypting SSD.
  • tier 1 (performance tier): SAS disk or self-encrypting SAS disk.
  • tier 2 (capacity tier): NL-SAS disk, self-encrypting NL-SAS disk, or SATA disk.

capacity=?

Capacity of a storage pool.

The value is an integer, expressed in GB or TB.

The value ranges from 1 GB to 12864 TB.

raid_level=?

RAID level of a storage pool.

NOTE:

Disks added to a disk domain are divided into fixed-sized logical blocks and are grouped in accordance with the selected RAID level. By purpose, those logical blocks are categorized as data blocks and parity blocks.

The default value can be "RAID6-4", "RAID6-6", "RAID6-10", "RAID6-18", "RAID5-3", "RAID5-5", "RAID5-9", "RAID50-6", "RAID50-10", "RAID50-18", "RAID3-3", "RAID3-5", "RAID3-9", "RAID0", "RAID10", "RAID1-2", or "RAID1-4" and the non-default value can be "RAID3-N", "RAID5-N", or "RAID6-N", where:

  • "RAID6-4": indicates a RAID 6 group that contains four logical blocks (two data blocks and two parity blocks).
  • "RAID6-6": indicates a RAID 6 group that contains six logical blocks (four data blocks and two parity blocks).
  • "RAID6-10": indicates a RAID 6 group that contains ten logical blocks (eight data blocks and two parity blocks).
  • "RAID6-18": indicates a RAID 6 group that contains eighteen logical blocks (sixteen data blocks and two parity blocks).
  • "RAID5-3": indicates a RAID 5 group that contains three logical blocks (two data blocks and one parity block).
  • "RAID5-5": indicates a RAID 5 group that contains five logical blocks (four data blocks and one parity block).
  • "RAID5-9": indicates a RAID 5 group that contains nine logical blocks (eight data blocks and one parity block).
  • "RAID50-6": indicates a RAID 50 group that contains six logical blocks (four data blocks and two parity blocks).
  • "RAID50-10": indicates a RAID 50 group that contains ten logical blocks (eight data blocks and two parity blocks).
  • "RAID50-18": indicates a RAID 50 group that contains eighteen logical blocks (sixteen data blocks and two parity blocks).
  • "RAID3-3": indicates a RAID 3 group that contains three logical blocks (two data blocks and one parity block).
  • "RAID3-5": indicates a RAID 3 group that contains five logical blocks (four data blocks and one parity block).
  • "RAID3-9": indicates a RAID 3 group that contains nine logical blocks (eight data blocks and one parity block).
  • "RAID0": indicates a RAID 0 group whose number of logical blocks is automatically specified by the system.
  • "RAID10": indicates a RAID 10 group whose number of logical blocks is automatically specified by the system.
  • "RAID1-2": indicates a RAID 1 group that contains two logical blocks (the two logical blocks store the same data and mirror each other).
  • "RAID1-4": indicates a RAID 1 group that contains four logical blocks (the four logical blocks store the same data and mirror each other).
  • "RAID3-N": indicates a RAID 3 group that contains N logical blocks (3 <= N <= 14) (N-1 data blocks and one parity block)
  • "RAID5-N": indicates a RAID 5 group that contains N logical blocks (3 <= N <= 14) (N-1 data blocks and one parity block).
  • "RAID6-N": indicates a RAID 6 group that contains N logical blocks (4 <= N <= 28) (N-2 data blocks and two parity blocks).
NOTE:
  • The number of data blocks on each tier is 1X, 2X, 4X, and 8X.
  • If "extent_size" has been specified, you can only use the default value.
  • You are advised to create RAID 6 groups on the capacity tier to ensure data security.

full_threshold=?

Capacity alarm threshold.

The value ranges from 1 to 95, expressed in percentage (%).

The default value is "80".

disk_domain_id=?

ID of a disk domain where a storage pool resides.

To obtain the value, run "show disk_domain general". The default value is "0".

pool_id=?

ID of a storage pool.

The value ranges from 0 to 127.

If this parameter is not used, the storage system automatically allocates an ID for a newly created storage pool.

extent_size=?

Data relocation granularity.

The value can be "512KB", "1MB", "2MB", "4MB", "8MB", "16MB", "32MB", or "64MB".

The default value is "4MB".

NOTE:

If "raid_level" employs a non-default configuration, you cannot specify "extent_size" because it will be calculated by the system.

stripe_depth=?

Stripe depth.

Possible values are "32KB", "64KB", "128KB", "256KB", or "512KB". The default value is "128KB".

NOTE:
  • If the stripe depth is "512KB", the number of data blocks of the RAID level cannot be greater than 8.
  • If the stripe depth is "256KB", the number of data blocks of the RAID level cannot be greater than 16.

usage_type=?

Storage pool use.

Possible values are "lun" or "file_system", where:

  • "lun": block storage services.
  • "file_system": file system services.

The default value is "lun".

full_protect_threshold=?

Alarm threshold of protection capacity for protecting data of LUNs in a storage pool.

The value ranges from 1 to 100, expressed in percentage (%). The default value is 100.

description=?

Storage pool description.

The value contains 1 to 255 characters.

auto_deactivate_snapshot_switch=?

Whether to automatically deactivate snapshots that are not mapped to hosts when the storage pool is used up.

The value can be "yes" or "no", where:

  • "yes": The system automatically deactivates snapshots that are not mapped to hosts when the storage pool is used up.
  • "no": The system does not automatically deactivate snapshots when the storage pool is used up.

protect_allocate_ratio=?

Pre-allocation ratio of data protection capacity.

The value ranges from 0 to 100, expressed in percentage (%). The default value is 0.

protect_fixed_reserve=?

Fixed capacity reserved for data protection.

The value is an integer, expressed in GB or TB. The value is smaller than the storage pool size.

protect_reserve_threshold=?

Maximum capacity reserved for data protection.

The value is an integer, expressed in GB or TB. The value is smaller than the storage pool size.

enhanced_data_protection_policy=?

Whether to use the enhanced data protection policy.

The value can be "yes" or "no", where:

  • "yes": uses the enhanced data protection policy.
  • "no": does not use the enhanced data protection policy.

The default value is "yes".

Level

Administrator

Usage Guidelines

None

Example

  • Create storage pool "poolTest". Set its disk type to "SAS" and capacity to "8GB" and keep default settings for other parameters.
    admin:/>create storage_pool name=poolTest disk_type=SAS capacity=8GB 
    Command executed successfully.
  • Create storage pool "poolTest". Set the following: Disk type: SAS Capacity: 100GB Storage pool type: lun Pre-allocation ratio of data protection capacity: 10% Fix capacity reserved for data protection: 10GB Maximum capacity reserved for data protection: 20GB Keep the default values for other parameters.
    admin:/>create storage_pool name=poolTest disk_type=SAS capacity=100GB protect_allocate_ratio=10 protect_fixed_reserve=10GB protect_reserve_threshold=20GB 
    Command executed successfully.
  • Create storage pool "poolTest". Set its disk type to "SAS", capacity to "8GB", and the member disk quantity of the selected RAID policy same as that of the disk domain. Keep default settings for other parameters.
    admin:/>create storage_pool name=poolTest disk_type=SAS capacity=8GB raid_level=RAID5-5 
    WARNING: You are about to create a storage pool. 
    The current RAID policy does not contain hot spare disks. When disk faults occur, no sufficient hot spare space is available for reconstruction. As a result, the reconstruction fails. 
    Suggestion: Select a RAID policy that contains at least one hot spare disk. 
    Have you read warning message carefully?(y/n)y 
    Command executed successfully.
  • Create storage pool "poolTest". Set its disk type to "SAS", capacity to "8GB", and RAID policy to "RAID5-7".
    admin:/>create storage_pool name=poolTest disk_type=SAS capacity=8GB raid_level=RAID5-7 
    WARNING: You are about to create a storage pool. The current RAID policy is not the default RAID policy recommended by the product. In the storage pool, the COW block granularity of LUNs with the deduplication or compression function is fixed to 64 KB. In the random small I/O scenario, if the LUN is used for snapshot or asynchronous replication, the performance is not optimal. 
    Suggestion: Select a default RAID policy recommended by the product to create a storage pool. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • Create storage pool "poolTest". Set its disk type to "NL-SAS", capacity to "8GB", and the member disk quantity of the selected RAID policy same as that of the disk domain. Keep default settings for other parameters.
    admin:/>create storage_pool name=poolTest disk_type=NearLine_SAS capacity=8GB raid_level=RAID5-5 
    WARNING: You are about to use NL-SAS or SATA disks to create a storage pool. 
    The current RAID policy does not contain hot spare disks. When disk faults occur, no sufficient hot spare space is available for reconstruction. As a result, the reconstruction fails. 
    Suggestion: RAID 6 is recommended based on the reliability of NL-SAS or SATA disks to ensure system data security. Select a RAID policy that contains at least one hot spare disk. 
    Command executed successfully.
  • Create storage pool "poolTest" without using the enhanced data protection policy. Set its disk type to "SAS", capacity to "8GB", and RAID policy to "RAID5-5".
    admin:/>create storage_pool name=poolTest disk_type=SAS capacity=8GB raid_level=RAID5-5 enhanced_data_protection_policy=no 
    WARNING: You are about to perform this operation without using the enhanced data protection policy, which may reduce data reliability. 
    Suggestion: Before performing this operation, ensure that the risk is acceptable. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181601

Views: 311661

Downloads: 39

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