Avamar: mcserver.xml 파일이 손실된 후 MCS가 시작되지 않음

Summary: MCS(Management Console Server)는 롤백의 일부로 mcserver.xml 파일이 손실된 후 나타납니다.

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 Server)가 복원되고 있었습니다.

프로세스의 표준 부분으로, /usr/local/avamar/var/mc/server_data 디렉토리가 제거되었습니다.

avtar가 기본 SSL 암호화를 사용하기 때문에 MCS 복원이 실패하여 mcserver.xml 파일이 제거되었습니다(결과적으로 MCS가 시작되지 않음).

gsan 로그의 롤백 증거:

mapall --noerror 'grep -hi "rolled back" /data01/cur/gsan.log*' | sort | tail -1
2019/05/17-11:41:14.65109 {P0.0} [gsan]  <1287> gsan::run gsan rolled back to cp.xxxxxxxxxxxx 
 

dpnctl.log 출력:

less dpnctl.log
2019/05/17-11:47:48 --restore will modify your Administrator Server database and preferences.
2019/05/17-11:47:48 Do you want to proceed with the restore Y/N? [Y]: sed: can't read /usr/local/avamar/var/mc/
server_data/prefs/mcserver.xml: No such file or directory
2019/05/17-11:47:48 sed: can't read /usr/local/avamar/var/mc/server_data/prefs/mcserver.xml: No such file or directory
2019/05/17-11:47:48 Decrypting all registered passwords...
2019/05/17-11:47:48 see MCCipher log for details: /usr/local/avamar/var/mc/server_log/mccipher.log.0
2019/05/17-11:47:48 Database server stopped.
2019/05/17-11:47:48 removing data dir /usr/local/avamar/var/mc/server_data
2019/05/17-11:47:48 INFO: /usr/local/avamar/var/mc already exists
2019/05/17-11:47:48 INFO: creating /usr/local/avamar/var/mc/server_data/postgres/data with permissions 0755
.
2019/05/17-11:47:48 Please wait....
2019/05/17-11:47:48 avtar Error <18838>: SSL certificate/key not found or invalid key. '/usr/local/avamar/etc/x.x.x.x/cert.pem' '/usr/local/avamar/etc/x.x.x.x/key.pem'
.
.
2019/05/17-11:47:48 rm -f /tmp/dpnctl-mcs-restore-status-6696 /tmp/dpnctl-mcs-restore-output-6696
2019/05/17-11:47:48 dpnctl: ERROR: MCS restore did not succeed, so not restarting MCS
 

avtar를 사용하여 MC_BACKUPS 수동으로 나열하면 오류가 발생합니다.

avtar --backups --path=/MC_BACKUPS |more 
avtar Info <5552>: Connecting to Avamar Server (xxxx)
avtar Info <5554>: Connecting to one node in each datacenter
avtar Error <18838>: SSL certificate/key not found or invalid key. '/usr/local/avamar/etc/x.x.x.x/cert.pem' '/usr/local/avamar/etc/x.x.x.x/key.pem'
avtar Info <5557>: No connections available
avtar FATAL <8604>: Fatal server connection problem, aborting initialization. Verify correct server address and login credentials.
avtar FATAL <5308>: Failed to initiate session with server
avtar Info <6149>: Error summary: 8 errors: 5308, 8604, 18838(6)
avtar Info <5314>: Command failed (8 errors, exit code 10008: cannot establish connection with server (possible network or DNS failure))

Cause

SSL 인증서와 키가 일치하지 않으므로 기본 SSL 암호화를 사용하여 MCS를 복원하지 못합니다.

Resolution

해결 방법:

1. Avamar Utility Node에 관리자로 로그인합니다.

2. /home/admin 디렉토리로 이동합니다.

cd /home/admin 
 

3. 새 임시 디렉토리를 생성합니다.

mkdir mc_restore
 

4. 새로 생성된 디렉토리로 변경합니다.

cd /home/admin/mc_restore
 

5. "를 추가하는 MC_BACKUPS 나열합니다.--encrypt=proprietary" 플래그를 사용하여 일반 텍스트 암호화를 사용합니다. (암호화가 전혀 없음) :

avtar --archives --path=/MC_BACKUPS --count=1 --encrypt=proprietary
avtar Info <19849>: Selecting 1 backups
avtar Info <7377>: Backups for /MC_BACKUPS as of 2019-05-23 11:39:43 BST
    Date      Time    Seq       Label           Size     Plugin    Working directory         Targets
 ---------- -------- ----- ----------------- ---------- -------- --------------------- -------------------
 2019-05-15 08:45:32 10196                      526254K Linux    /usr/local/avamar     var/mc/server_data
avtar Info <5314>: Command completed (exit code 0: success)
 

6. 복원 /usr/local/avamar/var/mc/server_data 복원 절차 Avamar의 3단계에서 after를 사용하는 디렉토리: MCS 플러시가 실패하거나 mcserver.xml 파일 문제로 인해 MCS가 시작되지 않는 경우:

예:

avtar -x --path=/MC_BACKUPS --labelnum=10196 --target=.
avtar Info <5259>: Restoring backup to directory "."
avtar Info <5262>: Restore completed
avtar Info <7925>: Restored 510.0 MB from selection(s) with 513.9 MB in 35 files, 17 directories
avtar Info <6090>: Restored 510.0 MB in 1.06 minutes: 28.26 GB/hour (1,986 files/hour)

디렉토리가 복원됩니다. /home/admin/mc_restore/var/mc/server_data/명령을 수행할 수 있는 충분한 공간이 있어야 합니다.

7. 의 내용을 복사합니다. /home/admin/mc_restore/var/mc/server_data/ 텅 빈 곳으로 /usr/local/avamar/var/mc/server_data 디렉토리 아래에 있는 것을 확인할 수 있습니다.

8. 복원된 레이블 번호를 사용하여 MCS를 복원합니다.

mcserver.sh --restore --labelnum=10196
 

9. MCS 시작:

 mcserver.sh --start 
 

샘플 출력:

Starting Administrator Server at: Thu May 23 12:09:15 BST 2019
Starting Administrator Server...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Administrator Server started.
 

10. 시작되면 MCS 플러시(일명 백업)를 수행합니다.

mcserver.sh --flush
=== BEGIN === check.mcs (preflush)
check.mcs                        passed
=== PASS === check.mcs PASSED OVERALL (preflush)
Flushing Administrator Server...
Administrator Server flushed.
 
 

11. Avamar의 해결 섹션에 따라 SSL 인증서를 다시 생성합니다. Avtar가 Avamar의 GSAN 서비스에 연결할 수 없습니다. "Fatal server connection problem, aborting initialization":

12. MC_BACKUPS 나열하여 SSL 인증서 오류가 없는지 확인합니다.

avtar --archives --path=/MC_BACKUPS --count=10 
 

샘플 출력:

avtar Info <19849>: Selecting 1 backups
avtar Info <7377>: Backups for /MC_BACKUPS as of 2019-05-23 11:39:43 BST
    Date      Time    Seq       Label           Size     Plugin    Working directory         Targets
 ---------- -------- ----- ----------------- ---------- -------- --------------------- -------------------
 2019-05-15 08:00:05   419                          73K Linux    /usr/local/avamar     var/em/server_data
 2019-05-14 08:00:04   418                          73K Linux    /usr/local/avamar     var/em/server_data
 2019-05-13 08:00:04   417                          73K Linux    /usr/local/avamar     var/em/server_data
avtar Info <5314>: Command completed (exit code 0: success)

Additional Information

MC_BACKUPS를 나열할 때 일시적으로 SSL 오류를 극복하는 또 다른 옵션은 --encrypt=tls 기: 

avtar --backups --path=/MC_BACKUPS --encrypt=tls | head -30 

Affected Products

Avamar

Products

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