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

ONTAP 9でmaxdirsizeを変更する方法

Views:
515
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
core
Last Updated:

環境

概要

ONTAPでmaxdirsizeが超過すると、スペース不足エラー(ENOSPC)がクライアントに発行され、イベント管理システムメッセージがトリガーされます。ディレクトリサイズの問題を修正するには、ストレージ管理者がmaxdirsizeの設定を増やすか、ファイルをディレクトリから移動する必要があります。

maxdirsizeの変更は即時に反映されますか?

 はい、ユーザーがファイラーに接続しているときに、その場でmaxdirsizeを変更してディレクトリサイズを増やすことができます。

手順

パフォーマンスへの影響を低減するために、maxdirsizeは現在の値の2%ずつ増やすことを推奨します。

  1.   高度な権限を設定します。

::> set advanced

  1. 現在の maxdir size を表示します。How to identify the current maxdir-size value for my volume?を参照してください。
  2. 次の式に従って新しい値を計算します。

(maxdir-size × 2%)+ maxdir-size = 新しい値

例:

320 * 2% = 6.4 + 320 = 327
  1. コマンドを使用してmaxdirsizeを増やします。

 volume modify -vserver {NAME} -volume {NAME} -maxdir-size {size}

例:

svm1という名前のStorage Virtual Machine(SVM)上のvol1という名前のボリュームに対して最大ディレクトリサイズを327MBに設定します。

::> set advanced

::*>  volume modify -vserver svm1 -volume vol1 -maxdir-size 327MB

Volume modify successful on volume: vol1
::*> volume show -volume vol1 -fields maxdir-size
(volume show)
vserver volume maxdir-size
------- ------ -----------
svm1     vol1   327MB

注: -maxdir-sizeの値の末尾に「MB」が含まれていることを確認してください

  1. 以下のKB記事を参照して、ディレクトリのレイアウトを改善してください。

maxdirsizeの問題を回避するには、どのディレクトリ構造を使用する必要がありますか?

 

 

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.