跳转到主内容

创建挂载到集群模式 Data ONTAP for Virtual Storage Console 的 NFS 数据存储库时是否需要卷的完整接合路径?

Views:
3
Visibility:
Public
Votes:
0
Category:
clustered-data-ontap-8
Specialty:
nfs
Last Updated:

适用于

  • 集群模式 Data ONTAP 8
  • FlexPod

解答

主页 -> 清单 -> vSphere Client 上的数据存储库中添加挂载到集群模式 Data ONTAP 的 NFS 数据存储库时, 应在 " 添加数据存储库 " 向导的 " 文件夹 " 中输入一个 SVM 中卷的完整接合路径。例如,如果完整接合路径为 "/junction_path_name " ,则应/junction_path_name在 " 文件夹 " 中输入 " " 。

强调这一点的原因是, vSphere 客户端 /ESX 主机允许使用类似于 "junction_path_name (不带 "/" )的接合路径。也就是说,即使您输入 "junction_path_name " 而不是 "/junction_path_name " 作为 " 文件夹 " , VMware 仍然可以创建和挂载数据存储库。

但是,如果要在 Virtual Storage Console 中使用此数据存储库,则需要完整的接合路径。由于在通过 " 备份和恢复 " 添加备份作业时, " 文件夹 " 中的任何输入都将用作参数,用于查询集群模式 Data ONTAP 中是否存在具有此接合路径的卷。如果此参数中没有 "/" ,则集群模式 Data ONTAP 会将其视为其他接合路径,并在没有具有此接合路径的卷的情况下进行响应。因此,添加备份作业时,此数据存储库不会列在 " 备份和恢复 " 中的 " 可用实体 " 中。

在这种情况下,server.log将类似于以下内容:

2014-09-02 11:33:04,862 [datastoreList:90eeb5ada2cb78270e7e34cd9d858b98:] DEBUG - Executing ZAPI request volume-get-iter to 10.130.200.222:
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE netapp SYSTEM 'file:/etc/netapp_filer.dtd'><netapp xmlns="http://www.netapp.com/filer/admin" version="1.7" vfiler="nfsv"><volume-get-iter><desired-attributes><volume-attributes><volume-id-attributes><name></name></volume-id-attributes></volume-attributes></desired-attributes><query><volume-attributes><volume-id-attributes><junction-path>qianbing_test2</junction-path></volume-id-attributes></volume-attributes></query></volume-get-iter></netapp>
2014-09-02 11:33:04,872 [datastoreList:90eeb5ada2cb78270e7e34cd9d858b98:] DEBUG - Received ZAPI response for volume-get-iter from 10.130.200.222:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_gx.dtd'>
<netapp version='1.21' xmlns='http://www.netapp.com/filer/admin'>
<results status="passed"><num-records>0</num-records></results></netapp>

SMVI 会抱怨:

2014-07-23 10:43:32,529 [datastoreList:0fd85a365279e0ad2349b2c4b81ff33a:] INFO - Unable to manage datastore datastore-15: Failed to find NFS export path qianbing_test2 for datastore datastore_qianbing_test2 on storage system xxx.xxx.xxx.xxx. NFS datastores must be exported from a Data ONTAP storage system.
com.netapp.smvi.task.vmware.util.InvalidDatastoreException: Failed to find NFS export path JDLVNFS0001_vol5 for datastore NFS_VDI_Store4 on storage system 192.168.83.25. NFS datastores must be exported from a Data ONTAP storage system.
at com.netapp.smvi.task.vmware.util.DatastoreMapper.createNfsDatastore(DatastoreMapper.java:447)
at com.netapp.smvi.task.vmware.util.DatastoreMapper.createDatastore(DatastoreMapper.java:269)
at com.netapp.smvi.task.vmware.util.DatastoreMapper.createDatastore(DatastoreMapper.java:135)
at com.netapp.smvi.task.vmware.VmGetDatastoreList.execute(VmGetDatastoreList.java:112)
at com.netapp.common.flow.TaskInstanceTemplate.execute(TaskInstanceTemplate.java:325)
at com.netapp.common.flow.Operation.executeCurrentStack(Operation.java:133)
at com.netapp.common.flow.Operation.execute(Operation.java:59)
at com.netapp.common.flow.Threadpool$OperationThread.run(Threadpool.java:263)

相比之下,server.log在正常情况下,显示的内容类似于以下内容:

2014-09-02 11:33:05,167 [datastoreList:90eeb5ada2cb78270e7e34cd9d858b98:] DEBUG - Executing ZAPI request volume-get-iter to 10.130.200.222:
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE netapp SYSTEM 'file:/etc/netapp_filer.dtd'><netapp xmlns="http://www.netapp.com/filer/admin" version="1.7" vfiler="nfsv"><volume-get-iter><desired-attributes><volume-attributes><volume-id-attributes><name></name></volume-id-attributes></volume-attributes></desired-attributes><query><volume-attributes><volume-id-attributes><junction-path>/qianbing_test3</junction-path></volume-id-attributes></volume-attributes></query></volume-get-iter></netapp>
2014-09-02 11:33:05,274 [datastoreList:90eeb5ada2cb78270e7e34cd9d858b98:] DEBUG - Received ZAPI response for volume-get-iter from 10.130.200.222:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_gx.dtd'>
<netapp version='1.21' xmlns='http://www.netapp.com/filer/admin'>
<results status="passed"><attributes-list><volume-attributes><volume-id-attributes><name>qianbing_test3</name><owning-vserver-name>nfsv</owning-vserver-name></volume-id-attributes></volume-attributes></attributes-list><num-records>1</num-records></results></netapp>

其他信息

附加信息 _text