Dec
04

#POSH – Is the VSS Service Running for Application Consistent Snapshots? #Nutanix

In order to get application consistent snapshots to work the Volume Shadow Copy service needs to be running on the virtual machine. The following script checks all Nutanix VM’s that are trying to use application consistent snapshots for VSS. If your virtual machine can’t run VSS or you don’t need it like Linux, swap over to use Nutanix crash consistent snapshots.

Make sure you download the powershell cmdlets from the Prism UI.

Make sure you download the powershell cmdlets from the Prism UI first.

#Connect to the Nutanix cluster of your choice, try to use the external address.

Connect-NutanixCluster -AcceptInvalidSSLCerts -server External_cluster_ip -UserName admin
#load Nutanix CMDlets, make sure your local version matches the cluster version
Add-PSSnapin NutanixCmdletsPSSnapin

#Get a list of all Consistency Groups
$pdvss = Get-NTNXProtectionDomainConsistencyGroup

#array of all the appConsitentVMs
$appConsitentVM = @()

Foreach ($vssVM in $pdvss)
{
if ($vssVM.appConsistentSnapshots)
{
$appConsitentVM += $vssVM.consistencyGroupName
}
}

get-service -name VSS -computername $appConsitentVM | format-table -property MachineName, Status, Name, DisplayName -auto

Speak Your Mind

*