跳转到主内容

create_ucode和convert_ucode选项如何控制Data ONTAP 版本中的unicode转换?

Views:
49
Visibility:
Public
Votes:
0
Category:
clustered-data-ontap-8
Specialty:
core
Last Updated:

适用场景

  • 集群模式 Data ONTAP 8.3
  • 集群模式 Data ONTAP 8.2      
  • 集群模式 Data ONTAP 8  
  • Data ONTAP 8 7-模式       

问题解答

create_ucode和convert_ucode选项如何控制Data ONTAP 版本中的unicode转换?

Data ONTAP 7-模式:

在Data ONTAP 7-模式中、选项 convert_ucodecreate_ucode 仅对NFSv3有效。
如果 create_unicode 设置为on、则NFSv3将以unicode格式创建目录、否则将以非unicode格式创建这些目录。
如果 convert_ucode 为on、并且NFSv3尝试访问非unicode目录、则在提供数据之前会进行转换。
如果 convert_ucode 设置为off、则NFSv3访问非unicode目录时不会进行转换。
NFSv4/CIFS始终会创建unicode目录、并将非unicode目录转换为unicode、而不管这些选项的值如何。

集群模式Data ONTAP :

选项create_ucode:
在集群模式Data ONTAP 中 create_ucode 、始终设置为on、并且所有协议都会以unicode格式创建(包括NFSv3)目录。
无法在集群模式Data ONTAP 中更改此选项。即使在迁移7-模式卷时、此选项也始终设置为on (即使该选项在7-模式中设置为off)。
本机创建的集群模式Data ONTAP 卷将始终将此选项设置为on。

选项convert_ucode:
在集群模式Data ONTAP 本机创建的卷中 convert_ucode 、设置为on。
但是、当卷从Data ONTAP 7-模式过渡到集群模式Data ONTAP 时、选项的值将保留下来、并从Data ONTAP 7-模式传输到集群模式Data ONTAP。

在集群 模式Data ONTAP 8.2.X及更早版本中、这些create_ucodeconvert_ucode卷选项的行为与Data ONTAP 7-模式相同。

在集群 create_ucode模式Data ONTAP 8.3及更高版本中、的行为与Data ONTAP 7-模式的行为相同。

但是、选项的行为有所不同 convert_ucode
在所有早期版本 convert_ucode 中、此选项不适用于NFSv4/CIFS;而在Data ONTAP 8.3及更高版本中、此选项也适用于NFSv4/CIFS。
如果 convert_ucode为on(启用)、则所有协议都会将非unicode转换为unicode (而不管目录大小如何)。
如果 convert_ucode关闭(禁用)、则NFSv3不会尝试转换。如果目录大小小于2 MB、则NFSv4/CIFS将进行转换。
如果非unicode目录大小大于2 MB、则会阻止访问、 wafl.dir.convert.denied.2big 并触发EMS日志。

下表总结了这些行为:

convert_ucode 选项的目录转换 

convert_ucode值 访问方法 7-模式 CDOT 8.2及更低版本 CDOT 8.3及更高版本
关闭 NFSv3 无转换 无转换 无转换
关闭 ZAPI 无转换 无转换 无转换
关闭 NFSv4/CIFS 转换 转换 只有
当目录大小小于2MiB时、才会进行转换。
对于大于2 MiB的目录
、不会发生转换并
显示错误。*

*此2 MiB限制已从ONTAP 9.5及更高版本增加到100 MiB。 
开启 NFSv3 转换 转换 转换
开启 ZAPI 转换 转换 转换
开启 NFSv4/CIFS 转换 转换 转换

追加信息

相关链接:

 

 

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.