A resource (container or virtual machine) is marked as broken in
~# shaman stat | grep Broken 50 running Broken Unknown 0
The resource is now running fine on one of the nodes in the cluster.
Shaman resource experienced relocation failure in the past and had been marked as broken.
NOTE: If there are issues with the resource still and it is not functioning correctly, resolve all the issues first.
Suspend the container:
~# vzctl suspend 50
~# vzctl unregister 50
Delete the related resource file from the shaman directory with broken resources:
~# rm -f /pstorage/cluster_name/.shaman/broken/ct-50
Register the container back:
~# vzctl register /vz/private/50 50
~# vzctl resume 50
For virtual machines:
Suspend the affected VM:
~# prlctl suspend MyVM
Unregister the VM:
~# prlctl unregister MyVM
Delete the related resource file from shaman directory with broken resources:
~# rm -f /pstorage/cluster_name/.shaman/broken/vm-MyVM
Register the virtual machine back:
~# prlctl register /pstorage/cluster_name/vmprivate/MyVM.pvm/config.pvs --preserve-uuid
~# prlctl resume MyVM