跳转到主内容

从 SnapCenter PowerShell 为自定义存储插件添加 SMResource 失败

Views:
5
Visibility:
Public
Votes:
2
Category:
snapcenter
Specialty:
snapx
Last Updated:

适用场景

  • SnapCenter 服务器
  • SnapCenter 自定义插件—存储

问题描述

例如,使用 Automation Store 中的 " 存储 " 插件为 Linux 主机添加 LUN 资源的 PowerShell 命令将失败,如下所示:

Add-SmResource -Hostname <LUN_HOST> -PluginCode Storage -ResourceName <LUN_NAME> -ResourceType "Storage Resource" -StorageFootprint (@{"VolumeName"="<VOLUME>";"LunName"="LUN_NAME";"StorageSystem"="<SVM_NAME>"})

Add-SmResource : Cannot retrieve the dynamic parameters for the cmdlet. Unsupported Resource Type

At line:1 char:1
+ Add-SmResource -Hostname <LUN_HOST> -PluginCode Storage -ResourceName <LUN_NAME> -Re ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Add-SmResource], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,SmPSSnapin.PSAddScInventory

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.