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

FusionServer Tools 2.0 uREST User Guide 16

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).
Setting Logical Disk Attributes

Setting Logical Disk Attributes

Function

Set logical disk attributes.

Only out-of-band RAID controller cards are supported.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD setvdisk -CI CONTROLLERID -LI LOGICALDRIVEID -N VOLUMENAME -RP {NoReadAhead,ReadAhead} -WP {WriteThrough,WriteBackWithBBU,WriteBack} -CP {CachedIO,DirectIO} -BE {True} -BGIE {True,False} -AP {ReadWrite,ReadOnly,Blocked} -SCS {True,False} -DCP {Unchanged,Enabled,Disabled}

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

CONTROLLERID

ID of the controller to which the logical disk belongs. It is a mandatory parameter.

-

LOGICALDRIVEID

Logical disk ID. It is a mandatory parameter.

-

VOLUMENAME

Logical disk name. It is an optional parameter.

A string of up to 15 bytes.

Range: ASCII codes corresponding to 0x20 to 0x7E

-RP {NoReadAhead,ReadAhead}

Default read policy. It is an optional parameter.

The supported policies are as follows:

  • NoReadAhead: The Read Ahead function is disabled.
  • ReadAhead: The Read Ahead function is enabled. The controller pre-reads sequential data or the data predicted to be used and saves it in the cache.

-WP {WriteThrough,WriteBackWithBBU,WriteBack}

Default write policy. It is an optional parameter.

The supported policies are as follows:

  • WriteThrough: After the disk subsystem receives all data, the controller sends the host a message indicating that data transmission is complete.
  • WriteBackWithBBU: When no battery backup unit (BBU) is configured or the configured BBU is faulty, the controller automatically switches to the WriteThrough mode.
  • WriteBack: After the controller cache receives all data, the controller sends the host a message indicating that data transmission is complete.

-CP {CachedIO,DirectIO}

Default cache policy. It is an optional parameter.

The supported policies are as follows:

  • CachedIO: All the read and write requests are processed by the cache of the RAID controller. Select this value only when CacheCade 1.1 is configured.
  • DirectIO: This value has different definitions in read and write scenarios.
    • In read scenarios, data is directly read from physical disks. (If DefaultReadPolicy is set to ReadAhead, data read requests are processed by the cache of the RAID controller.)
    • In write scenarios, data write requests are processed by the cache of the RAID controller. (If DefaultWritePolicy is set to WriteThrough, data is directly written to physical disks.)

-BE {True}

Whether the disk is the boot disk. It is an optional parameter.

This parameter can be set to True.

-BGIE {True,False}

Whether background initialization is enabled. It is an optional parameter.

  • True: enabled
  • False: disabled

-AP {ReadWrite,ReadOnly,Blocked}

Access policy. It is an optional parameter.

The supported policies are as follows:

  • ReadWrite: Read and write operations are allowed.
  • ReadOnly: Only read operations are allowed.
  • Blocked: The data cannot be accessed.

-SCS {True,False}

Whether to use the CacheCade logical disk as the cache. It is an optional parameter.

  • True: yes
  • False: no

-DCP {Unchanged,Enabled,Disabled}

Cache policy of member disks. It is an optional parameter.

The supported policies are as follows:

  • Unchanged: The default cache policy is retained.
  • Enabled: Data is written to the cache before being written to the physical disk, which improves the write performance. However, data will be lost if there is no protection mechanism when power failures occur.
  • Disabled: Data is not written to the cache before being written to the physical disk. Data is not lost if power failures occur.

Usage Guidelines

None

Example

Obtain help information.

linux-2hqw:~/Downloads/bin # ./urest -H 10.10.10.10 -U ****** -P ****** setvdisk -h
usage: urest setvdisk [-h] -CI CONTROLLERID -LI LOGICALDRIVEID [-N VOLUMENAME]
                      [-RP {NoReadAhead,ReadAhead}]
                      [-WP {WriteThrough,WriteBackWithBBU,WriteBack}]
                      [-CP {CachedIO,DirectIO}] [-BE {True}]
                      [-BGIE {True,False}] [-AP {ReadWrite,ReadOnly,Blocked}]
                      [-SCS {True,False}] [-DCP {Unchanged,Enabled,Disabled}]
 
optional arguments:
  -h, --help            show this help message and exit
  -CI CONTROLLERID      controller ID
  -LI LOGICALDRIVEID    logicalDrive ID
  -N VOLUMENAME         vloume name
  -RP {NoReadAhead,ReadAhead}
                        defaultreadpolicy
  -WP {WriteThrough,WriteBackWithBBU,WriteBack}
                        defaultwritepolicy
  -CP {CachedIO,DirectIO}
                        defaultcachepolicy
  -BE {True}            bootenable
  -BGIE {True,False}    bgienable
  -AP {ReadWrite,ReadOnly,Blocked}
                        accesspolicy
  -SCS {True,False}     ssdcachingenable
  -DCP {Unchanged,Enabled,Disabled}
                        drivecachepolicy

Set logical disk attributes.

linux-2hqw:~/Downloads/bin # ./urest -H 10.10.10.10 -U root -P ****** setvdisk -CI 1 -LI 1 -N logical -RP ReadAhead -WP WriteThrough -CP CachedIO -BGIE True -AP ReadWrite -SCS False -DCP Unchanged 
Success: successfully completed request
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 121162

Downloads: 588

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next