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

eSight V300R010C00 Operation Guide 07

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).
Customized Script Usage Guide

Customized Script Usage Guide

This topic describes the commands that are used to execute the customized scripts for resource configuration.

create disk_domain

Function

create disk_domain is used to create a disk domain.

Format

create disk_domain name=? [ disk_domain_id=? ] disk_list=?

create disk_domain name=? [ disk_domain_id=? ] disk_number=? disk_type=?

Parameters

Parameter

Description

Value

name=?

Name of a disk domain.

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

disk_domain_id=?

ID of a disk domain.

  • The value is an integer from 0 to 63.
  • If this parameter is not specified, the system automatically allocates an ID for a new disk domain.

disk_list=?

List of disk IDs. When this parameter is specified, you cannot specified disk_type=? or disk_number=?.

The value can be all, disk ID range, or disk ID list, where:

  • all: All free disks are allocated to a disk domain.
  • disk ID range: The value is in the format of start disk ID-end disk ID, for example, DAE000.1-5.
  • disk ID list: Multiple disk IDs are separated with commas (,), for example, DAE000.1,DAE000.2,DAE000.3.

To obtain the value, you can run show disk general.

disk_number=?

Number of disks in a disk domain. This parameter is used together with disk_type=? to automatically allocate disks of specified types and quantity to a disk domain. If this parameter is specified, you cannot specify parameter disk_list=?.

The value is an integer from 1 to 2147483647.

disk_type=?

Disk type

The value can be SAS, NearLine_SAS or SSD, where:

  • SAS: a SAS disk.
  • NearLine_SAS: an NL-SAS disk.
  • SSD: an SSD.
NOTE:

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

  • Tier 0 (high performance tier): SSDs
  • Tier 1 (performance tier): SAS disks
  • Tier 2 (capacity tier): NL-SAS disks
Example

Create disk domain test that contains eight NL-SAS disks.

create disk_domain name=test disk_number=8 disk_type=NearLine_SAS

create storage_pool

Function

create storage_pool is used to create a storage pool. Storage systems use storage pools to provide storage space for application servers. A storage pool can use different RAID policy to combine independent disks, providing more storage capacity although improving the read performance and data security of disks.

Format

create storage_pool name=? disk_type=? capacity=? [ raid_level=? | full_threshold=? | disk_domain_id=? | pool_id=? | extent_size=? | stripe_depth=? | usage_type=? ] *

Parameters

Parameter

Description

Value

name=?

Storage pool name

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

disk_type=?

Physical type of a member disk.

NOTE:

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

The value can be SAS, NearLine_SAS or SSD, where:

  • SAS: a SAS disk.
  • Nearline_SAS: an NL-SAS disk.
  • SSD: an SSD.
NOTE:

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

  • Tier 0 (high performance tier): SSDs
  • Tier 1 (performance tier): SAS disks
  • Tier 2 (capacity tier): NL-SAS disks

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 policy of a storage pool.

NOTE:

Disks added to a disk domain are divided into logical blocks. These blocks are combined by the system based on the specified RAID policy. The logical blocks are categorized as data blocks and parity blocks.

The value can be RAID 6-4, RAID 6-6, RAID 6-10, RAID 5-3, RAID 5-5, RAID 5-9, RAID 50-6, RAID 50-10, RAID 50-18, RAID 3-3, RAID 3-5, RAID 3-9, RAID 0, RAID 10, RAID 1-2, or RAID 1-4, where:

  • RAID 6-4: indicates RAID 6 that contains 4 logical blocks.
  • RAID 6-6: indicates RAID 6 that contains 6 logical blocks.
  • RAID 6-10: indicates RAID 6 that contains 10 logical blocks.
  • RAID 5-3: indicates RAID 5 that contains 3 logical blocks.
  • RAID 5-5: indicates RAID 5 that contains 5 logical blocks.
  • RAID 5-9: indicates RAID 5 that contains 9 logical blocks.
  • RAID 50-6: indicates RAID 50 that contains 6 logical blocks.
  • RAID 50-10: indicates RAID 50 that contains 10 logical blocks.
  • RAID 50-18: indicates RAID 50 that contains 18 logical blocks.
  • RAID 3-3: indicates RAID 3 that contains 3 logical blocks.
  • RAID 3-5: indicates RAID 3 that contains 3 logical blocks.
  • RAID 3-9: indicates RAID 3 that contains 9 logical blocks.
  • RAID 0: indicates RAID 0 that contains logical blocks whose quantity is automatically specified by the system.
  • RAID 10: indicates RAID 10 that contains logical blocks whose quantity is automatically specified by the system.
  • RAID 1-2: indicates RAID 1 that contains 2 logical blocks.
  • RAID 1-4: indicates RAID 1 that contains 4 logical blocks.

full_threshold=?

Capacity alarm threshold.

The value ranges from 50 to 85, 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.

pool_id=?

Storage pool ID.

The value is an integer from 0 to 127.

If this parameter is not specified, the system automatically allocates an ID for a new storage pool.

extent_size=?

Data migration granularity

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

The default value is 4 MB.

NOTE:

If you specify raid_level to a non-typical configuration, extent_size will be automatically calculated by the system.

stripe_depth=?

This parameter is only valid in developer mode.

The value can be 32 KB, 64 KB, 128 KB, 256 KB, or 512 KB.

The default value is 64 KB.

usage_type=?

Storage pool usage.

The value can be lun or file_system, where:

  • lun: block storage service
  • file_system: file storage service

The default value is lun.

Example

Create storage pool poolTest, set its disk type to SAS and capacity to 8 GB, and use default settings for the other parameters.

create storage_pool name=poolTest disk_type=SAS capacity=8GB

create lun

Function

create lun is used to create a LUN. You can divide the space of a newly created storage pool into one or multiple LUNs so that storage resources can be appropriately allocated to application servers.

Format

create lun name=? [ number=? | lun_id=? | lun_id_list=? ] pool_id=? capacity=? [ lun_type=? [ initial_capacity=? | thresholds_switch=? | thresholds_percent=? ] | write_policy=? | prefetch_policy=? [ prefetch_multiple=? ] [ prefetch_value=? ] | relocation_policy=? | allocation_policy=? | owner_controller=? | read_cache_policy=? | write_cache_policy=? | io_priority=? | dif_switch=? | compression_enabled=? | compression_method=? | dedup_enabled=? | bytecomparison_enabled=? | grain_size=? | smart_cache_state=? ]

create lun name=? [ number=? | lun_id_list=? ] copy_lun_id=? [ override_capacity=? | override_pool_id=? ] *

create lun name=? remote_lun_wwn_list=? storage_pool_id=? [ write_policy=? ] [ prefetch_policy=? ] [ prefetch_multiple=? ] [ prefetch_value=? ] [ relocation_policy=? ] [ allocation_policy=? ] [ io_priority=? ] [ read_cache_policy=? ] [ write_cache_policy=? ] [ owner_controller=? ] [ lun_id=? ] [ dif_switch=? ]

Parameters

Parameter

Description

Value

name=?

Name of a LUN.

  • The value contains 1 to 31 digits, letters, underscores (_), hyphens (-), and periods (.).
  • When you batch create LUNs (by specifying number=?), the system automatically numbers the LUN names by adding a four-digit suffix to each name. The suffix starts from 0000. For example, if you specify the LUN name to LUN, the newly created LUNs are automatically names as LUN0000, LUN0001, and so on.
NOTE:

When batch creating LUNs, name=? cannot exceed 27 characters.

number=?

Number of batch created LUNs.

If this parameter is specified, you cannot specify parameter lun_id=? or lun_id_list=?.

The value ranges from 2 to 100.

The default value is 1.

lun_id=?

LUN ID.

This parameter is invalid when number=? or lun_id_list=? is specified.

The value is an integer from 0 to 8191.

If this parameter is not specified, the system automatically allocates an ID for a new LUN.

pool_id=?

ID of the storage pool where a LUN resides.

To obtain the value, run show storage_pool general.

capacity=?

Capacity of a LUN

  • The value is in the format of capacity value + unit, expressed in KB, MB, GB, TB, or block.
  • The value ranges from 512 KB to 256 TB.
  • One block is equal to 512 bytes.
  • The value can be a decimal when the unit is GB or TB.
  • If variable remain is added to this parameter, the remaining space of a storage pool will be used to create LUNs.

lun_type=?

Type of a LUN.

The value can be thick or thin, where:

  • thick: A thick LUN is always assigned a fixed amount of capacity.
  • thin: When being created, a thin LUN is assigned an initial capacity (specified by the initial_capacity parameter). When the available capacity of the thin LUN is insufficient, the capacity is automatically expanded but cannot exceed the maximum value (specified by the capacity parameter).

The default value is thick.

initial_capacity=?

Initial capacity of a thin LUN.

This parameter is valid and mandatory when lun_type=? is specified to thin.

  • The value is in the format of capacity value + unit, expressed in KB, MB, GB, TB, or block.
  • The value ranges from 512 KB to the capacity of created LUNs (specified by parameter capacity=?).

write_policy=?

Cache write policy.

The value can be write_through or write_back, where:

  • write_through: The system considers that a data write is successful only after data is written to disks. Disks are accessed in each data write.
  • write_back: After data is written to the cache of the local controller, the system considers that a data write is successful. In addition, the data will be written to the cache of the peer controller as a mirror. When certain conditions are met, the caches write data to disks.

The default value is write_back.

prefetch_policy=?

Cache prefetch policy.

The value can be none, constant, variable, or intelligent, where:

  • none: non-prefetch.
  • constant: constant prefetch.
  • variable: variable prefetch.
  • intelligent: intelligent prefetch.

The default value is intelligent.

prefetch_multiple=?

Multiple of cache prefetch. This parameter is mandatory when parameter prefetch_policy=? is specified to variable.

The value ranges from 0 to 1024.

prefetch_value=?

Cache prefetch value. This parameter is mandatory when parameter prefetch_policy=? is specified to constant.

The value ranges from 0 to 1024, expressed in KB.

relocation_policy=?

SmartTier policy.

The value can be none, automatic, lowest_available, or highest_available, where:

  • none: Migration is not performed.
  • automatic: The system automatically determines the migration direction.
  • lowest_available: Data is migration to a lower performance tier, for example, from the high performance tier to the performance tier.
  • highest_available: Data is migration to a higher performance tier, for example, from the performance tier to the high performance tier.

The default value is automatic.

allocation_policy=?

Initial capacity allocation policy.

The value can be automatic, extreme_performance, performance, or capacity, where:

  • automatic: The system automatically allocates the available capacity of storage tiers to a LUN.
  • extreme_performance: The capacity of the high performance tier is preferentially allocated.
  • performance: The capacity of the performance tier is preferentially allocated.
  • capacity: The capacity of the capacity tier is preferentially allocated.

The default value is automatic.

read_cache_policy=?

Cache read policy of a LUN.

The value can be Low, Middle, or High, where:

  • Low: low priority.
  • Middle: medium priority.
  • High: high priority.

The default value is Middle.

write_cache_policy=?

Cache write policy of a LUN.

The value can be Low, Middle, or High, where:

  • Low: low priority.
  • Middle: medium priority.
  • High: high priority.

The default value is Middle.

io_priority=?

I/O priority of a LUN.

The value can be Low, Middle, or High, where:

  • Low: low priority.
  • Middle: medium priority.
  • High: high priority.

The default value is Low.

copy_lun_id=?

ID of the source LUN whose properties you want to copy If this parameter is specified, the new LUN has the same properties as the source LUN. The properties include owning resource pool ID, type, capacity, initial allocation capacity, write policy, mirror policy, prefetch policy, and prefetch policy value.

To obtain the value, run show lun general.

override_capacity=?

-

  • The value is in the format of capacity value + unit, expressed in KB, MB, GB, or TB.
  • The value ranges from 512 KB to 256 TB.

If this parameter is not specified, the capacity of the new LUN is the same as the source LUN.

override_pool_id=?

ID of the storage pool that owns the new LUN created by copying the source LUN properties

To obtain the value, run show storage_pool general.

If this parameter is not specified, the new LUN belongs to the same storage pool as the source LUN.

owner_controller=?

Owning controller of a LUN.

The value format is XA, XB, XC, or XD, the value of X are related to the NE type.

dif_switch=?

Whether to enable the DIF function.

Possible values are:

  • yes: enables the DIF function.
  • no: disables the DIF function.

remote_lun_wwn_list=?

WWN of a remote LUN.

To obtain the value, run show remote_lun general.

storage_pool_id=?

ID of the storage pool where a LUN resides.

To obtain the value, run show storage_pool general.

compression_enabled=?

Whether to enable data compression.

The value can be yes or no, where:

  • yes: enables the compression function.
  • no: disables the compression function.

The default value is no.

compression_method=?

LUN data compression algorithm

The value can be fast or deep, where:

  • fast: speed preferred.
  • deep: compression ratio preferred.

The default value is fast.

dedup_enabled=?

Whether to enable data deduplication.

The value can be yes or no, where:

  • yes: enables the deduplication function.
  • no: disables the deduplication function.

The default value is no.

bytecomparison_enabled=?

Whether to enable the byte-by-byte comparison.

The value can be yes or no, where:

  • yes: enables the byte-by-byte comparison.
  • no: disables the byte-by-byte comparison.

The default value is no.

grain_size=?

Thin LUN granularity

The value can be 4 KB, 8 KB, 16 KB, 32 KB, or 64 KB, where:

  • 4 KB: 4 KB granularity.
  • 8 KB: 8 KB granularity.
  • 16 KB: 16 KB granularity.
  • 32KB: 32 KB granularity.
  • 64 KB: 64 KB granularity.

The default value is 64 KB.

thresholds_switch=?

Alarm threshold switch for a thin LUN.

The value can be on or off, where:

  • off: disables the threshold alarm switch.
  • on: enables the threshold alarm switch.

The default value is off.

thresholds_percent=?

Alarm threshold for a thin LUN.

The value ranges from 50 to 99, expressed as a percentage. The default value is 90.

smart_cache_state=?

Whether to enable the SmartCache function.

The value can be on or off, where:

  • off: disables SmartCache.
  • on: enables SmartCache.

The default value is off.

lun_id_list=?

LUN ID list. This parameter is invalid when number=? or lun_id=? is specified.

The value is an integer from 0 to 65535. Use comma (,) or hyphen (-) to separate LUN IDs, for example, 0,5-8.

Usage Guide
  • You can use either of the following methods to create LUNs:
    • Manually specify LUN parameters: create lun name=? [ number=? | lun_id=? lun_id_list=? ] pool_id=? capacity=? [ lun_type=? [ initial_capacity=? | thresholds_switch=? | thresholds_percent=? ] | write_policy=? | prefetch_policy=? [ prefetch_multiple=? ] [ prefetch_value=? ] | relocation_policy=? | allocation_policy=? | owner_controller=? | read_cache_policy=? | write_cache_policy=? | io_priority=? | dif_switch=? ] *
    • Copy the properties of a LUN to create a new LUN:create lun name=? [ number=? | lun_id_list=? ] copy_lun_id=? [ override_capacity=? | override_pool_id=? ] *
  • The capacity of a new LUN cannot be larger than the free capacity of the storage pool.
  • The scheduled migration policy automatically migrates data between tier 0, tier 1, and tier 2 at the specified time. For example, the policy migrates seldom accessed data to the low-performance and large-capacity storage tier 2 and migrates the frequently accessed data to the highest performance storage tier 0. This way of data migration strikes a balance between performance, capacity, and cost by taking full advantage of different types of physical disks.
  • When you batch create LUNs and set parameter capacity to remain, the capacity of the last created LUN may be different from that of the other LUNs or some LUNs cannot be created due to insufficient space because of the extent size alignment in LUN capacity allocation.
  • If you do not specify parameter compression_enabled=yes or dedup_enabled=yes when creating LUNs, parameter grain_size cannot be specified.
Example
  • Create a LUN and specify its parameters as follows:
    • Name: newlun
    • Owning storage pool ID: 1
    • LUN capacity: 100 MB

      create lun name=newlun pool_id=1 capacity=100MB

  • Create two LUNs and specify their parameters as follows:
    • Prefix of LUN names: newlun-clone
    • ID of the source LUN whose properties are copied: 2
    • LUN capacity: 200 MB

      create lun name=newlun-clone copy_lun_id=2 override_capacity=200MB number=2

  • Create a thin LUN with compression enabled and specify its parameters as follows:
    • Name: asdf
    • Owning storage pool ID: 0
    • LUN capacity: 2 GB
    • LUN type: thin
    • Initial capacity of the thin LUN: 1 GB
    • Compression switch status: yes

      create lun name=asdf pool_id=0 capacity=2GB lun_type=thin initial_capacity=1GB compression_enabled=yes

create lun_group

Function

create lun_group is used to create a LUN group.

Format

create lun_group name=? [ lun_group_id=? ] [ lun_id_list=? ]

Parameters

Parameter

Description

Value

name=?

LUN group name.

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

lun_group_id=?

LUN group ID.

The value is an integer from 0 to 8191.

If you do not specify this parameter, the system automatically allocates an ID for a new LUN group.

lun_id_list=?

LUN ID list. If this parameter is specified, LUNs with the specified IDs will be added to a LUN group.

To obtain the value, run show lun general. When multiple LUNs need to be added to a LUN group, separate these LUN IDs with commas (,).

Example

Create LUN group LUNGroupTest and add LUNs 0, 1, and 2 to this group.

create lun_group name=LUNGroupTest lun_id_list=0,1,2

create port_group

Function

create port_group is used to create a port group.

Format

create port_group name=? [ port_group_id=? ] [ port_type=? port_id_list=? ]

Parameters

Parameter

Description

Value

name=?

Name of the port group.

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

lun_group_id=?

ID of a port group.

The value is an integer from 0 to 8191.

If this parameter is not specified, the system automatically allocates an ID for a new port group.

port_type=?

Type of a port that you want to add to a port group. If this parameter is specified, you must specify parameter port_id_list=?.

The value can be FC, ETH, or FCoE, where:

  • FC: Fibre Channel ports.
  • ETH: ETH ports.
  • FCoE: FCoE ports.

port_id_list=?

ID of a port that you want to add to a port group. This parameter is valid only when parameter port_type=? is specified.

  • To obtain the value, run show port general.
  • When multiple ports need to be added, separate these port IDs with commas (,).
Example

Create port group test_portgroup.

create port_group name=test_portgroup

create host

Function

The create host command is used to create a host.

Format

create host name=? operating_system=? [ ip=? | network_name=? | location=? | model=? | host_id=? ] *

Parameters

Parameter

Description

Value

name=?

Name of a host.

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

operating_system=?

Operating system type of a host.

The options are as follows:

  • Linux
  • Solaris
  • HP-UX
  • AIX
  • XenServer
  • Mac_OS
  • VIS6000
  • VMware_ESX

ip=?

Host IP address.

-

network_name=?

Name of the network to which a host belongs.

The value is a string of 1 to 255 characters.

location=?

Location of a host.

The value is a string of 1 to 127 characters.

model=?

Host model.

The value is a string of 1 to 127 characters.

host_id=?

Host ID.

The value is an integer ranging from 0 to 8191. If this parameter is not specified, the system automatically assigns a value for the parameter.

Example

Create a host whose name is newhost001, operating system type is Linux, location is newlocation, model is 2058, network name is newnetwork, IP address is 192.168.3.53, and host ID is 1.

create host name=newhost001 operating_system=Linux location=newlocation model=2058 network_name=newnetwork ip=192.168.3.53 host_id=1

create host_group

Function

create host_group is used to create a host group.

Format

create host_group name=? [ host_group_id=? | host_id_list=? ] *

Parameters

Parameter

Description

Value

name=?

Name of a host group.

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

host_group_id=?

ID of a host group.

The value is an integer from 0 to 8191. If this parameter is not specified, the system automatically allocates an ID for a new host group.

host_id_list=?

Host ID. When this parameter is specified, the hosts with the specified IDs are added to a host group.

  • To obtain the value, run show host general.
  • When multiple hosts need to be added, separate these host IDs with commas (,).
Example

Create a host group whose name is test.

create host_group name=test

create mapping_view

Function

create mapping_view is used to create a mapping view.

Format

create mapping_view name=? [ mapping_view_id=? ] [ lun_group_id=? ] [ host_group_id=? ] [ port_group_id=? ]

Parameters

Parameter

Description

Value

name=?

Mapping view name.

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

mapping_view_id=?

Mapping view ID.

The value is an integer from 0 to 8191. If this parameter is not specified, the system automatically assigns a value.

lun_group_id=?

LUN group ID. If this parameter is specified, the storage system adds the LUN group with the specified ID to a mapping view.

To obtain the value, run show lun_group general.

host_group_id=?

Host group ID. If this parameter is specified, the storage system adds the host group with the specified ID to a mapping view.

To obtain the value, run show host_group general.

port_group_id=?

Port group ID. If this parameter is specified, the storage system adds the port group with the specified ID to a mapping view. This parameter is valid only when parameter host_group_id=? is specified.

To obtain the value, run show port_group general.

Example

Create a mapping view whose name and ID are mapping_Test and 1 and add LUN group 1, host group 0, and port group 0 to the mapping view.

create mapping_view name=mapping_Test mapping_view_id=1 lun_group_id=1 host_group_id=0 port_group_id=0

create file_system general

Function

create file_system general is used to create a file system. You can divide the space of a newly created storage pool into one or multiple file systems so that storage resources can be appropriately allocated to application servers.

Format

create file_system general name=? pool_id=? [ initial_distribute_policy=? ] [ capacity=? ] [ file_system_id=? ] [ alloc_type=? ] [ number=? ] [ owner_controller=? ] [ io_priority=? ] [ checksum_enabled=? ] [ atime_enabled=? ] [ show_enabled=? ] [ auto_delete_snapshot_enabled=? ] [ timing_snapshot_enabled=? ] [ block_size=? ] [ capacity_threshold=? ] [ snapshot_reserve=? ] [ timing_snapshot_max_number=? ]

Parameters

Parameter

Description

Value

name=?

File system name.

  • The value contains 1 to 255 ASCII characters, including digits, letters, underscores (_), hyphens (-), and periods (.).
  • When you batch create file systems (by specifying number=?), the system automatically numbers the file system names by adding a four-digit suffix to each name. The suffix starts from 0000. For example, if you specify the file system name to LUN, the newly created file systems are automatically named as FS0000, FS0001, and so on.
NOTE:

When you batch create file systems, the value of name=? cannot exceed 251 characters.

pool_id=?

ID of the storage pool that owns a file system.

To obtain the value, run show storage_pool general.

capacity=?

File system capacity.

  • The value is in the format of capacity value + unit, expressed in KB, MB, GB, TB, or block.
  • The value ranges from 1 GB to 16384 TB.
  • If the value is set to all, the file system does not have a capacity limit and all storage pool capacity can be allocated to the file system.
  • The value can be set to all only for thin file systems.
  • One block is equal to 512 bytes.

file_system_id=?

File system ID.

The value is an integer from 0 to 8191. If this parameter is not specified, the system automatically allocates an ID for a new file system.

alloc_type=?

File system type.

The value can be thick or thin, where:

  • thick: A thick file system is always assigned a fixed amount of capacity.
  • thin: A thin file system is assigned an initial capacity and this capacity is automatically expanded when more capacity is required. The maximum capacity of a thin file system is specified by parameter capacity.

The default value is thick.

number=?

Number of batch created file systems. This parameter cannot be used together with file_system_id=?.

The value ranges from 2 to 100. The default value is 1.

owner_controller=?

Owning controller of a file system.

The value format is XA or XB, where X ranges from 0 to 3.

io_priority=?

I/O priority of a file system.

The value can be Low, Middle, or High, where:

  • Low: low priority.
  • Middle: medium priority.
  • High: high priority.

The default value is Low.

checksum_enabled=?

Whether to enable the checksum function.

The value can be yes or no, where:

  • yes: enables the checksum function.
  • no: disables the checksum function.

atime_enabled=?

Whether to enable the atime function.

The value can be yes or no, where:

  • yes: enables the atime function.
  • no: disables the atime function.

show_enabled=?

Whether to set a snapshot directory visible.

The value can be yes or no, where:

  • yes: sets the snapshot directory to visible.
  • no: sets the snapshot directory to invisible.

auto_delete_snapshot_enabled=?

Whether to enable the automatic deletion of periodic snapshots.

The value can be yes or no, where:

  • yes: enables the automatic deletion of periodic snapshots.
  • no: disables the automatic deletion of periodic snapshots.

timing_snapshot_enabled=?

Whether to enable periodic snapshots.

The value can be yes or no, where:

  • yes: enables periodic snapshots.
  • no: disables periodic snapshots.

block_size=?

File system block size.

The value can be 4 KB, 8 KB, 16 KB, 32 KB, or 64 KB. The default value is 64 KB.

capacity_threshold=?

File system capacity alarm threshold. Alarms are reported when the file system capacity usage exceeds the threshold.

  • The value is a percentage (an integer).
  • The value ranges from 50 to 90.

snapshot_reserve=?

Capacity percentage reserved for snapshots.

  • The value is a percentage (an integer).
  • The value ranges from 0 to 50.

timing_snapshot_max_number=?

Maximum number of periodic snapshots.

The value ranges from 1 to 2048. The default value is 16.

initial_distribute_policy=?

Initial allocation policy of a file system.

The value can be automatic, extreme_performance, performance, or capacity, where:

  • automatic: The system automatically allocates the available capacity of storage tiers to a LUN.
  • extreme_performance: The capacity of the high performance tier is preferentially allocated.
  • performance: The capacity of the performance tier is preferentially allocated.
  • capacity: The capacity of the capacity tier is preferentially allocated.

The default value is automatic.

Example

Create a file system whose name is fs001 and specify the storage id, capacity, and allocation type to 0, 10 GB, and thick.

create file_system general name=fs001 pool_id=0 initial_distribute_policy=automatic capacity=10GB alloc_type=thick\

create share cifs

Function

create share cifs is used to create a common Internet file system (CIFS) share.

Format

create share cifs name=? local_path=? [ oplock_enabled=? ] [ notify_enabled=? ] [ file_system_id=? ]

Parameters

Parameter

Description

Value

name=?

CIFS share name.

The vale contains 1 to 80 characters excluding \"/\\[]:|<>+;,?*=.

local_path=?

Local path.

The value contains 1 to 1023 characters.

oplock_enabled=?

oplock switch. If the switch is enabled, clients can lock a file and servers can unlock the file.

The value can be yes or no. The default value is yes.

  • yes: enables the oplock function.
  • no: disables the oplock function.

notify_enabled=?

Notification switch.

The value can be yes or no. The default value is yes.

  • yes: enables the notify function.
  • no: disables the notify function.

file_system_id=?

ID of the file system to which a CIFS share belongs.

The value is an integer from 0 to 8189. To obtain the value, run show file_sytem general.

Usage Guide

You must specify name, file_system_id, and local_path at the same time.

Example

Creates a CIFS share.

create share cifs name=cifs0 file_system_id=0 local_path=/fs001

create share_permission cifs

Function

create share_permission cifs is used to create a common Internet file system (CIFS) share permission.

Format

create share_permission cifs access_name=? share_id=? permission_type=?

Parameters

Parameter

Description

Value

access_name=?

Access name. The name can be a resource user or user group.

  • The value is a string containing 1 to 288 characters.
  • If the name is a resource user group, add an at sign (@) at the beginning of the user group name to distinguish it from resource users.

share_id=?

Share ID.

-

permission_type=?

Permission type.

The value can be read_only, read_write, no_access, or all_control, where:

  • read_only: read only.
  • read_write: writable and writable.
  • no_access: no permission.
  • all_control: full control.
Usage Guide

You must specify access_name, share_id, and permission_type at the same time.

Example
  • Create a CIFS share permission and specify access_name to a resource user.

    create share_permission cifs access_name=user1 share_id=4 permission_type=all_control

  • Create a CIFS share permission and specify access_name to a resource user group.

    create share_permission cifs access_name=@group1 share_id=4 permission_type=all_control

create share nfs

Function

create share nfs is used to create a network file system (NFS) share.

Format

create share nfs local_path=? [ file_system_id=? ]

Parameters

Parameter

Description

Value

file_system_id=?

File system ID.

The value ranges from 0 to 8191.

local_path=?

Absolute path of an NFS share.

The value contains 1 to 1023 characters.

Example

Creates an NFS share.

create share nfs file_system_id=0 local_path=/fs110

create share_permission nfs

Function

create share_permission nfs is used to create a network file system (NFS) share permission.

Format

create share_permission nfs access_name=? share_id=? access_type=? sync_enabled=? all_squash_enabled=? root_squash_enabled=?

Parameters

Parameter

Description

Value

access_name=?

File system ID.

The value contains 1 to 127 characters.

share_id=?

Absolute path of an NFS share.

The value is a positive integer.

access_type=?

Access permission for an NFS share.

The value can be read_only or read_write, where:

  • read_only: read only.
  • read_write: read and write.

sync_enabled=?

Synchronous write permission for an NFS share.

The value can be yes or no, where:

  • yes: synchronous write.
  • no: asynchronous write.

all_squash_enabled=?

Compression permission for all NFS share users.

The value can be yes or no, where:

  • yes: grants the permission.
  • no: does not grant the permission.

root_squash_enabled=?

Compression permission for NFS share users.

The value can be yes or no, where:

  • yes: grants the permission.
  • no: does not grant the permission.
Example

None

Translation
Download
Updated: 2019-06-30

Document ID: EDOC1100044378

Views: 58027

Downloads: 264

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