cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to restore NDMP backup

lalajee
Level 4

When I try to restore a NDMP backup I keep getting this message in the error log.

16:25:39 (486124.001) Status of restore from copy 1 of image created 19/12/2016 11:20:12 = cannot connect to server backup restore manager

Capture.PNG

 

 

10 REPLIES 10

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

please have a look into this artical

https://www.veritas.com/support/en_US/article.TECH75192.

you need to make sure that the media servers that is allocated to restore job avaliable, (it happens when media servers used to take backup was not avaliable at the time of restore and media server overwrite is not selected for restore job)

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
So, we know from your previous post that you used bpmedia -movedb to change ownership of NDMP tape(s) to another NDMP or normal media server.
Tell us which one did you use? Another filer or regular media server?

You can see that bprd is trying to connect to bpbrm on the 'newserver'. Is this 'newserver' currently functioning properly? Backups running fine?

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
Just another request to please post TEXT instead of screenshots. Text is easy to replace actual names, e.g:
master, media1, media2, filer04, filer02, etc.
This way we can ask you for logs where you can also do a search and replace for hostnames.

Logs needed to troubleshoot restores:
bprd on master (Request service will need a restart after creating the folder)
bpbrm on media server.

Yesterday I run following command to change the media id server

For example

bpmedia -movedb -oldserver xxxx4a -newserver xxxx02a -m GL3301

but the backup was failing because it is listing the media server as xxxx04a

Capture.PNG

But we dont have any media server xxxx4a I have now change everything back to how it was before but still its point to xxxx4a it should be using media server 06 or 02

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

From the conversations thus far, I can assume that filer xxxx4a has tape drive attached and that backups are written to STU that looks something like this, right?
media1-hcart-robot-tld-0-xxxx4a 
Where media1 is the NDMP media server for filer xxxx4a where bptm and bpbrm processes run for the filer that is writing directly to attached tape drives.

Are there tape drives attached to NDMP server xxxx02a and configured in NBU with devices and storage unit configured in NBU with associated media server? 
e.g. media2-hcart-robot-tld-1-xxxx2a 

If not, then this movedb command would've failed. 
bpmedia -movedb -oldserver xxxx4a -newserver xxxx02a -m GL3301

If you have regular media server (e.g. media2) that has access to media-id GL3301, then you can use this command to change media ownership:

bpmedia -movedb -oldserver xxxx4a -newserver media2 -m GL3301

That is correct.

  • media1-hcart-robot-tld-0-xxxx4a
  • media2-hcart-robot-tld-1-xxxx2a 

This is from tape which is not working

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd.exe -listmedia -mediaid
 GL3301
NBEMMCMD, Version: 8.0
====================================================================
Media GUID:                     a8e530b4-129b-4f74-9a94-1443079648f2
Media ID:                       GL3301
Partner:                        -
Media Type:                     HCART2
Volume Group:                   000_00000_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    ---
Barcode:                        GL3301L5
Partner Barcode:                --------
Last Write Host:                xxxx04a
Created:                        24/11/2014 14:57
Time Assigned:                  19/12/2016 11:20
First Mount:                    02/01/2015 11:37
Last Mount:                     06/07/2017 12:33
Volume Expiration:              -
Data Expiration:                INFINITY
Last Written:                   19/12/2016 11:20
Last Read:                      06/07/2017 12:33
Robot Type:                     TLD
Robot Control Host:             controler
Robot Number:                   0
Slot:                           14
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               11
Maximum Mounts Allowed:         0
Media Status:                   ACTIVE
Kilobytes:                      1661141034
Images:                         3
Valid Images:                   3
Retention Period:               1
Number of Restores:             1
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             25955337
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    master server
Server Group:                   NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    13
Volume Pool:                    pool name
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

 

This is from working tape which restore to correct media server

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd.exe -listmedia -mediaid
 2931L5
NBEMMCMD, Version: 8.0
====================================================================
Media GUID:                     f8b18ff7-512d-4b47-82c3-7a606bef70f4
Media ID:                       2931L5
Partner:                        -
Media Type:                     HCART2
Volume Group:                   000_00002_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    ---
Barcode:                        GL2931L5
Partner Barcode:                --------
Last Write Host:                xxxx04a
Created:                        21/08/2014 17:25
Time Assigned:                  02/11/2017 15:44
First Mount:                    21/08/2014 18:06
Last Mount:                     05/11/2017 11:26
Volume Expiration:              -
Data Expiration:                11/01/2018 15:44
Last Written:                   02/11/2017 15:44
Last Read:                      -
Robot Type:                     TLD
Robot Control Host:             controler
Robot Number:                   2
Slot:                           15
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               24
Maximum Mounts Allowed:         0
Media Status:                   FULL
Kilobytes:                      2046208192
Images:                         2
Valid Images:                   2
Retention Period:               10
Number of Restores:             0
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             0
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    master
Server Group:                   NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    10
Volume Pool:                    pool
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

When I run following command

bpimage -backupid xxxx04a_1482146412

This is the return from back image which is not working.

Client:            xxxxx04a
Backup ID:         xxxxx04a_1482146412
Policy:            GL_NDMP_xxxxx04a
Policy Type:       NDMP (19)
Proxy Client:       
Creator:           root
Sched Label:       KEEP
Schedule Type:     FULL (0)
Retention Level:   infinity (1)
Backup Time:            19/12/2016 11:20:12 (1482146412)
Elapsed Time:      613829 second(s)
Expiration Time:             INFINITY       (2147483647)
Compressed:        no
Encrypted:         no
Kilobytes:         34959358826
Number of Files:   27060529
Number of Copies:  1
Number of Fragments:   43
Histogram:         0 0 0 0 0 0 0 0 0 0
DB Compressed:     0
Files File Name:   GL_NDMP_xxxxx04a_1482146412_FULL.f
Previous Backup Files File Name:    
SW Version:         
Primary Copy:      1
Image Type:        0  (Regular)
MPX:               1
TIR Info:          0
TIR Expiration:         01/01/1970 00:00:00 (0)
Keyword:           NONE
Ext Security Info: 0
File Restore Raw:  0
Image Dump Level:  0
File System Only:  0
Object Descriptor: NONE
Previous BI Time:       01/01/1970 00:00:00 (0)
BI Full Time:           01/01/1970 00:00:00 (0)
Request Pid:       0
Backup Status:     0
Stream Number:     0
Backup Copy:       Standard (0)
Files File size:     3865923780
PFI type:     0
IMAGE_ATTRIBUTE:     32
Image on Hold:     0
Kilobytes Data Transferred:   0
Copy number:       1
 Fragment:         TIR (-1)
 Kilobytes:        3775338
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         3
 ID:               GL3301
 Host:             xxxxx04a (This should be xxxx06 which is the media server)
 Block Size:       65536
 Offset:           25896345
 Media Date:            19/12/2016 11:20:12 (1482146412)
 Dev Written On:   2
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         1
 Kilobytes:        8778624
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         6
 ID:               2159L5
 Host:             xxxxx04a
 Block Size:       65536
 Offset:           16659752
 Media Date:            17/12/2016 21:47:13 (1482011233)
 Dev Written On:   1
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         2
 Kilobytes:        896
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         7
 ID:               2159L5
 Host:             xxxxx04a
 Block Size:       65536
 Offset:           16796920
 Media Date:            17/12/2016 21:47:13 (1482011233)
 

This is the image which is working.


Client:            xxxxxx04a
Backup ID:         xxxxxx04a_1488547819
Policy:            GL_NDMP_xxxxxx04a
Policy Type:       NDMP (19)
Proxy Client:       
Creator:           root
Sched Label:       Quarterly
Schedule Type:     FULL (0)
Retention Level:   5 years (12)
Backup Time:            03/03/2017 13:30:19 (1488547819)
Elapsed Time:      525783 second(s)
Expiration Time:        02/03/2022 13:30:19 (1646227819)
Compressed:        no
Encrypted:         no
Kilobytes:         47367762442
Number of Files:   50971579
Number of Copies:  1
Number of Fragments:   58
Histogram:         0 0 0 0 0 0 0 0 0 0
DB Compressed:     0
Files File Name:   GL_NDMP_xxxxxx04a_1488547819_FULL.f
Previous Backup Files File Name:    
SW Version:         
Primary Copy:      1
Image Type:        0  (Regular)
MPX:               1
TIR Info:          0
TIR Expiration:         01/01/1970 00:00:00 (0)
Keyword:           NONE
Ext Security Info: 0
File Restore Raw:  0
Image Dump Level:  0
File System Only:  0
Object Descriptor: NONE
Previous BI Time:       01/01/1970 00:00:00 (0)
BI Full Time:           01/01/1970 00:00:00 (0)
Request Pid:       0
Backup Status:     0
Stream Number:     0
Backup Copy:       Standard (0)
Files File size:     7342723142
PFI type:     0
IMAGE_ATTRIBUTE:     32
Image on Hold:     0
Kilobytes Data Transferred:   0
Copy number:       1
 Fragment:         TIR (-1)
 Kilobytes:        7170634
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         3
 ID:               3839L5
 Host:             xxxxx06 (As you can see it is showing correct media server)
 Block Size:       65536
 Offset:           31543766
 Media Date:            03/03/2017 13:30:19 (1488547819)
 Dev Written On:   0
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         1
 Kilobytes:        9398592
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         13
 ID:               2693L5
 Host:             xxxxx06
 Block Size:       65536
 Offset:           439924
 Media Date:            01/03/2017 17:28:47 (1488389327)
 Dev Written On:   0
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         2
 Kilobytes:        576
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         14
 ID:               2693L5
 Host:             xxxxx06
 Block Size:       65536
 Offset:           586779
 Media Date:            01/03/2017 17:28:47 (1488389327)
 Dev Written On:   0
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         3
 Kilobytes:        576
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         15
 ID:               2693L5
 Host:             xxxxx06
 Block Size:       65536
 Offset:           586790
 Media Date:            01/03/2017 17:28:47 (1488389327)
 Dev Written On:   0
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         4
 Kilobytes:        3904
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         16
 ID:               2693L5
 Host:             xxxxx06
 Block Size:       65536
 Offset:           586801
 Media Date:            01/03/2017 17:28:47 (1488389327)
 Dev Written On:   0
 Flags:            0x0
 Media Descriptor:        ?
 Mirror Parent:           0
 Data Format:      3  (NDMP)
 Copy on Hold:     0
Copy number:       1
 Fragment:         5
 Kilobytes:        1048576064
 Remainder:        0
 Media Type:       NDMP (3)
 Density:          hcart2 (14)
 File Num:         17
 ID:               2693L5
 Host:             xxxxx06
 Block Size:       65536
 Offset:           586864
 

Media info.

Tape not working

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd.exe -listmedia -mediaid
 GL3301
NBEMMCMD, Version: 8.0
====================================================================
Media GUID:                     a8e530b4-129b-4f74-9a94-1443079648f2
Media ID:                       GL3301
Partner:                        -
Media Type:                     HCART2
Volume Group:                   000_00000_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    ---
Barcode:                        GL3301L5
Partner Barcode:                --------
Last Write Host:                xxxxx04a
Created:                        24/11/2014 14:57
Time Assigned:                  19/12/2016 11:20
First Mount:                    02/01/2015 11:37
Last Mount:                     06/07/2017 12:33
Volume Expiration:              -
Data Expiration:                INFINITY
Last Written:                   19/12/2016 11:20
Last Read:                      06/07/2017 12:33
Robot Type:                     TLD
Robot Control Host:             -
Robot Number:                   0
Slot:                           14
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               11
Maximum Mounts Allowed:         0
Media Status:                   ACTIVE
Kilobytes:                      1661141034
Images:                         3
Valid Images:                   3
Retention Period:               1
Number of Restores:             1
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             25955337
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    masterserver
Server Group:                   NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    13
Volume Pool:                    pool
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

C:\Program Files\Veritas\NetBackup\bin\admincmd>

 

This is working tape

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd.exe -listmedia -mediaid
 3839L5
NBEMMCMD, Version: 8.0
====================================================================
Media GUID:                     ef9fd12f-51d5-4233-97ac-8e3c1496612f
Media ID:                       3839L5
Partner:                        -
Media Type:                     HCART2
Volume Group:                   ---
Application:                    Netbackup
Media Flags:                    1
Description:                    ---
Barcode:                        GL3839L5
Partner Barcode:                --------
Last Write Host:                xxxxx04a
Created:                        09/03/2017 10:04
Time Assigned:                  03/03/2017 13:30
First Mount:                    09/03/2017 11:11
Last Mount:                     09/03/2017 11:11
Volume Expiration:              -
Data Expiration:                02/03/2022 13:30
Last Written:                   03/03/2017 13:30
Last Read:                      -
Robot Type:                     NONE
Robot Control Host:             -
Robot Number:                   -
Slot:                           -
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               1
Maximum Mounts Allowed:         0
Media Status:                   ACTIVE
Kilobytes:                      2025971274
Images:                         3
Valid Images:                   3
Retention Period:               12
Number of Restores:             0
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             31655810
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    master
Server Group:                   NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    11
Volume Pool:                    pool
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

C:\Program Files\Veritas\NetBackup\bin\admincmd>

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
So, what is displayed when you issue bpmedia -movedb command for 'non-working' tape?

All I can suggest is to log a support call with Veritas as I won't be available over the next couple of days. And I don't see anybody else trying to assist.

bpmedia -movedb commandworks without any errors.

Thank you so much for all your help