fredzhang
VMware Employee
VMware Employee

repair the absent object Immediately

Hi experts,

Do we have the command line to repair the absent  object  Immediately?

Thanks.

0 Kudos
2 Replies
TheBobkin
VMware Employee
VMware Employee

Hello Fred,

There is no supported method from host CLI, only via RVC:

https://www.virten.net/2017/07/vsan-6-6-rvc-guide-part-4-cluster-health/#vsan-health-cluster_repair_...

One could set the CLOM repair delay to 0 temporarily via host CLI bit this would need to be applied to all hosts in the cluster.

Bob

0 Kudos
Jasemccarty
Immortal
Immortal

fredzhang​ you can do this with PowerCLI 11 if you do not wish to use the RVC:

# Get the vSAN Cluster

$Cluster = Get-Cluster -Name "ClusterName"


# Load the vSAN vC Cluster Health System View

$VVCHS = Get-VsanView -Id "VsanVcClusterHealthSystem-vsan-cluster-health-system"


# Invoke the Fix for all objects

$RepairTask = $VVCHS.VsanHealthRepairClusterObjectsImmediate($Cluster.ExtensionData.MoRef,$null)

Jase McCarty - Field SA at PureStorage - @jasemccarty