メインコンテンツまでスキップ

ONTAP 9でmaxdirsizeを変更する方法

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

環境

概要

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

maxdirsize はすぐに変更されますか?

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

手順

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

  1.   advanced権限の設定

::> set advanced

  1. 現在のmaxdirサイズを表示するボリュームの現在のmaxdir-size値を確認するにはどうすればよいですか?
  2. 新しい値(maxdir-size x 2%)+ maxdir-size = new valueを計算します。

例:

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. 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.