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).
Working Principles

Working Principles

This section describes concepts and working principles of InfoAllocator, including the quota type, quota mode, thresholds of a mandatory quota, and effective quota.

Basic Concepts

  • Quota types
    • Capacity quota: monitors and controls storage capacity usage.
    • File quantity quota: monitors and controls file usage.
  • Quota modes
    • Calculate quota: only monitors storage capacity or file usage.
    • Mandatory quota: monitors and controls storage capacity or file usage.
  • Thresholds of a mandatory quota.

    Figure 4-1 shows the relationship between thresholds of a mandatory quota.

    • The recommended threshold, soft threshold, and hard threshold are optional. If a threshold is set to 0, there is no limit to this threshold.
    • When the recommended threshold, soft threshold, and hard threshold are not set to 0, their values increase progressively.
    Figure 4-1  Relationship between thresholds of a mandatory quota

    Table 4-3 describes thresholds of a mandatory quota.

    Table 4-3  Thresholds of a mandatory quota
    Threshold Type Description
    Recommended threshold

    When the recommended threshold is reached, the OceanStor 9000 allows you to continue writing data while generating an alarm.

    Soft threshold When the used storage space or file quantity reaches the soft threshold, the OceanStor 9000 generates an alarm but allows data writing before the grace period expires. After the grace period expires, the OceanStor 9000 forbids data writing immediately and generates an alarm.

    You need configure a grace period when configuring the soft threshold.

    Hard threshold When the storage space or file quantity usage reaches the hard threshold, the OceanStor 9000 generates a run log and immediately forbids data writing.
    NOTE:
    • Log in to DeviceManager. On the navigation bar, click Alarms. On the page that is displayed, click All Events. Then view system run logs.
    • If the primary node of a quota malfunctions when storage space or file quantity usage is close to the hard threshold, the system may not forbid data writing immediately. The system forbids data writing immediately after the primary node is recovered.
  • Default quota

    A default quota refers to the quota of a specific directory that can be used by any user or user group by default. After a default quota is created, it can automatically restrict and collect statistics about the use of a specific directory by any user. You do not need to create quotas for newly created users, simplifying operations related to quotas.

    After a default quota is configured for a directory, the system automatically creates a quota item for a user when the user writes files or create directories in the directory. If the quota item is defined by the user, directory, and quota type, the quota item is an associated quota. This quota is associated with the default quota of the directory. The use of storage space and file quantity is restricted by the default quota. Figure 4-2 shows the relationship between a default quota and associated quotas. Creation Mode for the associated quotas is displayed as Associated Quota.

    As shown in Figure 4-2, set the default quota of directory b to QB. After user quota_user1 uses directory b, the system automatically creates a quota for the user. The default quota attribute is the same as the default quota QB. The available capacity is 10 GB. The creation mode is associated quota. After user quota_user2 uses directory b, the system automatically creates a quota for user quota_user2. The available capacity is 10 GB.

    Figure 4-2  Relationship between a default quota and associated quotas

    The relationship between a default quota and associated quotas is as follows:

    • Changes in the thresholds of a default quota will be synchronized to all associated quotas.
    • An associated quota cannot be deleted alone. When the default quota is deleted, all the associated quotas are deleted at the same time.
    • If the thresholds of an associated quota are changed, the quota turns to an independent quota item automatically. Then the quota is not associated with the default quota any more and the use of storage space and files is not restricted by the default quota.

    When a user accesses a directory configured with a default quota, the system generates an associated quota for the user. If a user quota with the same type as the default quota has been created in the directory, the use of storage space and file quantity is restricted by the user quota instead of the default quota. Figure 4-3 provides an example. A capacity quota, the same quota type as the default quota, is created for user quota_user1, and then the use of storage space by the user is restricted by the manually created quota item QBB.

    Figure 4-3  Creating a user quota with the same type as the default quota in the same directory

    When you delete the quota item you manually created, if the default quota of the same quota type is configured in the quota item's directory and the used quota capacity of the quota item is not 0, Creation Mode of this quota turns from Manual to Associated Quota. The associated quota is associated with the default quota of the same quota type, and the use of storage space and files is restricted by the default quota. If the used quota capacity of the quota item is 0, the used quota will be deleted. If the used quota capacity of the quota item is greater than that of the hard threshold of the default quota, the usage of this quota is greater than 100%. Take Figure 4-4 as an example, the quota item QBB and the default quota QB are of the same type, and the used quota capacity is not 0. When you delete QBB, it will turn to the associated quota QB_1, which is associated with QB. The used quota capacity of QBB is 20 GB. After the quota item turns to the associated quota QB_1, the used quota capacity is greater than that of the hard threshold. On DeviceManager, the quota usage is 200%.

    Figure 4-4  Creating a user quota with the same type as the default quota in the same directory

    When a user accesses a directory configured with a default quota, the system generates an associated quota for the user. If a user quota of the same type as the default quota has not been created in the directory, the use of storage space and file quantity is restricted by the default quota. Figure 4-5 provides an example. A file quantity quota, which is different from the type of the default quota, is created for user quota_user1, and then the use of file quantity by the user is restricted by the manually created quota item QBC while the use of storage space is restricted by quota item QB_1 of the associated quota.

    Figure 4-5  Creating a user quota of a different type from the default quota in the same directory

    Default quotas are classified into default user quotas and default user group quotas. Default user quotas apply to all users, whereas default user group quotas apply to users in a specific user group. This version supports default user quotas only.

  • Effective quota

    Before creating a quota, select a user or user group, directory, and quota type. The combination of a user/user group, directory, and quota type uniquely identifies a quota.

    If you create a user with the same name as a deleted user and the CIFS client is not remounted to the shared directory, quota statistics are still collected for the deleted user. Changes in local authentication users or domain users accessing a CIFS share (for example, a user is disabled, the password is changed, the owning group is changed, a user is deleted) will take effect after the next authentication (can be triggered by remounting). Then, a new quota item can take effect.

    After you set a quota for a user and an owning user group, or a directory and a child directory, the quotas are valid for both of them, and the quota that reaches the hard threshold first takes effect first, as shown in Table 4-4.

    Table 4-4  Effective quota
    Quota Quota Type Quota Mode User/User Group Directory Hard Threshold (GB)
    A Capacity quota Mandatory quota group1 /dir 6
    B quota_user1 12
    Item that takes effect on quota B quota_user1 6
    NOTE:
    group1 indicates a user group, and quota_user1 indicates a user, which is included in user group group1.
  • Quota statistics

    Administrators can view and make statistics on used quotas. You can calculate used quotas as follows:

    QuotaUsed = QuotaConfirmed@100 + (Allocated@101 + Allocated@102 + Allocated@103)
    • QuotaUsed: used quota
    • QuotaConfirmed@100: quota whose usage has been confirmed in 100 and whose data has been written in to the storage system
    • Allocated@101: quota that is preallocated in 101 and whose data is being or has been written to the storage system
    • Allocated@102: quota that is preallocated in 102 and whose data is being or has been written to the storage system
    • Allocated@103: quota that is preallocated in 103 and whose data is being or has been written to the storage system

    The system marks a statistical period with a version number. The version number increases with the statistical period. Numbers 100, 101...are used as an example here. When a file writing is canceled, the system releases the preallocated quota accordingly. When file writing of Allocated@102 is canceled, the system releases the quota immediately. In this condition: QuotaUsed = QuotaConfirmed@100 + (Allocated@101 + Allocated@103)

    The quota statistics is periodic. 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.

Implementation

Table 4-5 describes quota B, and Figure 4-6 shows the quota management process.
Table 4-5  Quota B
Quota Quota Type Quota Mode User Directory Recommended Threshold (GB) Soft Threshold (GB) Grace Period (day) Hard Threshold (GB)
B Capacity quota Mandatory quota quota_user1 /dir 3 4 10 6
Figure 4-6  Quota management process

  1. A user writes 1 GB of file 1 to the OceanStor 9000. The consumed storage space is 1 GB.
  2. The OceanStor 9000 checks the mode, , and thresholds of the user's quota.

    The quota is mandatory and does not reach the threshold. Data writing is allowed.

  3. The user writes 2 GB of file 2 to the OceanStor 9000. The consumed storage space is 3 GB.
  4. The recommended threshold is reached. The OceanStor 9000 generates an alarm but allows data writing.

  5. The user writes 1 GB of file 3 to the OceanStor 9000. The consumed storage space is 4 GB.
  6. The soft threshold is reached. The OceanStor 9000 generates an alarm but allows data writing before the grace period expires.

    NOTE:
    After the grace period expires, the OceanStor 9000 forbids data writing immediately and generates an alarm.
  7. The user writes 2 GB of file 4 to the OceanStor 9000. The consumed storage space is 6 GB.
  8. The hard threshold is reached. The OceanStor 9000 generates a run log and forbids writing data.

Translation
Download
Updated: 2019-06-27

Document ID: EDOC1000122519

Views: 84228

Downloads: 151

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