跳转到主内容

如何修改 ONTAP 9 中的 maxdir-size

Views:
646
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用于

说明

  • 当目录的文件名元文件超过设置的限制时,将向客户端发出空间不足错误 (ENOSPC) 并触发事件管理系统消息 (EMS)。
  • 为了修复目录大小问题,存储管理员可以增加 maxdir-size 设置或重组目录。

操作步骤

更改前的注意事项
进行更改
  1.   设置高级权限:

::> set advanced

  1. 查看您当前的 maxdir 大小。请参阅 如何识别卷的当前 maxdir-size 值?
  2. 根据公式计算新值:

(maxdir-size x 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"

视频参考

     

    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.