Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

NFS クライアントの属性キャッシュの期限を設定する方法

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • NFS クライアント

Issue

  • NFS クライアントの属性キャッシュの期限を設定する方法は?

Resolution

  • acregmin、acregmax、acdirmin、acdirmax、および actimeo を使用して期限を設定することができます。

Root Cause

  • 以下は、NFS(5) の説明です。
       acregmin=n     一般のファイル (regular file) の属性 (attribute) がキャ
                      ッシュされる最小の時間を秒単位で指定する。この時間内では
                      、サーバーへの新たな情報の問い合わせは行われない。デフォ
                      ルトは 3 秒。

       acregmax=n     一般のファイルの属性がキャッシュされる最大の時間を秒単位
                      で指定する。この時間を越えると、必ずサーバーへ新たな情報
                      の問い合わせが行われる。デフォルトは 60 秒。

       acdirmin=n     ディレクトリの属性がキャッシュされる最小の時間を秒単位で
                      指定する。この時間内では、サーバーへの新たな情報の問い合
                      わせは行われない。デフォルトは 30 秒。

       acdirmax=n     ディレクトリの属性がキャッシュされる最大の時間を秒単位で
                      指定する。この時間を越えると、必ずサーバーへ新たな情報の
                      問い合わせが行われる。デフォルトは 60 秒。

       actimeo=n      acregmin, acregmax, acdirmin, acdirmax すべてを同じ値に
                      する。デフォルト値はない。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments