跳转到主内容

如何在ONTAP 9中修改maxdirsize?

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

适用场景

问题描述

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

是否 立即更改maxdirsize?

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

操作步骤

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

  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的卷设置最大目录大小为327 MB。

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