配置现有共享的持续可用性
可将现有共享修改为持续可用的共享,供 Hyper-V 和 SQL Server 应用程序服务器使用,以便无中断地访问 Hyper-V 虚拟机和配置文件,以及 SQL Server 数据库文件。
关于本任务
如果现有共享具有以下特性,则不能将它用作持续可用的共享,以通过 SMB 实现应用程序服务器的无中断运行:
如果在该共享上设置了 homedirectory 共享属性
如果共享中包含已启用的符号链接或 widelink
如果共享的根之下包含接合卷
必须验证是否已正确设置以下两个共享参数:
-offline-files 参数设为 manual(默认)或 none。
必须禁用符号链接。
必须配置以下共享属性:
- continuously-available
- oplocks
不得设置以下共享属性。如果它们在当前共享属性列表中,则需要从持续可用的共享中删除:
- attributecache
- branchcache
- access-based-enumeration
示例
以下示例展示如何在存储虚拟机(SVM) vs1 上配置名为 share1
的现有共享,以通过 SMB 实现应用程序服务器的 NDO:
要在共享上禁用符号链接,需将 -symlink 参数设置为“”。
-offline-file 参数已修改,并已设为 manual。
continuously-available 共享属性已添加到共享。
oplocks 共享属性已在共享属性列表中;因此不需要添加。
attributecache 共享属性已从共享中删除。
browsable 共享属性对于持续可用的共享(用于通过 SMB 实现应用程序服务器的 NDO)是可选的,因此保留为共享属性。
cluster1::> vserver cifs share show -vserver vs1 -share-name share1
Vserver: vs1
Share: share1
CIFS Server NetBIOS Name: vs1
Path: /data
Share Properties: oplocks
browsable
attributecache
Symlink Properties: enable
File Mode Creation Mask: -
Directory Mode Creation Mask: -
Share Comment: -
Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: 10s
Volume Name: data
Offline Files: documents
<span className="ph">Vscan File-Operations Profile: standard</span>
cluster1::> vserver cifs share modify -vserver vs1 -share-name share1 -offline-file manual -symlink ""
cluster1::> vserver cifs share properties add -vserver vs1 -share-name share1 -share-properties continuously-available
cluster1::> vserver cifs share properties remove -vserver vs1 -share-name share1 -share-properties attributecache
cluster1::> vserver cifs share show -vserver vs1 -share-name share1 -fields symlink-properties,offline-files
vserver share-name symlink-properties offline-files
-------- ---------- ------------------ -------------
vs1 share1 - manual
cluster1::> vserver cifs share properties show -vserver vs1 -share-name share1
Vserver: vs1
Share: share1
Share Properties: oplocks
browsable
continuously-available
提供反馈