Posted On July 1, 2019

Veeam: Hyper-V ConfigStoreRootPath Errors

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Veeam: Hyper-V ConfigStoreRootPath Errors
Error Message
---------------------------
Veeam Backup and Replication
---------------------------
ConfigStoreRootPath cluster parameter is not defined. We will not be able to process VMs with shared disks until you set this parameter using Set-ClusterParameter PowerShell cmdlet.
---------------------------
OK
---------------------------
Resolution
Execute these functions on a Node of the Target Cluster
# Install Microsoft Clustering Management
Function installClusteringManagment{
# Set PowerShell Gallery as Trusted to bypass prompts
$trustPSGallery=(Get-psrepository -Name 'PSGallery').InstallationPolicy
If($trustPSGallery -ne 'Trusted'){
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
}
# Adding Microsoft Cluster
if (!(get-module -Name "FailoverClusters") ){
# Install-WindowsFeature Failover-Clustering | out-null;
Install-WindowsFeature RSAT-Clustering-MGMT | out-null;
Install-WindowsFeature RSAT-Clustering-PowerShell | out-null;
# Import-Module FailoverClusters | out-null;
}
}

# Set ConfigStoreRootPath if it doesn't already exist
function setConfigStoreRootPath{
$configStoreRootPath=(Get-ClusterResource "Virtual Machine Cluster WMI" | Get-ClusterParameter ConfigStoreRootPath).Value
if (!($configStoreRootPath)){
$path = "C:\ClusterStorage\Volume1\Hyper-V\Shared"
mkdir $path
Get-ClusterResource "Virtual Machine Cluster WMI" | Set-ClusterParameter -Name ConfigStoreRootPath -Value $path
}
"ConfigStoreRootPath is currently set as $configStoreRootPath."
}

installClusteringManagment;
setConfigStoreRootPath;

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Automating Microsoft Failover Cluster Maintenance – FileServer, SQL AlwaysOn, Hyper-V Guest VMs, Disks Operations

##################################################################################################### # MsClusterMaintenance_v0.0.2.ps1 # Author: KimConnect.com # License: GPLv3 # Description: this program automates the…

Excel Comma Delimited CSV with Quotes

Option ExplicitSub MakeFile()Dim rng As RangeDim NumR As LongDim NumC As LongDim CountR As LongDim…

Manual Sync for Office 365 Azure-AD Integration

1. Perform Prerequisites:* a. Install Dot Net Framework 4.5 )* b. Install Windows Management Framework…