Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

NetWorker: NMC 데이터베이스를 복구하는 방법

Summary: NetWorker recoverpsm 명령을 사용하여 NMC 데이터베이스를 nmcdb의 백업으로 복원할 수 있습니다.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

NMC 데이터베이스 손상을 식별한 경우 NetWorker recoverpsm 명령을 사용하여 NMC 데이터베이스를 nmcdb의 백업으로 복원할 수 있습니다. 기본적으로 기본 서버 보호 정책 내에 NMC 서버 백업 워크플로가 있어야 합니다. NMC 데이터베이스의 백업을 완료하기 위해 이 작업이 예약되고 올바르게 구성되었는지 확인합니다. NMC 서버 보호에 대한 자세한 내용은 NetWorker Administration Guide를 참조하고 savepsm recoverpsm 옵션에 대한 NetWorker Command Reference Guide를 참조하십시오. 이러한 문서는 다음에서 찾을 수 있습니다 https://www.dell.com/support/home/product-support/product/networker/docs

1) 먼저 mminfo 명령을 사용하여 NMC 데이터베이스의 백업이 있는지 확인합니다.
구문: mminfo -avot -q client=nmc_server_name 
예:
[root@linux1 ~]# mminfo -avot -q client=linux1.amer.lan -t "today" | grep nmcdb_stage
ClientBackupPool.001 Data Domain linux1.amer.lan 08/15/2022 02:00:17 PM 53 MB 687518690 cb full /nsr/nmc/nmcdb_stage


참고: 위의 세이브 세트가 없으면 NMC를 복구할 수 없으며 유일한 옵션은 NMC를 새 인스턴스로 다시 설치하는 것입니다.
 

2) NMC 서버에서 관리/루트 명령 프롬프트를 열고 NMC GSTD 서비스를 중지합니다(실행 중인 경우).

Windows: net stop gstd
Linux: systemctl stop gst

참고: tasklist/Task Manager 또는 ps 명령을 사용하여 gstd 서비스가 중지되었는지 확인합니다.
 

3) cd 명령을 사용하여 NMC의 설치 bin 디렉토리로 이동합니다. recoverpsm 명령이 이 디렉토리에 나열되어 있는지 확인합니다. 이 명령은 NMC 데이터베이스를 복구하는 데 사용됩니다.

Windows: [NMC 설치 Dir\Management\GST\bin
리눅스: /opt/lgtonmc/bin

4) NMC 서버에서 recoverpsm 명령을 실행합니다.

구문:
recoverpsm [-s server] [-c client-name] [-d destination] [-p pass-phrase] [-t time] [-hfO] Staging_Directory

옵션:

-c 클라이언트 이름

소스 NMC 서버의 이름을 지정합니다. 자세한 내용은 복구를 참조하십시오.

 D 목적지

Recoverpsm이 NMC 데이터베이스를 복구할 디렉토리를 지정합니다. 이 옵션을 사용할 경우 대상 디렉토리의 데이터베이스 파일을 NMC 서버에 대해 정의된 데이터베이스 디렉토리로 수동으로 복사해야 합니다. 복제본이 완료된 후 데이터베이스 파일과 자격 증명 파일에 대해 동일한 소유권과 사용 권한을 유지해야 합니다.

  f

복구 작업을 시작하기 전에 데이터베이스 디렉토리에 있는 현재 데이터베이스 파일을 삭제하려면 이 옵션을 사용합니다.

 h

recoverpsm 명령에 대한 사용량 정보를 표시합니다.

 O

데이터베이스 자격 증명 파일의 복구를 생략하려면 이 옵션을 사용합니다. 드물지만 자격 증명 파일이 여전히 존재하고 복구 시 자격 증명 파일을 사용하지 않으려는 경우에만 이 옵션을 사용합니다.

 p 암호

AES 암호화 데이터베이스 파일을 복구하려고 할 때 추가 암호를 지정하려면 이 옵션을 사용합니다. 자세한 내용은 recover(1m)를 참조하십시오.

 S 서버

NMC 데이터베이스 백업을 수행한 NetWorker Server의 이름을 지정합니다.

 t 시간

nsrgetdate 형식으로 지정된 날짜의 데이터베이스를 복구하려면 이 옵션을 사용합니다.

스테이징 디렉토리

백업 작업에 사용되는 스테이징 디렉토리를 지정합니다. 자동 백업의 경우 세이브 세트 이름을 지정합니다

 예: 

[root@linux1 bin]# ./recoverpsm -f -s linux1.amer.lan -c linux1.amer.lan -p Pa$$w0rd01 /nsr/nmc/nmcdb_stage
108157:recover: Restoring database files...
179040:recover: Step (1 of 11) for PID-6264: Recovery has been started on the client 'linux1.amer.lan'.
179733:recover: Step (2 of 11) for PID-6264: Checking if the set of exclusion files is given for the recovery of the selected files for the client 'linux1.amer.lan'.
179738:recover: Step (3 of 11) for PID-6264: Setting the server 'linux1.amer.lan' for the media database calls for the recovery of the selected files for the client 'linux1.amer.lan'.
179745:recover: Identified a file level recovery with PID 6264 to relocate to the new path '/nsr/nmc/nmcdb' for the client 'linux1.amer.lan'. Updating the total number of steps from 11 to 8.
179748:recover: Step (4 of 8) for PID-6264: Initializing a recovery job with the nsrjobd for the recovery of the selected file(s) for the client 'linux1.amer.lan'.
179749:recover: Step (5 of 8) for PID-6264: Validating and setting the relocation path '/nsr/nmc/nmcdb' for the recovery of selected file(s) for the client 'linux1.amer.lan'.
179754:recover: Step (6 of 8) for PID-6264: Initializing the file level recovery of the client 'linux1.amer.lan'.
179730:recover: Step (7 of 8) for PID-6264: Building the recovery tree of the client 'linux1.amer.lan'.
Recovering 1500 files within /nsr/nmc/nmcdb_stage/ into /nsr/nmc/nmcdb
Requesting 1500 file(s), this may take a while...
179728:recover: Initializing the recovery session with the NetWorker server 'linux1.amer.lan' to recover the selected files.
Recover start time: Mon 15 Aug 2022 02:20:37 PM PDT
179718:recover: Initializing to recover multiple streams of data from the NetWorker server 'linux1.amer.lan'.
Requesting 1 recover session(s) from server.
179714:recover: Initializing the child threads to recover the given recovery stream from the NetWorker server 'linux1.amer.lan'.
179713:recover: Initializing to set up a connection to start reading the data from the recover stream.
Enabling compressed restore for save set ID '687518690' with 'Data Domain' device path '/linux1/ClientBackupDevice01'.
Successfully established the direct file retrieval session for save set ID '687518690' with 'Data Domain' volume 'ClientBackupPool.001'.
./pgdata/backup_label
...
./pgdata/
179716:recover: Coordinating all the child recovery processes.
179717:recover: Releasing all the resources held by the recovery process.
179721:recover: All recovery streams from the NetWorker server 'linux1.amer.lan' are read successfully.
Received 1500 file(s) from NSR server `linux1.amer.lan'
Recover completion time: Mon 15 Aug 2022 02:20:39 PM PDT
179068:recover: Step (8 of 8) for PID-6264: The recovery completed successfully on the client 'linux1.amer.lan'.
108161:recover: Setting permissions for the restored database files

 

5) NMC 서버에서 관리/루트 명령 프롬프트를 열고 NMC GSTD 서비스를 중지합니다.
Windows: net start gstd
Linux: systemctl 시작 gst

참고: tasklist/Task Manager 또는 ps 명령을 사용하여 gstd 서비스가 시작되었는지 확인합니다.
 

6) NMC에 연결할 수 있는지 확인합니다.


recoverpsm을 사용하여 NMC를 복구하지 못하는 경우 Dell EMC 지원 부서에 문의하여 추가 지원을 받으십시오. 복구가 불가능한 경우 NMC를 새로 설치해야 합니다.

Additional Information

NMC 서버의 .. \Management\GSTD\logs\gstd.raw 또는 /opt/lgtonmc/logs/gstd.raw를 사용하여 NMCDB 손상이 있는지 확인할 수 있습니다. :

31581 1501512324 2 0 0 5632 6204 0 NMC-server gstd NSR warning 23 *** gstd starting at %s 1 36 24 Mon Jul 31 10:45:24 2017
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.3852 0 50 Internal error: could not create database process.
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.643852 0 50 Internal error: could not create database process.
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.643852 0 50 Internal error: could not release database handle.
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.675017 0 48 Internal error: could not stop database process.
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.675017 0 54 FATAL ERROR: could not stop 'EMC GST Database Service'
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.675017 0 48 Internal error: could not stop database process.
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.675017 0 48 Internal error: could not stop database process.
NMC-server gstd NSR notice 5 %s %s 2 0 24 MM/DD/YYY HH:MM:SS.675017 0 54 The most recently called subfunction returned error 2.
NMC-server gstd NSR warning 2 %s 1 0 27 library error 22 os error 0
NMC-server gstd NSR warning 23 *** gstd stopping at %s 1 36 24 MM/DD/YYY HH:MM:SS

 

Article Properties


Affected Product

NetWorker

Product

NetWorker

Last Published Date

15 Aug 2022

Version

3

Article Type

How To