Data Protection
Data Protection
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
Solved! See The Solution
Hi, and thanks for the reply!
In this case it turned out that we encountered a "bug" in SC:
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.
The path will be /vol/vol-name/qtree-name/lun-name
{ -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.
Hi, and thanks for the reply!
In this case it turned out that we encountered a "bug" in SC:
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.