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 File System Feature Guide 12

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).
Creating a Quota

Creating a Quota

This section explains how to create a quota. After a quota is created, it can be used to monitor and restrict the storage space utilization.

Prerequisites

  • You have logged in to the DeviceManager as an administrator that has the permission to create a quota. The following administrators have the permission:

    • Super administrator
    • Resource administrator
    • Administrator
  • At least one folder without a quota has been created.
  • The directory that you want to create a quota has been created a share.
  • At least one local or domain user or user group has been created.
  • The folder that you want to create a quota for is empty.
  • The number of created quotas does not reach the upper limit.

Procedure

  1. Log in to DeviceManager.
  2. Choose Provisioning > InfoAllocator > Quota Management.
  3. Click Create and set the quota parameters.

    Table 4-8 describes the related parameters.
    Table 4-8  Parameters for creating a quota

    Parameter

    Description

    Value

    Path

    Folder that you want to create a quota for.

    You can enter the path of an existing folder or click Browse... to select an existing folder.

    [Format]

    /Folder name

    [Example]

    /root/dir

    User/User Groups

    Name of the user or user group that you want to create a quota for.

    You need to search for and select the desired user or user group.

    UU

    [Value range]

    Possible values are everyone, Local Authentication User, Local Authentication User Group, NIS Domain User, NIS Domain User Group, LDAP/LDAPS Domain User, LDAP/LDAPS Domain User Group, AD Domain User, and AD Domain User Group.

    [Example]

    everyone

    NOTE:
    • everyone indicates all the users.
    • When you access the system using a CIFS client, set Users/User Groups according to your authentication mode.
      • For local authentication, select Local Authentication User or Local Authentication User Group.
      • For AD domain authentication, select AD Domain User or AD Domain User Group.
      • For LDAP domain authentication, select LDAP/LDAPS Domain User or LDAP/LDAPS Domain User Group.
    • When you access the system using an NFS client, set Users/User Groups according to the domain authentication server.
      • For client authentication using NIS servers, select NIS domain user or NIS domain user group.
      • For client authentication using LDAP servers, select LDAP/LDAPS Domain User or LDAP/LDAPS Domain User Group.
    • If the IDs of the two user groups respectively in the LDAP domain and NIS domain are the same while a quota needs to be created for one of the user groups, contact technical support engineers.
    • When CIFS users are mapped to NFS users, quota statistics will be collected for the NFS users or owning user group.

    Quota Type

    The system supports the following types of quotas:
    • Capacity Quota: Manage and monitor storage space that a user or a group consumes.
    • File Quantity Quota: Manage and monitor file number that a user or a group consumes.

    [Value range]

    The value can be Capacity Quota and File Quantity Quota.

    [Example]

    Capacity Quota

    Quota Mode

    The system supports the following ways of quotas:

    • Calculate quota: The calculate quota can only be used to monitor the storage space utilization or file utilization but cannot be used to restrict the storage space utilization or file utilization.
    • Mandatory quota: The mandatory quota can be used to monitor the storage space utilization or file utilization as well as restrict the storage space utilization or file utilization.

    There are three types of thresholds for the mandatory quota:

    • Hard threshold: When the storage space utilization or file utilization reaches the hard threshold, the system generates an alarm and immediately forbids data writing.
    • Soft threshold: When the used storage space utilization or file utilization reaches the soft threshold, the system generates an alarm but allows data writing before the grace period expires. After the grace period expires, the system forbids data writing immediately and generates an alarm.

      When configuring the soft threshold, you must configure a grace period.

    • Recommended threshold: When the storage space utilization or file utilization reaches the recommended threshold, the system only generates an alarm but does not forbid data writing.

    [Value range]

    The value can be Calculate quota or Mandatory quota.

    The value ranges of the mandatory quota's thresholds are as follows:

    • Hard threshold (GB/thousand): 0 to 4294967294
    • Soft threshold (GB/thousand): 0 to 4294967294
    • Grace period (day): 0 to 4294967294
    • Recommended threshold (GB/thousand): 0 to 4294967294

    [Example]

    Mandatory quota of the capacity quota

    • Hard threshold (GB): 6
    • Soft threshold (GB): 4
    • Grace period (day): 10
    • Recommended threshold (GB): 2
    NOTE:
    • For a capacity quota, the unit of the previous three thresholds is GB; for a file quantity quota, the unit of the previous three thresholds is thousand.
    • The recommended threshold, soft threshold, and hard threshold are optional. If a threshold is set to 0, this threshold is disabled. If none of the three thresholds is set to 0, it is recommended that the values of the recommended threshold, soft threshold, and hard threshold increase in ascending order.
    • When configuring the soft threshold, you must configure a grace period.
    • The values of the hard threshold, soft threshold, and recommended threshold must be in descending order.

  4. Click OK.

    The Execution Result dialog box is displayed, indicating that the operation succeeded.

  5. Click Close.

Follow-up Procedure

  • After a quota is created, you can log in to the DeviceManager to check the quota settings, used quota information.

    NOTE:
    When data is continuously written, the used quota may fluctuate in a short time. After the data writing is complete, wait at least 3 minutes and refresh the InfoAllocator page. The final quota change is displayed on the page.
  • After a user renames or cuts a directory, the new directory path will be displayed 10 minutes later.

  • A directory with a quota can be cut only when the total number of quotas of source directories and target directories, quota paths, and quota IDs as well as the quotas, available quotas, and used quotas of directories on each level keep unchanged after the cutting. Figure 4-8 illustrates the cutting of a directory with a quota.

    Figure 4-8  Cutting of a directory with a quota

    Directory d (QD) and its subdirectories can be cut and pasted from path /a(QA)/b(QB)/c to path /a(QA)/b(QB) because the total number of quotas, quota IDs, quotas, available quotas, and used quotas of parent directories a (QA) and b (QB) keep unchanged, no quotas are configured for directory c, and quota paths (that is, the levels of directories with quotas) are not changed after the cutting.

Translation
Download
Updated: 2019-06-27

Document ID: EDOC1000122519

Views: 79533

Downloads: 147

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