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

OceanStor 9000 V5 7.0 Command Reference 03

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).
change directory senior_info

change directory senior_info

Function

The change directory senior_info command is used to modify the advanced properties of a directory.

Format

change directory senior_info < dir_name > < parent_dir > [ unix_mode=? ] [ ODC=? ] [ RDC=? ] [ RDN=? ] [ domaintype=? ] [ strip_policy=? ] [ parallelStripeWidth=? ] [ owner ] [ group ] [ ctnrPolicy=? ]

Parameters

Parameter

Description

Value

dir_name Directory name.

The value contains 1 to 255 characters and cannot contain one period(.) or two periods (..),If the directory is the root directory, it can contain only one slash (/). Other directories cannot contain the slash (/).

parent_dir Parent path.

The value contains 1 to 4000 characters.

The path format is /parent path name.

unix_mode Access permission.

The value is an integer of one to four digits. Each digit ranges from 0 to 7, for example, 777. From left to right, these digits represent the permission of owner user, owner group, and the other users. The following describes these digits:

  • 1: The script file can be executed.
  • 2: Data can be written.
  • 4: Data can be read.
7 = 1 + 2 +4. Therefore, 7 indicates that the script file can be executed and data can be written and read.
ODC Original Data Count (ODC) value. If a message is returned "A user configures an invalid ODC value.", decrease the value of ODC and perform the configuration again. If the ODC of a directory is "0", it indicates that no ODC is specified for the directory. Later on, the ODC of a file created in the directory is generated according to the following rules:If the ODC of any parent directory where the file resides is not "0", use the ODC that is not "0" of the nearest parent directory. If the ODC of each parent directory is "0", use the ODC automatically specified by the system.After the ODC of the directory has been modified, newly created files in this directory will be affected. Files created before the ODC modification will not be affected. After ODC of a directory is changed, the redundancy ratios of the directory and its subdirectories cannot be changed.

The value of ODC can be set to 0,4,6,8,12;

ODC>RDC>=RDN.

RDC Redundant data count (RDC) value.

The RDC value ranges from 1 to 4.

RDN Redundant data node (RDN) value.

When RDC is set to 2 or 3, you can configure RDN.

When RDC is set to 1 or 4, you can not configure RDN.

domaintype Domain type.

The domain type of the owner user and the owner group.

AD: the owner user and the owner group who use the active directory (AD) protocol for authentication

LDAP: the owner user and the owner group who use Lightweight Directory Access Protocol (LDAP) for authentication

LOCAL: the owner user and the owner group who use local authentication for authentication

NIS: the owner user and the owner group who use Network Information Service (NIS) for authentication

Note: If "domaintype" is specified, "owner" and "group" must be specified.

stripe_policy Stripe policy.

16K.

32K.

128K.

256K.

512K.

parallelStripeWidth Parallel factor.

The value can be 1, 2, 4, 8 or 16.

Configuration suggestion for parallel factors:Configure 1 for small files (smaller than 1 MB) and configure 8 for large files (larger than 1 MB).

You are not advised to write large files when the stripe size is small (16 KB/32 KB) and the parallel factor is 1, which causes relatively large performance loss.

If the large file needs to be written, you are advised to change the parallel factor of its parent directory to 8.

owner Owner user name.

The value contains 1 to 127 characters.

group Owner group name.

The value contains 1 to 127 characters.

ctnrPolicy Container policy.

Global_Policy.

Dir_Policy.

No_Policy.

Level

Resource administrator

Usage Guidelines

ctnrPolicy parameter:

The small file aggregation function is suitable to files whose size is from 1 M to 64 bytes. Directories containing the files that need aggregation need to specify the aggregation policy.

If files in multiple directories visit one directory after creation in a specific period, the directory aggregation policy is optimal.

If files in multiple directories visit multiple directories at the same time in a specific period after creation, the global aggregation policy is optimal.

If the aggregation policy is configured for the directory, refer to the aggregation policy in the directory; if no aggregation policy is configured for the directory, run the "show ctnr syspolicy" command to query the aggregation policy.

Example

Modify the advanced properties of a directory.

admin:/>change directory senior_info Share / ODC=4 RDC=2 RDN=1 unix_mode=777 domaintype=LOCAL root root
DANGER: You are about to modify the permission of folder. This operation may interrupt services that are using this folder. After ODC of a directory is changed, the redundancy ratios of the directory and its subdirectories cannot be changed.
Have you read danger alert message carefully?(y/n)y
 
Are you sure you want to perform the operation?(y/n)y
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24715

Downloads: 7

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