cancel
Showing results for 
Search instead for 
Did you mean: 

Initiating restore job from Master server1 to Master server2 through command line

King25may
Level 4

Hi,

I'm trying to initiate the job from master server nmbackup1 using the below command 

bprestore -K -S nmbackup5 -C ln93sae -D ln93app1 -s 07/30/2015 -e 07/30/2015 -R /home/wpdcops/rajalegal/GeorgeGraham/nmjmh2/rename072015 /notes/ln9323/mail/nmjmh2.nsf

The restore job fails with the error code "(2800) Standard policy restore error". 

The above command works fine if I use this in nmbackup5 master server.

This command "bprestore -K -C ln93sae -D ln93app1 -s 07/30/2015 -e 07/30/2015 -R /home/wpdcops/rajalegal/GeorgeGraham/nmjmh2/rename072015 /notes/ln9323/mail/nmjmh2.nsf" works fine in nmbackup1 server.

nmbackup1 is AIX server with nbu 7.5 version

nmbackup5 is netbackup applicance 7.6 version.

The detailed is as below:

08/07/2015 10:57:32 - begin Restore
08/07/2015 10:57:32 - Info bprd (pid=24192) Found (446739) files in (34) images for Restore Job ID 225254.xxx
08/07/2015 10:57:32 - restoring from image ln93sae_1438298424
08/07/2015 10:57:32 - requesting resource @aaaag
08/07/2015 10:57:33 - Info bprd (pid=24192) Searched (     1) files of (446739) files for Restore Job ID 225254.xxx
08/07/2015 10:57:33 - Info bprd (pid=24192) Restoring from copy 1 of image created Thu Jul 30 18:20:24 2015 from policy 3_Notes_unix_mail
08/07/2015 10:57:33 - granted resource  MediaID=@aaaag;DiskVolume=PureDiskVolume;DiskPool=dp_disk_nmbpapp51;Path=PureDiskVolume;StorageServer=nmbpapp51;MediaServer=nmbpapp51
08/07/2015 10:57:34 - Info bpbrm (pid=28217) ln93app1 is the host to restore to
08/07/2015 10:57:34 - Info bpbrm (pid=28217) reading file list for client
08/07/2015 10:57:34 - Error bpbrm (pid=28217) bpcd on nmbackup1 exited with status 59: access to the client was not allowed
08/07/2015 10:57:34 - Error bpbrm (pid=28217) cannot put rename file on ln93app1
08/07/2015 10:57:34 - Info tar (pid=0) done. status: 59: access to the client was not allowed
08/07/2015 10:57:34 - Error bpbrm (pid=28217) client restore EXIT STATUS 59: access to the client was not allowed
08/07/2015 10:57:34 - restored from image ln93sae_1438298424; restore time: 0:00:02
08/07/2015 10:57:35 - Warning bprd (pid=24192) Restore must be resumed prior to first image expiration on Sat 31 Oct 2015 06:20:24 PM CDT
08/07/2015 10:57:35 - end Restore; elapsed time 0:00:03
Standard policy restore error  (2800)

 

Please help

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

Another thought - your usage of -R option seems incorrect.

-R is to specify a 'rename file'. This rename-file is a text file that specifies source and destination path.

Extract from Commands manual:

-R rename_file
Specifies the name of a file with name changes for alternate-path restores.
For example: bprestore -R /C/renamefile /C/origfile
Where /C/rename_file is the file with the name change and /C/origfile is
the file to be renamed. The pathname that you enter must be an absolute path.
Use the following form for entries in the rename file:
change backup_filepath to restore_filepath

(more in Commands manual....)

 

View solution in original post

11 REPLIES 11

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

You cannot restore files between NetBackup domains. The master, its media servers and all its clients are locked in one domain. The only inter domain operations that are possible is the replication of images via AIR.

King25may
Level 4

Thank you Riaan. Is there is any other way to start the restore from different master server?

Marianne
Level 6
Partner    VIP    Accredited Certified
It MAY work if you have SERVER entries for one another on both masters. Double-check forward and reverse name lookup between the servers and verify port 1556 connectivity in both directions.

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Explain why you want to do this, maybe there is another way.

sdo
Moderator
Moderator
Partner    VIP    Certified

You can restore across master servers, just add a 'server=sourcemaster' entry in teh bp.conf file of the target master server.

And be very careful.

And probably best to remove 'bp.conf' entry from teh target master server when you have finished.

And also consider 'version' of source and target - i.e. you probably don't want to attempt to restore from a lower version to a higher version of NetBackup.

It all seems a bit risky to me.  Very nasty things could happen as a result of a seemingly simple mistake.

Why not restore to a 'client' in the source domain, and then copy across via NFS?

King25may
Level 4

Hi,

Sorry for the delay.

I've cheked the server entries in both the servers. 

I've also checked the pot 1556 from both the servers.

Actually I've a script to restore a mentioned file from each month's backup. We need restore 12 versions of those file from each month. 

Before two months we have changed that server to different master server. So now we have restore August and July month version from this master server. And other versions such as June, may. april etc from old master.

To do this I need to run the script in both master servers. 

If I can restore using the above command ( mentioned in the query) I need not run the script in two master.servers. 

sdo
Moderator
Moderator
Partner    VIP    Certified

Scenario 1 - backup image exists in catalog of master A, but does not exist in catalog of master B - then master B cannot perform the restore, only a client or media server or master server in NetBackup domain A can perform the restore.

Scenario 2 - backup image exists in catalog of master A, and also exists in catalog of master B, i.e. the backup image has been previously replicated between the NetBackup domains at some point - then a client or media server or master server in either domain can perform a restore.

Summary:  A client, media server, or master server cannot restore anything which is not listed within the catalog for that NetBackup domain.

King25may
Level 4

Okay sdo. Thank you.

King25may
Level 4

But here the scenario is the catalog is available ONLY is MasterB (nmbackup5). But I'm triggering the restore job from the Master A (nmbackup1). using the command "bprestore -K -S nmbackup5 -C ln93sae -D ln93app1 -s 07/30/2015 -e 07/30/2015 -R /home/wpdcops/rajalegal/GeorgeGraham/nmjmh2/rename072015 /notes/ln9323/mail/nmjmh2.nsf"

The job is initiating in MasterB, but its failing with the error 2800. 

Marianne
Level 6
Partner    VIP    Accredited Certified
Do you have bprd log folder on MasterB? Please copy to bprd.txt and upload as File attachment.

Marianne
Level 6
Partner    VIP    Accredited Certified

Another thought - your usage of -R option seems incorrect.

-R is to specify a 'rename file'. This rename-file is a text file that specifies source and destination path.

Extract from Commands manual:

-R rename_file
Specifies the name of a file with name changes for alternate-path restores.
For example: bprestore -R /C/renamefile /C/origfile
Where /C/rename_file is the file with the name change and /C/origfile is
the file to be renamed. The pathname that you enter must be an absolute path.
Use the following form for entries in the rename file:
change backup_filepath to restore_filepath

(more in Commands manual....)