フレキシブルボリュームの最大ファイル数を増やす方法
環境
- ONTAP 9
- フレキシブルボリューム(FlexVol)
- 最大inode数(maxfiles)
説明
この資料では、Flexibleボリュームのファイル(inode)の最大数を増やす方法について説明します。
- ボリュームのinodeが不足している場合、ONTAPから次のようなエラーメッセージが1つ以上表示されます。
Error message: no space left on the device
Error message: file system is out of inodes
wafl.vol.outOfInodes: file system on Volume vol_test1@vserver:vserver_1 is out of inodes because it has reached the maximum number of files
wafl.vol.runningOutOfInodes: The file system on Volume vol1@vserver:20884ed5-68e5-11ea-a757-00a098c4fca2 is using 80 percent or more of the files that can be contained on the volume.
INODE: System/Cluster Notification from filer (OUT OF INODES) ALERT
手順
ボリュームを拡張するか最大inode容量を拡張するかを決定する
- ボリュームのサイズを増やすと、使用可能なinodeの数が増える可能性があります。
- このチャートを確認してください。 ( ONTAP 9.13.1以降の拡張機能)
- ボリュームを拡張できない場合は 、
volume modify
コマンドを使用してinode容量を拡張します。
inode容量を手動で拡張する
- 既存のワークロードの場合、現在のinode容量を一度に2%ずつ増やすのがベストプラクティスです。移行の場合は、ソースファイル数より2%多い値を設定します。新規ファイルの増加率が高い場合は、2%以上高い値に設定することも可能です。
- (現在のinode容量x 2%)+現在のinode容量=新しいinode容量
例 (35501358 x 2%)+ 35501358 =36211385
- ボリュームを変更して inode容量(
-files
)を拡張します。
volume modify –vserver <vserver name> -volume <volume name> -files <number of files>
- 例
-
::> volume modify -vserver svm1 -volume vol1 -files 36211385 Volume modify successful on volume vol1 of Vserver svm1. ::> volume show -vserver svm1 -volume vol1 -fields files vserver volume files ------- ------ -------- svm1 vol1 36211385
注:
- inode容量がボリュームサイズあたりの最大値に設定されている場合は、削除するファイルを選択するか、ボリュームサイズを増やす必要があります。
- 指定した新しいサイズがボリュームで対応可能なサイズよりも大きい場合、ONTAPは可能な最大値を報告します。
::*> vol modify -vserver svm1 -volume vol1 -files 125000000
Error: command failed: Unable to set volume attribute "files" for volume "vol1" on Vserver
"svm1". Reason: The value you entered (125000000) is invalid; maximum inode count cannot
exceed 124518391.
Cannot support more than one inode per 4 KB of disk space.