Restore a Promoted ActiveDR Pod with AVS

Everpure Cloud Dedicated for Azure

Audience
Public
Source Type
Documentation

Executing the Restore run command can be done via Cloud Manager OVA or any machine has PureStoragePowerShellSDK2 installed on it and can connect and authenticate to Everpure Cloud Dedicated.

Restore with -PodName flag

Running this command with the -PodName flag will enumerate over the list of volumes within a promoted pod and cause a volume or volumes to be mounted to AVS cluster.

Sample Command with minimum required arguments:


Restore-PCBSVmfsDatastore -ClusterName "myCluster" -PodName "avs-adr-pod-cbs" -AVSCloudName "myAVSCloudName" -AVSResourceGroup "myAVSResourceGroup"

Additional Optional Arguments:

 

-DatastoreName "ActiveDRvMFSName"

 

-PureCloudBlockStoreConnection $CBSConnection

If you have multiple Everpure Cloud Dedicated connections in your PowerShell session, you may pass this variable to select the Everpure Cloud Dedicated connection you want to use.

 

-AzureSubscriptionID "myAzureSubscriptionID"

If left out, this command will use the default/active Azure Subscription ID. If you wish to specify a specific Azure subscription, use this parameter.

Restore with -VolumeName flag

Running this command with the -VolumeName flag will cause a member volume of the promoted pod to be mounted to the AVS cluster.


Restore-PCBSVmfsDatastore -ClusterName "myCluster" -VolumeName "avs-adr-pod-cbs::AVS-ActiveDR-Test-AM" -AVSCloudName "myAVSCloudName" -AVSResourceGroup "myAVSResourceGroup"

Additional Optional Arguments:

 

-DatastoreName "ActiveDRvMFSName"

 

-PureCloudBlockStoreConnection $CBSConnection

If you have multiple Everpure Cloud Dedicated connections in your PowerShell session, you may pass this variable to select the Everpure Cloud Dedicated connection you want to use.

 

-AzureSubscriptionID "myAzureSubscriptionID"

If left out, this command will use the default/active Azure Subscription ID. If you wish to specify a specific Azure subscription, use this parameter.

Note:

Example output:


PS /home/azureuser/AVS-RunCommand> Restore-PCBSVmfsDatastore -ClusterName $cluster2 -VolumeName "CBS-avs-adr-pod::AVS-ActiveDR-Test-AM" -AVSCloudName $avsPrivateCloudName  -AVSResourceGroup $avsResourceGroupName
Creating datastore from volume...                                                                                       
Connecting volume CBS-avs-adr-pod::AVS-ActiveDR-Test-AM to host group Cluster-2...                                      
Rescanning HBA...                                                                                                       
Using Azure default subscription: xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx                                                  
Invoking RunCommand /subscriptions/xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx/resourceGroups/fa-soln-vmware-uswest2/providers/Microsoft.AVS/privateClouds/avs-cbs/scriptPackages/Microsoft.AVS.VMFS@1.0.77-dev/scriptCmdlets/Sync-VMHostStorage ...
Restoring VMFS Datastore  from volume CBS-avs-adr-pod::AVS-ActiveDR-Test-AM...                                          
Using Azure default subscription: xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx                                                
Invoking RunCommand /subscriptions/xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx/resourceGroups/fa-soln-vmware-uswest2/providers/Microsoft.AVS/privateClouds/avs-cbs/scriptPackages/Microsoft.AVS.VMFS@1.0.77-dev/scriptCmdlets/Restore-VmfsVolume ...
Datastore 'snap-68b3cfbe-AVS-ActiveDR-AM' is successfully restored    

Name                               FreeSpaceGB      CapacityGB
----                               -----------      ----------
snap-68b3cfbe-AVS-ActiveDR-AM          994.128       1,023.750                    

vCenter UI view: