このコンテンツは選択した言語では利用できません。

9.10.3. Configuring Disk Quotas


User quotas enforce disk quotas per gear because each gear corresponds to a system user. The quota values are set in the /etc/openshift/resource_limits.conf file. Modify these values to suit your requirements.
Expand
Table 9.5. Disk Quota Configuration Options:
Option Description
quota_files The number of files the gear is allowed to own.
quota_blocks The amount of space the gear is allowed to consume in blocks (1 block = 1024 bytes).

Important

The minimum allowed value for the quota_blocks parameter is 1 GB.
Enable enforcement of disk quotas at the file system level.

Procedure 9.7. To Enable Disk Quotas:

  1. Consult the /etc/fstab file to determine which device is mounted as /var/lib/openshift. In a simple setup, it is the root partition, but in a production system, it is more likely a RAID or NAS mount at /var/lib/openshift. The following steps in this procedure use the root partition as the example mount point. Adjust these to suit your system requirements.
  2. Add a usrquota option for that mount point entry in the /etc/fstab file.

    Example 9.7. Example Entry in the /etc/fstab file

    UUID=4f182963-5e00-4bfc-85ed-9f14149cbc79  /  ext4  defaults,usrquota  1 1
    Copy to Clipboard Toggle word wrap
  3. Reboot the node host or remount the mount point:
    # mount -o remount /
    Copy to Clipboard Toggle word wrap
  4. Generate user quota information for the mount point:
    # quotacheck -cmug /
    Copy to Clipboard Toggle word wrap
  5. Fix the SELinux permissions on the aquota.user file located in the top directory of the mount point:
    # restorecon /aquota.user
    Copy to Clipboard Toggle word wrap
  6. Re-enable quotas on the mount point:
    # quotaon /
    Copy to Clipboard Toggle word wrap
Verifying the Disk Quota Configuration

Create an application and then run the following command to verify that your disk quota is correct:

# repquota -a | grep gear-uuidrepquota -a | grep gear-uuid
Copy to Clipboard Toggle word wrap
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat