cancel
Showing results for 
Search instead for 
Did you mean: 

Restore failed with " The host is not defined in EMM "

liuyl
Level 6

It is so strange that the nbemmcmd can output the media server zzapp001 successfully !
Notes: the media server zzapp001 itself is also a NBU client。

 

2020/10/27 16:32:47 - Info bpbrm(pid=13308) zzapp001 is the host to restore to
2020/10/27 16:32:47 - Info bpbrm(pid=13308) telling media manager to start restore on client
2020/10/27 16:32:48 - Info bpbrm(pid=12808) zzapp001 is the host to restore to
2020/10/27 16:32:48 - connecting
2020/10/27 16:32:49 - Info bpbrm(pid=12808) start tar32 on client
2020/10/27 16:32:49 - Error bptm(pid=9092) NBJM returned an extended error status: resource request failed (800)
2020/10/27 16:32:54 - Info bpbrm(pid=13308) got ERROR 252 from media manager
2020/10/27 16:32:54 - Info bpbrm(pid=13308) terminating bpbrm child 12808 jobid=30822
2020/10/27 16:37:19 - begin Restore
2020/10/27 16:37:19 - 1 images required
2020/10/27 16:37:19 - media 0551L5 required
2020/10/27 16:37:19 - media 0528L5 required
2020/10/27 16:37:22 - restoring image zzapp001_1587967771
2020/10/27 16:37:24 - requesting resource 0551L5
2020/10/27 16:37:25 - Error nbjm(pid=832) NBU status: 800, EMM status: The host is not defined in EMM
2020/10/27 16:37:25 - Error nbjm(pid=832) NBU status: 800, EMM status: The host is not defined in EMM
2020/10/27 16:37:30 - restored image zzapp001_1587967771 - (extended error status has been encountered, check logs(252)); restore time 00:00:08
2020/10/27 16:37:33 - Warning bprd(pid=3396) Restore must be resumed prior to first image expiration on INFINITY
2020/10/27 16:37:33 - end Restore; elapsed time: 00:00:14
Restore error(2850)

 

C:\>
C:\>nbemmcmd -listhosts -verbose
The following hosts were found:
jg-kwv5aujgxf6q.hddj.com
MachineName = "jg-kwv5aujgxf6q.hddj.com"
FQName = "JG-KWV5AUJGXF6Q.hddj.com"
MachineDescription = ""
MachineNbuType = server (6)
jg-kwv5aujgxf6q.hddj.com
ClusterName = ""
MachineName = "jg-kwv5aujgxf6q.hddj.com"
FQName = "JG-KWV5AUJGXF6Q.hddj.com"
GlobalDriveSeed = "VEND:#.:PROD:#.:IDX"
LocalDriveSeed = ""
MachineDescription = ""
MachineFlags = 0xa5
MachineNbuType = master (3)
MachineState = active for tape and disk jobs (14)
NetBackupVersion = 8.1.0.0 (810000)
OperatingSystem = windows (11)
ScanAbility = 5
zzapp001
ClusterName = ""
MachineName = "zzapp001"
FQName = "zzapp001"
LocalDriveSeed = ""
MachineDescription = ""
MachineFlags = 0x5
MachineNbuType = media (1)
MachineState = active for tape and disk jobs (14)
MasterServerName = "jg-kwv5aujgxf6q.hddj.com"
NetBackupVersion = 8.1.0.1 (810000)
OperatingSystem = windows (11)
ScanAbility = 5


C:\>
C:\>nbemmcmd -machinealias -getaliases -machinename zzapp001 -machinetype media
NBEMMCMD, Version: 8.1.0.0
The following aliases were found for the alias: "zzapp001"
zzapp001
zzapp1
Command completed successfully.

C:\>

9 REPLIES 9

davidmoline
Level 6
Employee

Hi @liuyl 

Just because zzapp01 is a media server it does not imply that it will be the host used to perform the restore. Can you provide more details about which media server "owns" the media or which media server the system is looking to use for the restore. Once you have this it may also help solve the issue.

If the server zzapp01 has the requisite tapes drives you could probably assign the media to that host (bpmedia -movedb -m <MediaID> -newserver zzapp01), or use the "altreadhost" argument in the restore command (or select the zzapp01 media server in the GUI). 

Cheers
David

In fact,  if the problem was just due to the wrong/mismatch image owner,  then the NBU would not report it with " The host is not defined in EMM " at all.

 

C:\bpimagelist -client zzapp001 -d 2020-04-23 19:05:00 -e 2020-04-27 19:10:00 -media

0551L5 zzapp001 1587967771  5  1776786586  2  0

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Check the process flow of the restore in bprd log on the master server.
If the folder does not exist under .../netbackup/logs, create it and restart NBU on the master, then retry the restore.

Follow the restore process through the browse phase, up to when bprd contacts bpdbm for image info.
After image is found, bprd selects the media server, and connects to bpbrm on the media server.
If there is perhaps FORCE_RESTORE entry on the master server, you will see that in the bprd log.

If you want to replace hostnames other than the media server in bprd log, please do so and upload the log as .txt file.

Many deeper problem details might not exist in the corresponding logs even though adjusting its debug level to 5  。。。

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

@liuyl 

The level 5 log for bprd is only needed of you want to log a Support call with Veritas. Up to level 3 is perfectly fine for 99% of troubleshooting.
Logging level on the media server is set to 2.
(VERBOSE = 2)

The real error seems to be in bptm on the media server:

resource request failed (800)

The media id needed for restore is 0551L5 - LTO5 media, right?

We never see in bptm that a suitable tape drive is found for the restore.
The resource broker on the master server seems to believe that there are no resources (drives) available on the media server.

What drives are up and available on this media server?

Just because  " The host is not defined in EMM ",   so there would be no any drives(resources) for the bptm to search & open .

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

There is no longer a " The host is not defined in EMM " error - nowhere in any of the logs that you uploaded. 

bprd on the master server starts bpbrm on the correct media server. bpbrm starts bptm on the same media server.
The media server bptm then reports that the resource broker cannot find any suitable devices on this media server.

Not sure if you changed bp.conf on the master server, because we now see that bprd find this :
Because of FORCE_RESTORE_MEDIA_SERVER, changing server of bid zzapp001_1587967771 from zzapp001 to zzapp001

My guess is that there was another 'to' entry before.

Because these messages were reported via the nbjm,  so they might be only found in the corresponding vxlogviews.

 

10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 reqid=0] 6 [ExportedResourceMgr::runEventQueue] +++ ENTERING +++ : obj = 0000000001901940 (../ExportedResourceMgr.cpp:275)
10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 reqid=0] 4 [ExportedResourceMgr::runEventQueue] (0000000001901940) running ERMEvent queue(ExportedResourceMgr.cpp:285)
10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [ForeignJob::ERMEvent] +++ ENTERING +++ : obj = 0000000001353700 (../ForeignJob.cpp:79)
10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::ERMEventResourceStatus] +++ ENTERING +++ : obj = 0000000001353808 (../JobInstance.cpp:585)
10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::ERMEventResourceStatus] --- EXITING --- : obj = 0000000001353808 (../JobInstance.cpp:585)
10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 1 [ForeignJob::ERMEvent] (0000000001353700) initial resource request failed, requestId=-1, EMM status=The host is not defined in EMM, NBU status=800(ForeignJob.cpp:99)
10/27/2020 16:42:00.052 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::logNbuEmmStatus] +++ ENTERING +++ : obj = 0000000001353808 (../JobInstance.cpp:546)
10/27/2020 16:42:00.068 [Application] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] [Error] V-117-131 NBU status: 800, EMM status: The host is not defined in EMM

10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::logNbuEmmStatus] --- EXITING --- : obj = 0000000001353808 (../JobInstance.cpp:546)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 reqid=0] 6 [ExportedResourceMgr::setReleaseResourcesOnDestruction] +++ ENTERING +++ : obj = 0000000001901940 (../ExportedResourceMgr.cpp:170)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 reqid=0] 4 [ExportedResourceMgr::setReleaseResourcesOnDestruction] (0000000001901940) previous=false, setting=true(ExportedResourceMgr.cpp:176)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 reqid=0] 6 [ExportedResourceMgr::setReleaseResourcesOnDestruction] --- EXITING --- : obj = 0000000001901940 (../ExportedResourceMgr.cpp:170)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [ForeignJob::ERMEvent] --- EXITING --- : obj = 0000000001353700 (../ForeignJob.cpp:79)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [ForeignJob::ERMEvent] +++ ENTERING +++ : obj = 0000000001353700 (../ForeignJob.cpp:79)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::ERMEventResourceStatus] +++ ENTERING +++ : obj = 0000000001353808 (../JobInstance.cpp:585)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::ERMEventResourceStatus] --- EXITING --- : obj = 0000000001353808 (../JobInstance.cpp:585)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 1 [ForeignJob::ERMEvent] (0000000001353700) resource request failed, requestId=0, EMM status=The host is not defined in EMM, NBU status=800(ForeignJob.cpp:117)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::logNbuEmmStatus] +++ ENTERING +++ : obj = 0000000001353808 (../JobInstance.cpp:546)
10/27/2020 16:42:00.068 [Application] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] [Error] V-117-131 NBU status: 800, EMM status: The host is not defined in EMM

10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::logNbuEmmStatus] --- EXITING --- : obj = 0000000001353808 (../JobInstance.cpp:546)

 

 

Because these messages were reported via the nbjm, so they might be only found in the corresponding vxlogviews.

 

10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [ForeignJob::ERMEvent] --- EXITING --- : obj = 0000000001353700 (../ForeignJob.cpp:79)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [ForeignJob::ERMEvent] +++ ENTERING +++ : obj = 0000000001353700 (../ForeignJob.cpp:79)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::ERMEventResourceStatus] +++ ENTERING +++ : obj = 0000000001353808 (../JobInstance.cpp:585)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::ERMEventResourceStatus] --- EXITING --- : obj = 0000000001353808 (../JobInstance.cpp:585)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 1 [ForeignJob::ERMEvent] (0000000001353700) resource request failed, requestId=0, EMM status=The host is not defined in EMM, NBU status=800(ForeignJob.cpp:117)
10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::logNbuEmmStatus] +++ ENTERING +++ : obj = 0000000001353808 (../JobInstance.cpp:546)
10/27/2020 16:42:00.068 [Application] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] [Error] V-117-131 NBU status: 800, EMM status: The host is not defined in EMM

10/27/2020 16:42:00.068 [Debug] NB 51216 nbjm 117 PID:832 TID:3780 File ID:117 [jobid=30822 parentid=0] 6 [JobInstance::logNbuEmmStatus] --- EXITING --- : obj = 0000000001353808 (../JobInstance.cpp:546)