Skip to main content
SnapCenter 4.8 cmdlets

Set-SmRepositoryConfig

Contributors

Enables you to rebuild the slave repository from the master repository and enables you to fail over the repository to the specified node.

Syntax

Set-SmRepositoryConfig [-ServerToRebuild]  <String>  [-Force]  <>  [-RebuildSlave]  <>  [-Force]  <>  [-ActiveMaster]  <String>  [-Force]  <>  [-Credential]  <PSCredential>  [-SMSbaseUrl]  <String>

Detailed Description

Enables you to rebuild the slave repository from the master repository and enables you to fail over the repository to the specified node.

Parameters

Name Description Required? Pipeline Input Default Value

ServerToRebuild

Specifies the slave node for which you want to rebuild its repository from the master repository.

true

true (ByPropertyName)

Force

Specifies that you want to force failover even when the slave repository data is not in sync with the master repository data.NOTE: Forcing failover might result in data loss.

false

true (ByPropertyName)

RebuildSlave

Specifies that SnapCenter automatically identifies the slave node for which to rebuild the repository from the master repository.

true

true (ByPropertyName)

ActiveMaster

Specifies the slave node that should become the master node.

true

true (ByPropertyName)

Credential

Enables you to provide domain user credentials required to perform failover operations.

false

true (ByPropertyName)

SMSbaseUrl

Specifies the SnapCenter Server base URL. The base URL includes the name or IP address of the SnapCenter Server, and, if the remote system is in a different domain than the SnapCenter Server, the domain name. For example: https://SNAPCENTER_SERVER_NAME/DOMAIN_NAME.

false

true (ByPropertyName)

Examples

Example 1: Failover SnapCenter repository to the specified database server

 Set-SmRepositoryConfig -ActiveMaster 10.236.221.0 -Credential mva\administrator

This example syntax fails over the SnapCenter repository to the specified database server.

Set-SmRepositoryConfig
Are you sure want to failover SnapCenter repository to '10.236.221.0'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Name: SnapCenter Repository Failover to host '10.236.221.0'
Id  : 25
StartTime   : 4/28/2017 8:20:35 AM
EndTime : 4/28/2017 8:20:35 AM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Completed
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 35
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  :

Example 2: Rebuilding a specified slave repository

 Set-SmRepositoryConfig -ServerToRebuild 10.236.221.34

This example syntax rebuilds the specified slave repository.

Set-SmRepositoryConfig
Are you sure want to rebuild SnapCenter repository on host '10.236.221.34'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
Name: SnapCenter Repository Rebuild on host '10.236.221.34' for High Availability
Id  : 17
StartTime   : 4/28/2017 8:15:12 AM
EndTime :
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 0
Description :
Status  : Queued
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 35
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  :

Example 3: Rebuilding the current slave repository

 Set-SmRepositoryConfig -RebuildSlave

This example syntax rebuilds the current slave repository.

Set-SmRepositoryConfig
Are you sure want to rebuild SnapCenter passive repository?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Name: SnapCenter Repository Rebuild on host '10.236.221.34' for High Availability
Id  : 11
StartTime   : 4/28/2017 8:12:25 AM
EndTime :
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 0
Description :
Status  : Queued
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 35
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  :

Example 4: Failing over the SnapCenter repository to the specified database server from a remote host to SnapCenter using a base URL

 Set-SmRepositoryConfig -ActiveMaster 10.236.221.34 -Credential mva\administrator -SMSbaseUrl https://10.236.221.75:8146/

This example syntax fails over the SnapCenter repository to the specified database server from a remote host to SnapCenter using a base URL.

Set-SmRepositoryConfig
Are you sure want to failover SnapCenter repository to '10.236.221.34'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Name: SnapCenter Repository Failover to host '10.236.221.34'
Id  : 20
StartTime   : 4/28/2017 8:17:47 AM
EndTime : 4/28/2017 8:17:47 AM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Completed
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 35
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  :

Example 5: Forcing SnapCenter repository failover with possibility of data loss

 Set-SmRepositoryConfig -ActiveMaster 10.236.221.34 -Credential mva\administrator -SMSbaseUrl https://10.236.221.75:8146/ -Force

This example syntax forces a SnapCenter repository failover even though data loss might occur.

Set-SmRepositoryConfig
There could be a possible data loss after SnapCenter repository failover to '10.236.221.34'
Do you still want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Name: SnapCenter Repository Failover to host '10.236.221.34'
Id  : 32
StartTime   : 4/28/2017 8:24:48 AM
EndTime : 4/28/2017 8:24:48 AM
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status  : Completed
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 35
ApisJobKey  :
ObjectId: 0
PluginCode  : NONE
PluginName  :