メインコンテンツへスキップ

フレキシブル ボリュームの最大ファイル数を増やす方法

Views:
6,627
Visibility:
Public
Votes:
4
Category:
ontap-9
Specialty:
core
Last Updated:

環境

  • ONTAP 9
  • フレキシブル ボリューム(FlexVol)
  • 最大inodeまたはファイル数

概要

この記事では、フレキシブル ボリュームのファイル(inode)の最大数を増やす方法について説明します。

ボリュームのinodeがなくなると、ONTAPは次のいずれかのエラーメッセージで警告します。

  • 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

手順

注:変更を行う前に次の内容を確認することをお勧めします: ONTAPでファイル数を増やす前の考慮事項

  1. advanced権限モードで volume show コマンドを使用して現在の設定を確認します。

::> set advanced

::*> volume show -vserver svm1 -volume vol1 -fields size,files,files-used,files-maximum-possible  

vserver volume size  files   files-used files-maximum-possible
------- ------ ----- -------- ---------- ----------------------
svm1   vol1  500GB 15564791 96     124518391

  • files - 現在のinodeまたはファイル数の制限。
  • files-used - ボリューム内で使用されているinodeおよびファイル数。
  • files-maximum-possible  - ボリュームサイズごとに許可される最大のinodeまたはファイル数。
  1. ボリュームを増やすか最大ファイル数を増やすかを決定します。
  • 現在のファイル数がfiles-maximum-possibleと同じ場合は、ボリュームサイズを増やすかファイルを削除する必要があります。
  • ボリュームのサイズを増やすと、値を手動で調整しなかった場合、ファイルに使用できるinodeの数が増えます。
  • ボリュームのサイズを大きくできない場合は、手動で制限を増やしてください。 
  1. ファイル数をどれだけ増やすかを決定します:

Formula:  現在のファイル  * 1.02  = 新しいファイル capacity.

例: (15564791 x 1.02 = 15876087

  • ワークロードの増加率が不明な場合は、現在のファイル数を2%増やすことを推奨します。
  • 移行の場合は、値をソースファイル数より2%高く設定します。
  • ワークロードのニーズが把握できている場合は、より高い値に設定できます。
  1. 次のコマンドを使用して、ボリュームを変更し、ファイル数を増やします。

::> volume modify -vserver svm1 -volume vol1 -files 15876087  
Volume modify successful on volume vol1 of Vserver svm1.
 
::> volume show -vserver svm1 -volume vol1 -fields files
vserver volume files
------- ------ --------
svm1   vol1   15876087

: 指定したファイル数が files-maximum-possible より大きい場合、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.

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.