NetApp quota設定

NetApp quotaまわりの設定備忘録

quotaコマンド

> quota help
usage: quota {off | resize} volume
       quota status [ volume ]
       quota on [-w] volume
       quota report [-q][-s][-t][-u | -x] [ path ]
       quota logmsg { on [] | off } [-v  | all]

設定ファイルに関して

/etc/quotasにある。下記は書式の例

 #Quota target  type                   disk  files  thold  sdisk  sfile
 #------------  ----                   ----  -----  -----  -----  -----
 target01       user@/vol/vol1/xx      500G  -      -      480G   -
 *              user@/vol/vol2/Home     5G   -      -      -      -
 *              user@/vol/vol2/Profiles 5G   -      -      -      -
 *              user@/vol/vol2/Works    10G  -      -      -      -
 /vol/vol2/xxxx tree                    700G  -     -      680G   -

targetを「*」にしておくとAD連携でCIFSマウントした時などに、各ユーザー毎の
quotaを制限出来て良い感じ。

コマンドメモ

quota on

quotaを有効化する。予め/etc/quotasを編集しておくこと。

 > quota on vol1

quota status

quotaのon/offなどが確認できる。

vol0: quotas are off.
vol1: quotas are on.
vol2: quotas are initializing (14% done).

quota report

各種quota情報を閲覧できる

 quota: some quotas are still initializing.
                                  K-Bytes             Files
 Type       ID    Volume    Tree  Used      Limit     Used    Limit   Quota Specifier
 ----- -------- -------- -------- --------- --------- ------- ------- ---------------
 user  xxxxxxxx     vol1       05 126087792 125829120   78081       - xxxxxxxx
 user      xxxx     vol1       06    785276 125829120   25942       - xxxx
 user   xxxxxxx     vol1       06       180 125829120      59       - xxxxxxx

quota resize

quotaを拡張したりする場合に使用する。/etc/quotasを再読み込みして反映させるイメージ。
そのため、予め/etc/quotasの変更を行っておくこと。

 > quota resize vol1

quota logmsg

ロギングをon/offできる。間隔も指定可能。現状の設定閲覧は下記の通り

 > quota logmsg
 vol0: quotas are off. Interval not set.
 vol1: message logging enabled. Interval = 60 minutes.
 vol2: message logging enabled. Interval = 60 minutes.