Scripts

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell command to perform PD failover

Trailblazer

Powershell command to perform PD failover

I'm looking to script the failover of multiple PD from one site to another. However, when I run the following command, I get an error indicating that "Specified remote site [RemoteSiteName] does not exist".

 

Here is the command I attempt;

Migrate-ntnxprotectiondomain -name [PD_name] -FailoverSite [RemoteSiteName]

 

 

This is for a cluster running AOS 4.7.3

4 REPLIES
Highlighted
Trailblazer

Re: Powershell command to perform PD failover

Disregard.

 

I found the "Promote-NTNXProtectionDomainStretchCluster" cmdlet instead which meets my needs.

Trailblazer

Re: Powershell command to perform PD failover

Ok, now I'm stuck again- when I attempt to failback my Metro PD, I run...

 

"Start-NTNXProtectionDomainStretchCluster -PdName [NameOfPD] -ReEnable"

 

...and it returns the following message;

 

FullyQualifiedErrorId : {"message":"VStore name is required enabling Metro Availability"}

Nutanix Employee

Re: Powershell command to perform PD failover

@mandg So you promoted the secondary site of a Metro Cluster, and now you're wanting to fail back to the original primary site?

Nutanix Employee

Re: Powershell command to perform PD failover

Hi mandg,

 

Do you receive any alert while trying to "re-enable" the metro PD from Prism? If yes, please share the error

 

Please use the below command and let me know if u receive any errors.

 

Start-NTNXProtectionDomainStretchCluster -PdName "Metro_PD_Name" -ReEnable $true

 

Regards,

Sandeep MP