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

Kubernetes: Cert-Manager Certificate Request YAML Example

# Set variables certPrefix=kimconnect domainName=kimconnect.com domainName2=www.kimconnect.com serviceName=kimconnectblog-wordpress servicePort=8080 # Create a yaml file and create…

PowerShell Commands to Discover the Server Network, Netmask, DHCP status, and Gateway

$servername = "SERVER01"get-wmiobject win32_networkadapterconfiguration -computername $servername -ea stop | ? {$_.IPEnabled}# Result:DHCPEnabled      :…

PowerShell: Check VLAN of Windows Machine

Le Kommand: Get-NetAdapter|select Name,VlanID Sample Outputs PS C:\Windows\system32> Get-NetAdapter|select Name,VlanIDName VlanID---- ------Ethernet 1 0 PS…