QUOTAON(8) QUOTAON(8) 名前 quotaon, quotaoff - ファイルシステムの quota を起動・停止する 書式 /usr/sbin/quotaon [ -vugfp ] [ -F format-name ] filesystem... /usr/sbin/quotaon [ -avugfp ] [ -F format-name ] /usr/sbin/quotaoff [ -vugp ] [ -x state ] filesystem... /usr/sbin/quotaoff [ -avugp ] 説明 quotaon quotaon は、1 つ以上のファイルシステムについてディスク quota を起動する ようにシステムに通知する。ファイルシステムの quota ファイルは、そのファ イ ルシステムのルートディレクトリに存在しなければならない。また、ユーザ ーの quota 用のファイルは aquota.user (バージョン 2 のユーザー quota), quota.user (バージョン 1 のユーザー quota), (for version 1 user quota), aquota.group (バージョン 2 のグループ quota), quota.group (バージョン 1 のグループ quota) という名前でなければならない。 XFS ファイルシステムは特殊なケースである - XFS は quota 情報をファイル システムメタデータとして扱い、ジャーナルを用いて高レベルで一貫性を保 証 す る。 XFS ディスク quota システムには、集計 (accounting) と制限の強制 (limit enforcement) を行う 2 つのコンポーネントがある。 XFS ファイル シ ス テムは quota の集計をマウント時に有効にする必要がある。 quota 集計を 有効にした後で、 XFS ファイルシステムの制限の強制を有効にしたり無効にし たりできる。デフォルトでは集計と強制の両方が有効にされる。 XFS の quota の実装では、ユーザーから見えるファイルではなく (ファイルシ ステムの) 内部に quota 情報を格納する。 quotaoff quotaoff は、指定されたファイルシステムについて全ての quota を停止す る ようにシステムに通知する。 オプション quotaon -a /etc/fstab で quota が指定された NFS 以外のファイルシステムのう ち、自動的にマウントされた (noauto オプションが指定されていない) 全 てのファイルシステムについて quota を起動する。通常はブート時 に quota を有効にするために用いられる。 -v quota が起動される各ファイルシステム毎にメッセージを表示する。 -u ユーザーの quota の操作を行なう。これがデフォルトである。 -g グループの quota の操作を行なう。 -p quota を有効にするのではなく、 quota の状態 (つまり quota が有効 か無効か) の表示だけを行う。 -f quotaoff が呼ばれたかのように、 quotaon を動作させる。 quotaoff -F format-name 指 定されたフォーマットで quota を表示する (つまり、フォーマット の自動判定を行わない)。指定可能なフォーマット名は以 下 の 通 り: vfsold ( バージョン 1 の quota), vfsv0 (バージョン 2 の quota), xfs (XFS ファイルシステム上の quota)。 -a /etc/fstab にある全てのファイルシステムの quota を停止する。 -v quota が停止される各ファイルシステム毎にメッセージを表示する。 -u ユーザーの quota の操作を行なう。これがデフォルトである。 -g グループの quota の操作を行なう。 -p quota を無効にするのではなく、 quota の状態 (つまり quota が有効 か無効か) の表示だけを行う。 -x delete XFS において、(内部で管理される) quota 情報を保持するために使用 している領域を解放する。このオプションは XFS にのみ適用可能で 、 他のファイルシステムタイプでは黙って無視される。このオプションは 以前に quota を無効にしたファイルシステムにのみ使用可能である。 -x enforce XFS ファイルシステムの制限の強制を無効にする (quota の集計のみを 実行する)。このオプションは XFS にのみ適用可能で、他のファイルシ ステムタイプでは黙って無視される。 XFS ファイルシステムについての注意 XFS ファイルシステムの quota を有効にするためには、 mount(8) ま た は /etc/fstab の quota オプションを使い、集計と制限の強制の両方を有効にす る。 quotaon ユーティリティは、この目的に使うことはできない。 XFS ルートファイルシステムの quota を有効にするには、 Linux の root- flags ブートオプションを使って、ブート時にカーネルに quota のマウントオ プションを渡す必要がある。 XFS ファイルシステムの quota 制限の強制を無効にするには、 repquota -s を使って quota の集計と強制がともに有効になっていることを確認せよ。それ から quotaoff -vo を使って制限の強制を無効にすること。これはファイル シ ステムがマウントされている間にも実行できる。 XFS ファイルシステムの quota 制限の強制を有効にするには、 quotaon -v を 使う。これはファイルシステムがマウントされている間にも実行できる。 ファイル aquota.user または aquota.group ファイルシステムのルートに置かれた quota ファイル ( バ ージョン 2 の quota, XFS 以外のファイルシステム) 。 quota.user または quota.group ファイルシステムのルートに置かれた quota ファイル ( バ ージョン 1 の quota, XFS 以外のファイルシステム) 。 /etc/fstab デフォルトのファイルシステム。 関連項目 quotactl(2), fstab(5), repquota(8). 4th Berkeley Distribution QUOTAON(8)
QUOTAON(8) QUOTAON(8) NAME quotaon, quotaoff - turn filesystem quotas on and off SYNOPSIS /sbin/quotaon [ -vugfp ] [ -F format-name ] filesystem... /sbin/quotaon [ -avugfp ] [ -F format-name ] /sbin/quotaoff [ -vugp ] [ -x state ] filesystem... /sbin/quotaoff [ -avugp ] DESCRIPTION quotaon quotaon announces to the system that disk quotas should be enabled on one or more filesystems. The filesystem quota files must be present in the root directory of the specified filesystem and be named either aquota.user (for version 2 user quota), quota.user (for version 1 user quota), aquota.group (for version 2 group quota), or quota.group (for version 1 group quota). XFS filesystems are a special case - XFS considers quota information as filesystem metadata and uses journaling to provide a higher level guar- antee of consistency. There are two components to the XFS disk quota system: accounting and limit enforcement. XFS filesystems require that quota accounting be turned on at mount time. It is possible to enable and disable limit enforcement on an XFS filesystem after quota account- ing is already turned on. The default is to turn on both accounting and enforcement. The XFS quota implementation does not maintain quota information in user-visible files, but rather stores this information internally. quotaoff quotaoff announces to the system that the specified filesystems should have any disk quotas turned off. OPTIONS quotaon -F, --format=format-name Report quota for specified format (ie. don’t perform format autodetection). Possible format names are: vfsold Original quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits, vfsv1 Quota format with 64-bit quota limits and usage, xfs (quota on XFS filesystem) -a, --all All automatically mounted (no noauto option) non-NFS filesystems in /etc/fstab with quotas will have their quotas turned on. This is normally used at boot time to enable quotas. -v, --verbose Display a message for each filesystem where quotas are turned on. -u, --user Manipulate user quotas. This is the default. -g, --group Manipulate group quotas. -p, --print-state Instead of turning quotas on just print state of quotas (ie. whether. quota is on or off) -f, --off Make quotaon behave like being called as quotaoff. quotaoff -F, --format=format-name Report quota for specified format (ie. don’t perform format autodetection). Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem) -a, --all Force all filesystems in /etc/fstab to have their quotas dis- abled. -v, --verbose Display a message for each filesystem affected. -u, --user Manipulate user quotas. This is the default. -g, --group Manipulate group quotas. -p, --print-state Instead of turning quotas off just print state of quotas (ie. whether. quota is on or off) -x, --xfs-command delete Free up the space used to hold quota information (maintained internally) within XFS. This option is only applicable to XFS, and is silently ignored for other filesystem types. It can only be used on a filesystem with quota previously turned off. -x, --xfs-command enforce Switch on/off limit enforcement for XFS filesystems (perform quota accounting only). This option is only applicable to XFS, and is silently ignored for other filesystem types. NOTES ON XFS FILESYSTEMS To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota option to enable both accounting and limit enforcement. quotaon util- ity cannot be used for this purpose. Turning on quotas on an XFS root filesystem requires the quota mount options be passed into the kernel at boot time through the Linux root- flags boot option. To turn off quota limit enforcement on any XFS filesystem, first make sure that quota accounting and enforcement are both turned on using repquota -v filesystem. Then, use quotaoff -v filesystem to disable limit enforcement. This may be done while the filesystem is mounted. Turning on quota limit enforcement on an XFS filesystem is achieved using quotaon -v filesystem. This may be done while the filesystem is mounted. FILES aquota.user or aquota.group quota file at the filesystem root (version 2 quota, non-XFS filesystems) quota.user or quota.group quota file at the filesystem root (version 1 quota, non-XFS filesystems) /etc/fstab default filesystems SEE ALSO quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8) 4th Berkeley Distribution QUOTAON(8)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa