跳转到主内容

如何在 ONTAP 9 中修改 maxdirsize

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

适用于

描述

当在 ONTAP 中超过 maxdirsize 时,将向客户端发出空间不足错误 (ENOSPC) 并触发事件管理系统消息。要修复目录大小问题,存储管理员必须增加 maxdirsize 设置或将文件移出目录。

是否立即更改 maxdirsize?

 是的,当用户连接到文件管理器时,您可以随时更改 maxdirsize 以增加目录大小。

操作步骤

建议您仅以当前值的 2% 为增量增加 maxdirsize,以减少性能影响

  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"

  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.