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).
change share nfs

change share nfs

Function

The change share nfs command is used to modify the configurations of an NFS share.

Format

change share nfs share_id=? { charset=? | lock_type=? | audit_items=? | show_snapshot_enabled=? } *

Parameters

Parameter

Description

Value

share_id=?

NFS share ID.

The value ranges from 1 to 18446744073709551615.

charset=?

Encoding mode of the NFS share.

The value can be "UTF-8", "JIS", "S-JIS", "EUC-JP", "DE", "ZH", "GBK", "EUC-TW", "BIG5", "PT", "FR", "IT", "ES" or "KO", The default value is "UTF-8". where:

  • "UTF-8": UTF-8 encoding.
  • "ZH": simplified Chinese.
  • "GBK": simplified Chinese.
  • "EUC-TW": traditional Chinese.
  • "BIG5": traditional Chinese.
  • "EUC-JP": EUC-JP encoding.
  • "JIS": JIS encoding.
  • "S-JIS": Shift-JIS encoding.
  • "DE": German.
  • "PT": Portuguese.
  • "ES": Spanish.
  • "FR": French.
  • "IT": Italian.
  • "KO": Korean.

lock_type=?

Lock policy type.

The value can be "Mandatory" or "Advisory", The default value is "Mandatory". where:

  • "Mandatory": indicates a mandatory strategy.
  • "Advisory": indicates a advisory strategy.

audit_items

Audit log option.

The parameter value contains at least one of the following values: "none","all","open","create","read","write","close","delete","rename","get_attr","set_attr","get_security",and "set_security", where:

  • "none": excludes all audit log options.
  • "all": includes all audit log options from "open" to "set_security".
  • "open": opens a file.
  • "create": creates a file.
  • "read": reads a file.
  • "write": writes a file.
  • "close": closes a file.
  • "delete": deletes a file.
  • "rename": renames a file.
  • "get_security": obtains security attributes of a file.
  • "set_security": sets security attributes of a file.
  • "get_attr": obtains file attributes.
  • "set_attr": sets file attributes.

If the parameter value is "all" or "none", no other values can be set.

show_snapshot_enabled

Whether the function of showing the .snapshot folder is enabled.

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

  • "yes": the function of showing the .snapshot folder is enabled.
  • "no": the function of showing the .snapshot folder is disabled.

The default value is "yes".

Level

Administrator

Usage Guidelines

None

Example

Modify the encoding mode and lock policy of an NFS share.

admin:/>change share nfs share_id=1 charset=EUC-JP lock_type=Advisory  audit_items=all show_snapshot_enabled=yes 
WARNING: You are about to change the NFS share configuration. This operation may cause the following problems: 
1.If this operation changes the character coding format of an NFS share, garbled display or service interruption may occur after the language is switched. 
2.If this operation changes the lock policy of an NFS share to "Advisory", cross-protocol interworking scenarios may be influenced and data inconsistency or service interruption may occur. 
3.If you enable the audit log function of the NFS share in this operation, NFS service performance may decrease. 
Suggestion: Confirm that you want to perform this operation based on the service type. 
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: 317194

Downloads: 39

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