Avamar: 백업 그룹을 생성하거나 편집할 때 AUI(Avamar User Interface) 및 Avamar Administrator 콘솔의 응답이 잘못됨

Summary: 이 문서에서는 retention_policies 테이블의 열 값과 관련된 MCDB(Avamar Management Console Database) 문제를 다룹니다.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

백업 그룹을 생성하거나 편집하려고 하면 응답이 없습니다.
MCS(Management Console Service) 로그에는 아무 것도 참조되지 않고 rest api 로그에서 참조됩니다.

아래는 Avamar REST API 로그를 보여줍니다.
/usr/local/avamar/var/mc/server_log/mc-rest-api.log

java.lang.IllegalArgumentException: No enum constant com.avamar.mc.api.replication.dto.DurationUnits.HOURS
  at java.lang.Enum.valueOf(Unknown Source)
  at com.avamar.mc.api.replication.dto.DurationUnits.valueOf(DurationUnits.java:3)
  at com.avamar.mc.api.retention.service.RetentionServiceImpl.convertRetentionPolicyDescriptor(RetentionServiceImpl.java:194)
  at com.avamar.mc.api.retention.service.RetentionServiceImpl.getRetentions(RetentionServiceImpl.java:65)
  at com.avamar.mc.api.retention.web.RetentionController.getRetentions(RetentionController.java:48)
  at com.avamar.mc.api.retention.web.RetentionController$$FastClassBySpringCGLIB$$5ac7ec93.invoke(<generated>)
  at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
  at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
  at com.avamar.mc.api.retention.web.RetentionController$$EnhancerBySpringCGLIB$$ebae7189.getRetentions(<generated>)
  at sun.reflect.GeneratedMethodAccessor4160.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)

오류에주의하십시오.
java.lang.IllegalArgumentException: No enum constant com.avamar.mc.api.replication.dto.DurationUnits.HOURS

Cause

MCDB는 retention_policies 테이블의 단위 열에 값 0을 기록했습니다. 

이 열의 값이 0이면 보존 기간이 시간 단위로 측정되었음을 나타냅니다. 그러나 보존 기간 단위는 일[1], 주[2], 월[3] 및 연도[4]의 네 가지 값으로 정의됩니다.

Java에는 시간 단위로 설정된 상수 값이 없으므로 enum.valueOf() 메서드를 실행할 때 유효한 상수 값이 아닙니다.

DurationUnits.HOURS를 볼 수 있으며, 여기서 hours 열거형 상수가 없다는 오류가 발생합니다.

예:
잘못된 항목이 있는 MCDB
admin@avamar:~/>: psql -p 5555 mcdb
psql (10.6)
Type "help" for help.

mcdb=# select id,name,duration,unit from retention_policies;
        id        |             name             | duration | unit
------------------+------------------------------+----------+------
 MONTHLY:PolicyID | Monthly Retention            |        1 |    3
 WEEKLY:PolicyID  | Weekly Retention             |        1 |    2
 Default:POLICYID | Default Retention            |       60 |    1
 EndUser:PolicyID | End User On Demand Retention |       60 |    1
 Minimal:PolicyID | Minimal Retention            |       60 |    1
 RP1652848159766  | Platinum                     |       60 |    0 <-- These 0s
 RP1652848162931  | Gold                         |       60 |    0 <-- These 0s
 RP1652848166086  | Silver                       |       60 |    0 <-- These 0s
 RP1652848169312  | Bronze                       |       60 |    0 <-- These 0s
(9 rows)

Resolution

1 단계 :
MCS를 백업합니다.
mcserver.sh --flush


2 단계 :
MCS를 중지합니다.
mcserver.sh --stop --force


3 단계 :
MCDB를 수동으로 불러옵니다.
dbmaint.sh  --db=on --dbname=mcdb


4 단계 :
보존 정책 단위의 값을 0에서 1로 업데이트합니다.
psql -d mcdb -p 5555 -c "update retention_policies set unit=1 where unit=0"


5 단계 :
MCS를 시작합니다.
mcserver.sh --start


6 단계 :
이제 AUI 또는 Avamar Administrator에서 백업 정책을 추가 또는 편집하고 백업 스케줄러를 시작할 수 있는지 확인합니다.

Additional Information

이 비디오 보기:

YouTube에서도 이 비디오를 볼 수 있습니다 .

Affected Products

Avamar
Article Properties
Article Number: 000200096
Article Type: Solution
Last Modified: 03 Feb 2025
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.