Skip to main content
SnapCenter 6.0 cmdlets

Invoke-SmTechRefreshPrimaryStorage

Contributors

Perform storage tech refresh of host.

Syntax

Invoke-SmTechRefreshPrimaryStorage [-HostName]  <String>  [-IsDryRun]  <Boolean>  [-ChangedNDVMapping]  <Hashtable[]>

Detailed Description

Perform storage tech refresh of host.

Parameters

Name Description Required? Pipeline Input Default Value

HostName

Specify the host name on which storage refresh has to be done.

true

true (ByPropertyName)

IsDryRun

Specify whether you want to perform a dry run to find the list of resources for which storage has changed. By default, the value of dry run is set to true.

false

true (ByPropertyName)

True

ChangedNDVMapping

Specify the list of Non Data Volumes(NDV) mapping if NDV resource is being migrated from one set of volumes to another set. You must provide the NDVs mapping in a hashtable, and it must contain the OldVolumePath and NewVolumePath. For example,@{"OldVolumePath"="SVM1:/vol/myVol1";"OldVolumePath"="SVM2:/vol/myVol1_new"},@{"OldVolumePath"="SVM3:/vol/myVol2";"OldVolumePath"="SVM4:/vol/myVol2_new"} You can include comma-separated values for multiple NDVs mapping.

false

true (ByPropertyName)

Examples

Example 1: Storage tech refresh of host.

 Invoke-SmTechRefreshPrimaryStorage -HostName host.mva.gdl.netapp.com -IsDryRun 0
Initiating storage tech refresh..
Name: Tech refresh of storage in host 'host.mva.gdl.netapp.com'
Id  : 984
StartTime   : 10/26/2023 5:02:14 AM
EndTime : 10/26/2023 5:02:14 AM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Running
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 52
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  : NONE
HostId  : 0
RoleId  :
JobIds  : {}
ScsJobId:
Invoke-SmTechRefreshPrimaryStorage Completed

This example does a tech refresh of the storage in the host.

Example 2: Storage tech refresh of host.

 Invoke-SmTechRefreshPrimaryStorage -HostName host.mva.gdl.netapp.com -IsDryRun 0 -ChangedNDVMapping @{"OldVolumePath"="SVM1:/vol/myVol1";"NewVolumePath"="SVM2:/vol/myVol1_new"},@{"OldVolumePath"="SVM3:/vol/myVol2";"NewVolumePath"="SVM4:/vol/myVol2_new"}
Initiating storage tech refresh..
Name: Tech refresh of storage in host 'host.mva.gdl.netapp.com'
Id  : 984
StartTime   : 10/26/2023 5:02:14 AM
EndTime : 10/26/2023 5:02:14 AM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Running
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 52
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  : NONE
HostId  : 0
RoleId  :
JobIds  : {}
ScsJobId:
Invoke-SmTechRefreshPrimaryStorage Completed

This example does a Tech refresh of storage in the host.