Modifying Properties of a Namespace

This section describes how to modify the properties of a namespace.

Procedure

  1. Choose Resources > Resources > Namespace.
  2. Select the desired account from the Account drop-down list in the upper left corner.
  3. Click More on the right of the desired namespace and select Modify.

    The Modify Namespace page is displayed.

  4. Modify basic information about the namespace.

    Table 1 describes related parameters.

    Table 1 Namespace parameters

    Parameter

    Description

    Automatic Update of Atime

    Indicates whether to enable the function of automatically updating the Atime. Atime indicates the time when the namespace is accessed. After this function is enabled, the system updates the Atime based on the value of Update Frequency.

    NOTE:

    Enabling Automatic Update of Atime compromises system performance.

    Update Frequency

    Indicates the Atime update frequency. The value can be Hourly or Daily.

    Snapshot Directory Visibility

    Indicates whether the directory of namespace snapshots is visible. If this parameter is set to Visible, the system displays the .snapshot directory in the namespace.

    Security Style

    Selects a security style based on service requirements, including:

    • Mixed: applies to the scenario where users of CIFS clients (using SMB) and UNIX clients (using NFS/HDFS/DPC) can access and control namespaces. In this mode, the permissions are subject to the last permissions set for CIFS clients or UNIX clients. CIFS permissions (NT ACL) and UNIX permissions (UNIX Mode/POSIX ACL/NFSv4 ACL) do not coexist.
    • UNIX: applies to the scenario where UNIX mode bits, POSIX ACLs, or NFSv4 ACLs control user permissions.
    NOTE:

    In Mixed mode (which supports NT ACLs), if you have configured an NT ACL for a file or directory on a Windows client and switched Mixed to UNIX, the NT ACL in Mixed mode will become invalid.

  5. Modify the space quota and file quantity quota of the namespace.

    Table 2 describes related parameters.
    Table 2 Quota parameters

    Parameter

    Description

    Hard Quota

    Indicates the space hard quota. If the quota is reached, the system immediately forbids writes and reports an alarm.

    [Value range]

    1 KB to 256 PB

    The value must be greater than those of Soft Quota and Advisory Quota.

    NOTE:

    If the used file space reaches the hard quota, the system forbids writes. If you want the system to report an alarm before writes are forbidden, set a soft quota and an advisory quota.

    Soft Quota

    Indicates the space soft quota. If the quota is reached, the system reports an alarm but still allows writes. If the soft quota grace period elapses or hard quota is reached, the system immediately forbids writes.

    [Value range]

    1 KB to 256 PB

    The value must be greater than that of Advisory Quota and less than that of Hard Quota.

    Advisory Quota

    Indicates the space advisory quota. If the quota is reached, the system reports an alarm but still allows writes.

    [Value range]

    1 KB to 256 PB

    The value must be less than those of Soft Quota and Hard Quota.

    Hard Quota (K)

    Indicates the file quantity hard quota. If the quota is reached, the system immediately forbids writes and reports an alarm. The unit is thousands.

    [Value range]

    1 to 100,000,000

    The value must be greater than those of Soft Quota (K) and Advisory Quota (K).

    NOTE:

    If the number of files reaches the hard quota, the system forbids file adding. If you want the system to report an alarm before files cannot be added, set a soft quota and an advisory quota.

    Soft Quota (K)

    File quantity soft quota. If the quota is reached, the system reports an alarm but still allows writes. If the soft quota grace period elapses or hard quota is reached, the system immediately forbids writes. The unit is thousands.

    [Value range]

    1 to 100,000,000

    The value must be greater than that of Advisory Quota (K) and less than that of Hard Quota (K).

    Advisory Quota (K)

    Indicates the file quantity advisory quota. If the quota is reached, the system reports an alarm but still allows writes.

    [Value range]

    1 to 100,000,000

    The value must be less than those of Soft Quota (K) and Hard Quota (K).

    Soft Quota Grace Period (Days)

    If the used file space or number of files reaches the soft quota, the system generates an alarm but still allows writes within this period. If this period elapses, the system immediately forbids writes.

    • If the used file space or the number of files in the namespace is less than the hard quota and greater than the soft quota, the system reports an alarm but does not forbid writes and does not delete existing data.
    • If the used file space or the number of files in the namespace is greater than the new space hard quota or file quantity hard quota, the system reports an alarm and forbids writes, but does not delete existing data.

  6. Whether to enable the DPC function of the namespace. After this function is enabled, the namespace can be mounted to the DPC node.

    After the DPC function is enabled, the object service cannot set the maximum and minimum WORM retention periods at the prefix level in the converged interworking scenario.

  7. Configure the recycle bin for the namespace. After the recycle bin function is enabled, the system automatically generates the .recyclebininternal directory in the namespace when files are deleted from the namespace for the first time. Files are not deleted immediately. Instead, they are moved to the recycle bin and are deleted only after the retention period expires.

    1. Enable Recycle Bin.
    2. Set the retention period of deleted files of the namespace. If you select Fixed period, you need to set a specific retention period.
      • Both the retention period of the recycle bin and the deletion policy of the namespace take effect on the data in the recycle bin. The data is deleted when either of the two policies is met.
      • The retention period takes effect for both the namespace and HDFS recycle bins.
      • If you select Permanent, files will not be deleted after being moved to the recycle bin. You can go to the .recyclebininternal directory in the namespace to manually delete the files.

  8. Configure SmartIndexing. After this function is enabled, the system creates indexes for the system metadata and custom metadata fields of files in the namespace. You can search for a list of files through metadata.

    This function can be set only when the data pilot service is enabled for the storage pool.

  9. Configure the audit lof function. After this function is enabled, the system logs operations of the namespace.

    This function can be set only when the data pilot service is enabled for the storage pool.

    1. Enable Audit Log.
    2. Set the operation type to be audit logged. Possible options are Create, Delete, and Rename.

  10. Click OK.
  11. Confirm your operation as prompted.