Detected existing metadata in cluster <Cluster_MOID>. Run recovery workflow to ensure metadata is in sync.This issue occurs when redeployed VLR appliance/s fail to sync with vSAN Cluster metadata for previously created Protection Groups.
To resolve the issue,follow steps as below:
esxcli storage filesystem listfind /vmfs/volumes/vsan:################-################/ -iname "snapstore.db" 2>/dev/nullSSH to VLR appliance and copy above stated cluster DB to the location:/opt/vmware/db/snapservice/recovery/scp 'root@<esx>:/vmfs/volumes/vsan:################-################/########-####-####-####-############/snapstore.db' /opt/vmware/db/snapservice/recovery/snapstore.db
Note: Create this path if it does not exist : mkdir -p /opt/vmware/db/snapservice/recovery/
/opt/vmware/snapservice/data/recovery/chmod -R 777 /opt/vmware/db/snapservice/recovery/cd /opt/vmware/snapservice/api_scriptspython recovery.py -c 'domain-##' --vcUser '[email protected]' -f /opt/vmware/db/snapservice/recovery/snapstore.db
(-c is cluster MoID of cluster for which the Protection Group creation fails. This is the same MoID that is observed in the error message above. Select the cluster in vSphere Client and check URL to get Moid that is in format --> 'domain-c##'.)
Please enter the vCenter password:VC IP: <vcenter_ip_or_fqdn>:443Invoking recovery APIAPI response : <Response [202]>Waiting for task to complete{'cancelable': False, "description': {'args': [], 'default_message': 'Cluster DB recovery task', 'id': 'com.vnware.vsan.snapservice.RecoverDB'}, 'end_time': 'YYYY-MM-DDTHH:MM:SS.MSZ', "operation':'recover', 'progress': {'completed': 0, 'message': {'args': [], 'default_message': 'Cluster DB recovery task', 'id': 'com.vmware.vsan.snapservice.RecoverDB'}, 'total'; 180}, 'result': None, 'service': 'com.vmware.snapservice_internal.clusters', 'start_time': 'YYYY-MM-DDTHH:MM:SS.MSZ', 'status': 'SUCCEEDED", 'target': {'id': "domain-cXX', 'type': 'ClusterComputeResource'}, "user': '[email protected]'}