跳转到主内容

从 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

Scan to view the article on your device