Data Backup and Recovery

SnapCenter: add-smresource cmdlet syntax for LUNs in Qtrees for the storage plugin

Matthias_Dietermann
1,495 Views

Hi there,

 

I am looking for help with the add-smresource cmdlet for the Storage community plugin:

 

We want to add resources of type "StorageResource" (coming from the "Storage" custom plugin) to SnapCenter.
We want to use the add-smresource plugin. We succeeded with a LUN (UN-Path svm:/vol/lun) that is NOT in a qtree:
:>add-smresource -hostname 'host' -resourcename 'test' -plugincode Storage -resourcetype StorageResource   
-StorageFootPrint (@{"LunName"="lun";"VolumeName"="vol";"StorageSystem"="svm"})

Does anybody know the correct syntax when the LUN resides in a qtree? Example LUN-Path:
svm:/vol/qtree/lun
We tried many combinations of the storage footprint but always got an error.

 

Any help and hint woul be great,

Matthias

 

1 ACCEPTED SOLUTION

Matthias_Dietermann
1,053 Views

Hi, and thanks for the reply!

In this case it turned out that we encountered a "bug" in SC:

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Protection_and_Security/SnapCenter/Add-SMResource_from_SnapCenter_Powershell_for_the_custom_Stor...

In the SC database the resource has to be changed from "Storage Resource" to "StorageResource" (remove the Blank).
And then we had to replace "LunName"="a/u.lun";" with "LunName"="a\u.lun";" (replace Slash with BackSlash) for this specific resource. 
After these two one character changes the add-smresource cmdlet works for the StoragePlugin.

View solution in original post

2 REPLIES 2

Mjizzini
1,101 Views

The path will be /vol/vol-name/qtree-name/lun-name

 

LUN show

{ -path <path> - LUN PathSpecifies the path of the new LUN. The LUN path cannot contain any files. Examples of correct LUN paths are /vol/vol1/lun1 and /vol/vol1/qtree1/lun1.

 

Matthias_Dietermann
1,054 Views

Hi, and thanks for the reply!

In this case it turned out that we encountered a "bug" in SC:

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Protection_and_Security/SnapCenter/Add-SMResource_from_SnapCenter_Powershell_for_the_custom_Stor...

In the SC database the resource has to be changed from "Storage Resource" to "StorageResource" (remove the Blank).
And then we had to replace "LunName"="a/u.lun";" with "LunName"="a\u.lun";" (replace Slash with BackSlash) for this specific resource. 
After these two one character changes the add-smresource cmdlet works for the StoragePlugin.

Public