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 10

OceanStor 18500 V3 and 18800 V3 Mission Critical Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and 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 file_system general

change file_system general

Function

The change file_system general command is used to modify file system parameters such as name, capacity, block size, and owning controller.

Format

change file_system general file_system_id=? { name=? | capacity=? | owner_controller=? | io_priority=? | block_size=? | capacity_threshold=? | timing_snapshot_max_number=? | snapshot_reserve=? } *

Parameters

Parameter

Description

Value

name=? Indicates the file system name.
  • The value consists of 1 to 255 ASCII characters including numbers, letters, underscores (_), hyphens (-), and periods (.).
  • To batch create file systems (when "number=?" is specified), the names will be automatically generated. A four-digit number starting from 0000 will be added to a specified name. For example, if the specified name is "FS", the names of the newly created file systems are "FS0000", "FS0001", and so on.
    NOTE:
    The specified name "name=?" can not exceed 251 characters.
capacity=? Indicates the file system capacity.
  • The value is in the format of "capacity value+unit of capacity". The unit can be MB, GB,TB or Blocks.
  • The value ranges from 1 GB to 16,384 TB.
  • One blocks equals 512 Bytes.
file_system_id=? Indicates the file system ID.

The value is an integer between 0 and 65535.

owner_controller=? Indicates the owning controller of the file system.

The value is in the format of "XA" or "XB" or "XC" or "XD", where the "X" is an integer ranging from 0 to 3, for example: "0A", "1C".

io_priority=? Indicates the I/O priority.

The value can be "Low", "Middle", or "High", where:

  • "Low": indicates the low priority.
  • "Middle": indicates the medium priority.
  • "High": indicates the high priority.
block_size=? Indicates the block size of the file system.

The value can be "4 KB", "8 KB", "16 KB", "32 KB", or "64 KB" with "64 KB" being the default.

capacity_threshold=? Indicates the capacity alarm threshold of the file system. When the consumed capacity in the file system exceeds the threshold, alarms will be reported.
  • The value is a percentage. The percentage must be a whole number.
  • The value ranges from 50 to 95.
timing_snapshot_max_number=? Indicates the maximum number of periodic snapshots.

The value ranges from 1 to 2048.

snapshot_reserve=? Indicates the proportion of the space reserved for snapshots.
  • The value is a percentage. The percentage must be a whole number.
  • The value ranges from 0 to 50.

Level

Administrator

Usage Guidelines

Before running this command, ensure that the selected file system is exactly the one you want to modify its settings.

Example

  • Check the pre-modified configuration of the file system.

    admin:/>show file_system general file_system_id=0
    ID : 0 
    Name : fs0 
    Pool ID : 0 
    Cache Partition ID : 
    Health Status : Normal 
    Running Status : Online 
    Capacity : 100.000GB 
    Description : 
    Type : Thin 
    Snapshot Reserve(%) : 20 
    Owner Controller : 0A 
    Work Controller : 0A 
    IO Priority : Low 
    Block Size : 64.000KB 
    Checksum Enabled : Yes 
    Atime Enabled : No 
    Show Snapshot Directory Enabled : Yes 
    Available Capacity : 79.874GB 
    Capacity Threshold(%) : 90 
    Auto Delete Snapshot Enabled : No 
    Snapshot Used Capacity : 0.000B 
    Timing Snapshot Max Number : 16 
    Snapshot Reserve Capacity : -- 
    Timing Snapshot Enabled : No 
    Timing Snapshot Schedule ID : 
    Snapshot Background Freeing Capacity : -- 
    Used Capacity Ratio(%) : 0 
    Initial Distribute Policy : Automatic
     
     
  • Modify the file system configuration as follows: capacity alarm threshold: 50%. file system name: fs003. owning controller: 0B. I/O priority: medium. reserved space for snapshots: 20%. maximum number of snapshots at a time: 20.

    admin:/>change file_system general file_system_id=0 capacity_threshold=50 name=fs003 owner_controller=0B io_priority=Middle snapshot_reserve=20 timing_snapshot_max_number=20
    WARNING: You are about to change the priority of file system.
    This operation may affect the file system performance.
    Suggestion:Before performing this operation, ensure that the preceding risk is acceptable and the correct file system is selected.
    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.
  • Check the modification results.

    admin:/>show file_system general file_system_id=0 
    ID : 0 
    Name : fs003 
    Pool ID : 0 
    Cache Partition ID : 
    Health Status : Normal 
    Running Status : Online 
    Capacity : 10.000GB 
    Description : 
    Type : Thin 
    Snapshot Reserve(%) : 20 
    Owner Controller : 0B 
    Work Controller : 0B 
    IO Priority : Middle 
    Block Size : 64.000KB 
    Checksum Enabled : Yes 
    Atime Enabled : No 
    Show Snapshot Directory Enabled : Yes 
    Available Capacity : 7.874GB 
    Capacity Threshold(%) : 50 
    Auto Delete Snapshot Enabled : No 
    Snapshot Used Capacity : 0.000B 
    Timing Snapshot Max Number : 20 
    Snapshot Reserve Capacity : -- 
    Timing Snapshot Enabled : No 
    Timing Snapshot Schedule ID : 
    Snapshot Background Freeing Capacity : -- 
    Used Capacity Ratio(%) : 1 
    Initial Distribute Policy : Automatic
    admin:/>
     

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084078

Views: 291221

Downloads: 252

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