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: Obtaining SQL Database Default Paths

# This function returns an array of 3 string values reflecting default Data, Log, and…

PowerShell: Setting or Resetting User Password

$username='dragoncoin' $newPassword='SomeComplexPasswordHere' function resetPassword($username,$password){ if($env:userdnsdomain){ try{ Unlock-ADAccount -Identity $username Set-ADAccountPassword -Identity $username -Reset -NewPassword (ConvertTo-SecureString…

Basic JavaScript: Understanding Case Sensitivity in Variables

// Declarationsvar StUdLyCapVaR;var properCamelCase;var TitleCaseOver;// AssignmentsSTUDLYCAPVAR = 10;PRoperCAmelCAse = "A String";tITLEcASEoVER = 9000;