cancel
Showing results for 
Search instead for 
Did you mean: 

Can't restore using bprestore

gvart
Level 3

Hello Veristas community I need your help.

I try to restore map test from linux machine using :  .\bprestore -s <start> -e <end> -p<polciy> -C <client_name>  /home/vmail/test . But after i run this command i get status 227.

when I backup this folder it's work fine, and ends with status 0

content of bp.conf is:

SERVER = 01bmd01.vcloud.local
CLIENT_NAME = tsg003.vcloud.local
CONNECT_OPTIONS = localhost 1 0 2

01bmd01.vcloud.local 0 is media server. All commands I run on this machine.

What is problem? Why I can create backups but can't restore?
 

PS restore and backup for Windows machines with same config work!

 

8 REPLIES 8

Michal_Mikulik1
Moderator
Moderator
Partner    VIP    Accredited Certified

I guess nothing more than mistyping. Actually NetBackup cannot find backups (status 227), I did not started a restore yet.

Doublecheck if your parameters (client, policy etc.) are correct - compare with BAR GUI, ClientBackups report, Catalog section in Admin console etc.

Also check if /home/vmail is not a link.

Regards

M.

Marianne
Level 6
Partner    VIP    Accredited Certified

The 1st SERVER entry in bp.conf MUST ALWAYS be the master server, not a media server.
SERVER entries for media servers must be entries below the SERVER entry for the master.

Browse or restore requests are sent to the 1st entry found in bp.conf assuming that this is the Master server.
NBU image catalog only exists on the master, therefore all browse/restore requests must be sent to the master.

Also - what is the Client name used in the Policy?

If the name in the Policy and CLIENT_NAME in bp.conf do not match exactly, then you will also get the 'no entity found' error message.

tsg003.vcloud.local != tsg003 != Tsg003.vcloud.local 

Before you try to restore, firstly check that you can browse/list images from the client with bplist.

Good idea to also add policy type to bplist or bprestore command (-t <policy-type>).
Please double-check policy type  - I have seen how backups for MS-Windows policy was successful for Unix/Linux client but created problem with restore when one wants to browse for 'Standard' policy type.

gvart
Level 3

1.Machine name is used with domain.
2.Policy is of type Standart.
3.When i call bplist just get status 227.

4.Now bp.conf is like :

SERVER = cl01bmc01.vcloud.local  
SERVER = 01bmd01.vcloud.local
CLIENT_NAME = tsg003.vcloud.local
CONNECT_OPTIONS = localhost 1 0 2

cl01bmc01.vcloud.local  - Master server

01bmd01.vcloud.local - Media server, tape is connected to this server.

 

Also I find in registy on my windows machine ( Backup / Restore works ) configs like bp.conf , and it's like:

Browser tsg001.vcloud.local

CONNECTION_OPTIONS localhost 1 0 2

Server cl01bmc01.vlcoud.local 01bmd01.vcloud.local

 

I don't see difference? But one work other don't

 

Marianne
Level 6
Partner    VIP    Accredited Certified
Show us client name used in policy: bppllist (policy-name) -U

gvart
Level 3

HW/OS/Client:  Linux               Debian2.6.18  tsg003.vcloud.local

Marianne
Level 6
Partner    VIP    Accredited Certified

Please double-check for successful backups for the last week or so on the master server with this command:

bpimagelist -client tsg003.vcloud.local -pt Standard -d 06/20/2016

Let us know what you see.

If this works fine, ensure bprd log folder exists on the master.
If you need to create the folder, restart NBU on the master after doing so.

Run bplist on master and on client:

bplist -C tsg003.vcloud.local -t 0 -s 06/20/2016 -R 3 / 

If bplist fails, review bprd log on the master to see how the browse request is interpreted.

 

 

gvart
Level 3

#bpimagelist output

Backed Up Expires Files KB C Sched Type On Hold Policy

---------------- ---------- -------- -------- - --------------- ------- ------------

06/30/2016 10:48 07/14/2016 408 3967200 N Full Backup 0 +tsg_Standart

06/30/2016 01:12 07/14/2016 5 32 N Full Backup 0 +tsg_Standart

06/29/2016 17:24 07/13/2016 5 32 N Full Backup 0 +tsg_Standart

06/29/2016 13:21 07/13/2016 1 32 N Full Backup 0 +tsg_Standart

06/29/2016 12:47 07/13/2016 1 32 N Full Backup 0 +tsg_Standart

06/29/2016 11:29 07/13/2016 2 32 N Full Backup 0 +tsg_Standart

And both invocations of bplist on master / client return backuped files.

Can exists another problems? to solve them

 

Marianne
Level 6
Partner    VIP    Accredited Certified
It seems you are trying to run bprestore from the media server and not the master or client? If so, run the bpimagelist and bplist commands on the media server. Let us know what happens. The same parameters used with bplist will also work with bprestore. Again, if bplist works but not bprestore, look in bprd log on the master for clues.