복원이 실패하고 에러를 postRestoreViaConfigHookRule 표시합니다 Data Virtualization

복원이 Data Virtualization 실패하는 이유는 사용자 정의 저장소( ConfigMaps )가 백업에 포함되지 않았거나 복원되지 않았기 때문입니다.

증상

복원 중에 cpd-cli 로그에 다음 오류가 표시됩니다:
status: partially_succeeded
   liteproject/configmap/ibm-cs-postgres-ckpt-cm: component=cpfs-postgres-ckpt, op=<mode=post-restore,type=config-hook,method=rule>, status=succeeded
   cpd-operator/configmap/ibm-cpfs-operator-ckpt-cm: component=cpfs, op=<mode=post-restore,type=config-hook,method=rule>, status=succeeded
   liteproject/configmap/cpd-zen-aux-v2-ckpt-cm: component=zen-lite-v2-ckpt, op=<mode=post-restore,type=config-hook,method=rule>, status=succeeded
   liteproject/configmap/cpd-bigsql-aux-ckpt-cm: component=bigsql, op=<mode=post-restore,type=config-hook,method=rule>, status=error
         error=error performing op postRestoreViaConfigHookRule for resource bigsql (configmap=cpd-bigsql-aux-ckpt-cm): 2 errors occurred:
   * timed out waiting for the condition
   * timed out waiting for the condition
조건부 : cpd-cli 로그에 다음 문구가 표시되는 경우timed out waiting for the condition그런 다음 다음 단계를 완료하십시오:
  1. 헤드 Data Virtualization 포드 상태 확인:
    oc describe po c-db2u-dv-db2u-0
  2. 다음 오류가 표시되면, ` ConfigMap ` 볼륨 db2u-entrypoint-sh 마운트에 실패하여 포드가 시작되지 못했습니다.
    Warning  FailedMount  12s (x10 over 4m22s)  kubelet            MountVolume.SetUp failed for volume "db2u-entrypoint-sh" : configmap "db2u-entrypoint-sh" not found

원인

사용자 지정 ConfigMaps 은 필수 태그를 포함하지 않으므로 백업 및 복원 프로세스에 포함되지 않습니다.

문제점 해결

사용자 지정 ConfigMap 를 복원 과정에 포함시키려면 수동으로 다음 includeIn: backup 레이블을 추가하십시오:
  • <ConfigMap_name> 를 ConfigMap, 의 이름으로, <DV_namespace>Data Virtualization 설치된 네임스페이스로 각각 대체하십시오.
oc patch configmap <ConfigMap_name> -n <DV_namespace> -p '{"metadata":{"labels":{"includeIn":"backup"}}}'