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 V300R006C00 Object Storage Service (Compatible with OpenStack Swift APIs) Administrator 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).
Modify the Disk Defragmentation Policy

Modify the Disk Defragmentation Policy

This section describes how to modify the disk defragmentation duration and policy to improve system performance.

Context

If maintenance engineers locate that poor system performance is caused by disk fragments, service engineers should modify the disk defragmentation policy under the guidance of maintenance engineers.
The disk defragmentation operations will adversely affect performance. Exercise caution when performing the operations.

Procedure

  1. Log in to the CLI. For details, seeAppendix A Common Operations > Logging In to the CLI.
  2. Modify the disk defragmentation policy, run the change task_policy 115 scheduleDispatchTime=[{"weekday":"X","startTime":"Y","endTime":"Z"},...] command.

    The disk defragmentation task is scheduled at a specified time on a daily basis. You can add multiple braces ({}) and separate them by comma (,) to set the task to be scheduled one time a day for several consecutive days.

    The value ranges for parameters in the preceding command are as follows:
    • weekday: 0-6, indicating Sunday to Saturday.
    • startTime: 000000-235958, indicating 01:00:00 to 23:59:59. startTime must be smaller than endTime.
    • endTime: 000001-235959, indicating 01:00:00 to 23:59:59. endTime must be larger than startTime.
    admin:/>change task_policy 115 scheduleDispatchTime=[{"weekday":"2","startTime":"135500","endTime":"140000"}] 
    Command executed successfully.

  3. Optional: Change the priority of the disk defragmentation task.

    The priorities for the disk defragmentation task include full speed, high, medium, and low.
    • Full speed: Flow control is not enabled for the disk defragmentation task.

      Exercise caution when changing the priority of the disk defragmentation task to full speed, because the system cannot ensure service functions.

      Command: change task_policy 115 jobPriority=1

    • High: Disk defragmentation causes system performance to deteriorate by not more than 80%.

      Command: change task_policy 115 jobImpact=1 jobPriority=N, among which the value of jobPriority is an integer ranging from 2 to 100 and must not be 1.

    • Medium: Disk defragmentation causes system performance to deteriorate by not more than 50%.

      Command: change task_policy 115 jobImpact=2 jobPriority=N, among which the value of jobPriority is an integer ranging from 2 to 100 and must not be 1.

    • Low: Disk defragmentation causes system performance to deteriorate by not more than 20%.

      Command: change task_policy 115 jobImpact=3 jobPriority=N, among which the value of jobPriority is an integer ranging from 2 to 100 and must not be 1.

Follow-up Procedure

You can log in to DeviceManager, navigate to the interface for task management, and check whether the disk defragmentation task is successfully enabled.

Translation
Download
Updated: 2019-04-28

Document ID: EDOC1000122524

Views: 10648

Downloads: 86

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