Skip to content

Commit d4ca7c9

Browse files
committed
Remove New-RemountRemoteVsanDatastore
1 parent c121e86 commit d4ca7c9

2 files changed

Lines changed: 1 addition & 52 deletions

File tree

VMware.CloudFoundation.InstanceRecovery.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = '.\VMware.CloudFoundation.InstanceRecovery.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.0.13.1000'
14+
ModuleVersion = '1.0.13.1001'
1515

1616
# Supported PSEditions
1717
# CompatiblePSEditions = @()

VMware.CloudFoundation.InstanceRecovery.psm1

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3811,57 +3811,6 @@ Function New-RebuiltVsanDatastore {
38113811
}
38123812
Export-ModuleMember -Function New-RebuiltVsanDatastore
38133813

3814-
Function New-RemountRemoteVsanDatastore {
3815-
<#
3816-
.SYNOPSIS
3817-
Remounts the previously mounted remote vSAN datastore on a recovered cluster.
3818-
3819-
.DESCRIPTION
3820-
The New-RemountRemoteVsanDatastore cmdlet remounts the previously mounted remote vSAN datastore on a recovered cluster. Should only be done when the remote vSAN cluster has already been recovered.
3821-
3822-
.EXAMPLE
3823-
New-RemountRemoteVsanDatastore -vCenterFQDN "sfo-m01-vc01.sfo.rainpole.io" -vCenterAdmin "administrator@vsphere.local" -vCenterAdminPassword "VMw@re1!" -clusterName "sfo-m01-cl01" -extractedSDDCDataFile ".\extracted-sddc-data.json"
3824-
3825-
.PARAMETER vCenterFQDN
3826-
FQDN of the vCenter instance hosting both the cluster hosting the vSAN Datastore and compute cluster where the vSAN Datastore will be remounted
3827-
3828-
.PARAMETER vCenterAdmin
3829-
Admin user of the vCenter instance hosting both the cluster hosting the vSAN Datastore and compute cluster where the vSAN Datastore will be remounted
3830-
3831-
.PARAMETER vCenterAdminPassword
3832-
Admin password for the vCenter instance hosting both the cluster hosting the vSAN Datastore and compute cluster where the vSAN Datastore will be remounted
3833-
3834-
.PARAMETER clusterName
3835-
Name of the vSphere cluster instance where the vSAN Datastore will be remounted
3836-
3837-
.PARAMETER extractedSDDCDataFile
3838-
Relative or absolute to the extracted-sddc-data.json file (previously created by New-ExtractDataFromSDDCBackup) somewhere on the local filesystem
3839-
#>
3840-
3841-
Param(
3842-
[Parameter (Mandatory = $true)][String] $vCenterFQDN,
3843-
[Parameter (Mandatory = $true)][String] $vCenterAdmin,
3844-
[Parameter (Mandatory = $true)][String] $vCenterAdminPassword,
3845-
[Parameter (Mandatory = $true)][String] $clusterName,
3846-
[Parameter (Mandatory = $true)][String] $extractedSDDCDataFile
3847-
)
3848-
$jumpboxName = hostname
3849-
LogMessage -type NOTE -message "[$jumpboxName] Starting Task $($MyInvocation.MyCommand)"
3850-
LogMessage -type INFO -message "[$jumpboxName] Reading Extracted Data"
3851-
$extractedDataFilePath = (Resolve-Path -Path $extractedSDDCDataFile).path
3852-
$extractedSddcData = Get-Content $extractedDataFilePath | ConvertFrom-JSON
3853-
$datastoreName = ($extractedSddcData.workloadDomains.vsphereClusterDetails | Where-Object { $_.name -eq $clusterName }).primaryDatastoreName
3854-
3855-
LogMessage -type INFO -message "[$jumpboxName] Connecting to Restored vCenter: $vCenterFQDN"
3856-
$restoredvCenterConnection = Connect-ViServer $vCenterFQDN -user $vCenterAdmin -password $vCenterAdminPassword
3857-
3858-
LogMessage -type INFO -message "[$clusterName] Getting Existing vSAN configuration"
3859-
$config = Get-VsanClusterConfiguration -Cluster $clusterName
3860-
LogMessage -type INFO -message "[$clusterName] Remounting $datastoreName"
3861-
Set-VsanClusterConfiguration -Configuration $config -MountRemoteDatastore (Get-Datastore -Name $datastoreName)
3862-
}
3863-
Export-ModuleMember -Function New-RemountRemoteVsanDatastore
3864-
38653814
Function New-RebuiltVdsConfiguration {
38663815
<#
38673816
.SYNOPSIS

0 commit comments

Comments
 (0)