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

Advanced O&M Command Reference

OceanStor 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these 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 service nfs_config

change service nfs_config

Function

The change service nfs_config command is used to modify the NFS basic configurations.

Format

change service nfs_config { communication_thread_number=? | work_thread_number=? | max_block_size=? | { permit_listen_ip=? | deny_listen_ip=? } | { permit_client=? | deny_client=? } | communication_thread_priority=? | silent_time=? | fileid_length=? | transcode_switch=? | nsm_query_dns_switch=? | v3_automount_switch=? | v4_automount_switch=? | v41_automount_switch=? | extended_groups_switch=? | extended_groups_limit=? | slow_io_percent=? | nobody_uid=? } *

change service nfs_config { communication_thread_number=? | work_thread_number=? | max_block_size=? | { permit_listen_ip=? | deny_listen_ip=? } | { permit_client=? | deny_client=? } | communication_thread_priority=? | silent_time=? | fileid_length=? | transcode_switch=? | nsm_query_dns_switch=? | v3_automount_switch=? | v4_automount_switch=? | v3_iotrace_switch=? | v4_iotrace_switch=? | v41_automount_switch=? | extended_groups_switch=? | extended_groups_limit=? | nfs_thread_pool_mode=? | max_request_number=? | nfs_send_detach_switch=? | slow_io_percent=? | nobody_uid=? } *

change service nfs_config { v3_automount_switch=? | v4_automount_switch=? | v41_automount_switch=? | extended_groups_switch=? | extended_groups_limit=? | nobody_uid=? } *

change service nfs_config { v3_automount_switch=? | v4_automount_switch=? | v3_iotrace_switch=? | v4_iotrace_switch=? | v41_automount_switch=? | extended_groups_switch=? | extended_groups_limit=? | nfs_thread_pool_mode=? | max_request_number=? | nfs_send_detach_switch=? | nobody_uid=? } *

Parameters

Parameter

Description

Value

communication_thread_number=?

Number of NFS-based communication threads.

The value ranges from 1 to 128.

work_thread_number=?

Number of NFS-based working threads.

The value ranges from 1 to 128.

max_block_size=?

NFS MTU.

The value ranges from 1024 to 1,048,576.

permit_listen_ip=?

Whitelist of NFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma (,). An asterisk (*) indicates all IP addresses.

deny_listen_ip=?

Blacklist of NFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma (,). An asterisk (*) indicates all IP addresses.

permit_client=?

Whitelist of NFS clients.

You can enter an asterisk (*) to add all clients to the whitelist.

deny_client=?

Blacklist of NFS clients.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma (,).

communication_thread_priority=?

Priority of NFS communication threads.

The value format can be "highest", "high", "middle", or "normal".

transcode_switch=?

Whether to enable or disable NFS transcoding.

The value can be "enable" and "disable", where:

  • "enable": enables the NFS transcoding function.
  • "disable": disables the NFS transcoding function.

silent_time=?

NFS silent period duration.

The value ranges from 30 to 90 seconds.

fileid_length=?

NFS file ID length.

The value can be "32" or "64", where:

  • "32": enables the storage array to support clients with 32-bit file IDs.
  • "64": enables the storage array to support clients with 64-bit file IDs.

nsm_query_dns_switch=?

Whether to enable or disable the function of NSM to query DNS host names.

The value can be "enable" or "disable", where:

  • "enable": enables the function of NSM to query DNS host names.
  • "disable": disables the function of NSM to query DNS host names.

v3_automount_switch=?

Whether to enable or disable the function of automatically mounting directories for NFSv3 (vStore).

The value can be "enable" or "disable", where:

  • "enable": enables the function of automatically mounting directories for NFSv3.
  • "disable": disables the function of automatically mounting directories for NFSv3.

v4_automount_switch=?

Whether to enable or disable the function of automatically mounting directories for NFSv4 (vStore).

The value can be "enable" or "disable", where:

  • "enable": enables the function of automatically mounting directories for NFSv4.
  • "disable": disables the function of automatically mounting directories for NFSv4.

v3_iotrace_switch=?

Whether to enable or disable the NFSv3 I/O trace function.

The value can be "enable" or "disable", where:

  • "enable": enables the NFSv3 I/O trace function.
  • "disable": disables the NFSv3 I/O trace function.

v4_iotrace_switch=?

Whether to enable or disable the NFSv4 I/O trace function.

The value can be "enable" or "disable", where:

  • "enable": enables the NFSv4 I/O trace function.
  • "disable": disables the NFSv4 I/O trace function.

v41_automount_switch=?

Whether to enable or disable the function of automatically mounting directories for NFSv4.1 (vStore).

The value can be "enable" or "disable", where:

  • "enable": enables the function of automatically mounting directories for NFSv4.1.
  • "disable": disables the function of automatically mounting directories for NFSv4.1.

extended_groups_switch=?

Enables or disables the extended group function (vStore).

The value can be "enable" or "disable", where:

  • "enable": enables the extended group function.
  • "disable": disables the extended group function.

extended_groups_limit=?

Number of extended groups (vStore).

The value ranges from 16 to 256.

nfs_thread_pool_mode=?

NFS thread pool mode.

The value can be "global" or "percpu", where:

  • "global": Multiple CPUs correspond to one thread pool.
  • "percpu": One CPU corresponds to one thread pool.

max_request_number=?

Maximum number of concurrent NFS requests.

The value ranges from 1024 to 2560.

nfs_send_detach_switch=?

Whether to separate NFS package receiving and sending.

The value can be "disable" or "enable", where:

  • "disable": NFS package receiving and sending are not separated.
  • "enable": NFS package receiving and sending are separated.

slow_io_percent=?

Percentage of slow I/O requests.

The value must be an integer from 1 to 100.

nobody_uid=?

ID of the nobody user.

The value must be an integer from 0 to 4294967295.

Views

Developer view, vstore developer view

Usage Guidelines

None

Example

  • Enable or disable the NFSv3 I/O trace function in the vStore developer view.
    developer@vstore1:/>change service nfs_config v3_iotrace_switch=enable 
    WARNING: You are about to enable the NFS I/O trace function. This operation may degrade the NFS service performance. 
    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.
  • Enable or disable the NFSv4 I/O trace function in the vStore developer view.
    developer@vstore1:/>change service nfs_config v4_iotrace_switch=enable 
    WARNING: You are about to enable the NFS I/O trace function. This operation may degrade the NFS service performance. 
    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.
  • Query the modified NFS configurations in the vStore developer view.
    developer@vstore1:/>show service nfs_config 
    NFSv3 Automount Switch : Enabled 
    NFSv4 Automount Switch : Enabled 
    NFSv3 I/O Trace Switch : Enabled 
    NFSv4 I/O Trace Switch : Enabled 
    NFSv4.1 Automount Switch : Enabled 
    Extended Groups Switch : Enabled 
    Extended Groups Limit : 64 
    Nobody UID               : 65534
  • Change the NFS thread pool mode.
    developer:/>change service nfs_config nfs_thread_pool_mode=global 
    CAUTION: You are about to modify the NFS service. The modification does not take effect immediately. You need to restart the NFS service for the modification to take effect. 
    Suggestion: Restart the NFS service after the modification. 
    Do you wish to continue?(y/n)y 
    Command executed successfully.
  • Change the maximum number of concurrent NFS requests.
    developer:/>change service nfs_config max_request_number=1024 
    CAUTION: You are about to modify the NFS service. The modification does not take effect immediately. You need to restart the NFS service for the modification to take effect. 
    Suggestion: Restart the NFS service after the modification. 
    Do you wish to continue?(y/n)y 
    Command executed successfully.
  • Enable or disable the function of separating NFS package receiving and sending.
    developer:/>change service nfs_config nfs_send_detach_switch=disable 
    CAUTION: You are about to modify the NFS service. The modification does not take effect immediately. You need to restart the NFS service for the modification to take effect. 
    Suggestion: Restart the NFS service after the modification. 
    Do you wish to continue?(y/n)y 
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138381

Views: 756168

Downloads: 38

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