NetWorker: come ripristinare il database di NetWorker Management Console

Riepilogo: È possibile utilizzare il comando recoverpsm di NetWorker per ripristinare il database NMC (NetWorker Management Console) in un backup del database nmcdb.

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

Se è stato identificato un danneggiamento del database NMC, è possibile utilizzare il comando NetWorker recoverpsm per ripristinare il database NMC a un backup di nmcdb. Per impostazione predefinita, dovrebbe essere presente un flusso di lavoro di backup del server NMC all'interno della policy Server Protection predefinita. Assicurarsi che questa operazione sia pianificata e configurata correttamente per completare i backup del database NMC.

Per ulteriori informazioni sulla protezione del server NMC, consultare la Guida all'amministrazione di NetWorker e la Guida di riferimento ai comandi di NetWorker per entrambi savepsm e recoverpsm Opzioni. Questi documenti sono disponibili nella pagina del prodotto Dell NetWorker.

 

  1. Assicurarsi che sia presente un backup del database NMC utilizzando il comando mminfo :
Sintassi: mminfo -avot -q client=nmc_server_name
Esempio:
[root@linux1 ~]# mminfo -avot -q client=linux1.amer.lan | 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

NOTA: Se non si dispone di backup di nmcdb_stage saveset, non è possibile ripristinare NMC e l'unica opzione è reinstallarlo come nuova istanza.

 

  1. Sul server NMC, aprire un prompt dei comandi root amministrativo per arrestare NMC GSTD Servizio (se in esecuzione):

Windows: net stop gstd
Linux: systemctl stop gst


Utilizzare tasklist/Task Manager oppure PS comandi per garantire che il GSTD Il servizio è stato arrestato.

 

  1. Utilizzare il comando CD per passare alla directory bin di installazione di NMC. Verificare che il recoverpsm è elencato in questa directory. Questo comando viene utilizzato per ripristinare il database NMC.

Windows: [NMC Installation Dir\Management\GST\bin
Linux: /opt/lgtonmc/bin
 

  1. Eseguire recoverpsm sul server NMC:
Sintassi:
recoverpsm [-s server] [-c client-name] [-d destination] [-p pass-phrase] [-t time] [-hfO] Staging_Directory


Opzioni:

-c client-name

Specifica il nome del server
NMC di origine Per ulteriori informazioni, vedere Recover.

-d destination

Specifica la directory a cui recoverpsm ripristina il database NMC. Quando si utilizza questa opzione, è necessario copiare manualmente i file del database dalla directory di destinazione alla directory del database definita per il server NMC. Assicurarsi di mantenere la stessa proprietà e le stesse autorizzazioni per i file del database e i file delle credenziali al termine della copia.

 -f

Utilizzare questa opzione per eliminare i file di database correnti presenti nella directory del database prima di avviare l'operazione di ripristino.

 -h

Visualizzare le informazioni sull'utilizzo di recoverpsm .

 -O

Utilizzare questa opzione per omettere il ripristino del file delle credenziali del database. Utilizzare questa opzione solo nel raro caso in cui il file delle credenziali sia ancora presente e non si desideri utilizzare il file delle credenziali dal ripristino.

 -p pass-phrase

Utilizzare questa opzione per specificare una passphrase aggiuntiva quando si tenta di ripristinare i file di database crittografati AES. Vedere Ripristino (1 m) per ulteriori dettagli.

 -s server

Specifica il nome del server NetWorker che ha eseguito il backup del database NMC

 -t time

Utilizzare questa opzione per ripristinare il database a partire da una data specificata in nsrgetdate formato.

Staging_Directory

Specifica la directory di staging utilizzata dall'operazione
di backup Per un backup automatico, specificare il nome del saveset.

 

Esempio:

[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

 

  1. Sul server NMC, aprire un prompt dei comandi root amministrativo per arrestare NMC GSTD servizio:
Windows: net start gstd
Linux: systemctl start gst

Utilizzare tasklist/Task Manager oppure PS comandi per garantire che il GSTD Il servizio è stato avviato.
 
  1. Assicurarsi di potersi connettere a NMC.

 

  1. Monitorare il gstd.raw per rilevare eventuali errori durante l'avvio del servizio NMC:
Linux: /opt/lgtonmc/logs/gstd.raw
Windows: [Install Drive]:\Program Files\EMC NetWorker\Management\GST\logs\gstd.raw

Informazioni aggiuntive

I file .. del server NMC \Management\GSTD\logs\gstd.raw o /opt/lgtonmc/logs/gstd.raw possono essere utilizzati per confermare se NMCDB è danneggiato:

Esempio:

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

Prodotti interessati

NetWorker

Prodotti

NetWorker
Proprietà dell'articolo
Numero articolo: 000019968
Tipo di articolo: How To
Ultima modifica: 01 nov 2024
Versione:  5
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.