Forum Discussion

Amar-khodja's avatar
8 years ago

Netbackup continues running policy even de-activated or deleted

Hi experts,

I have de-activated a policy in NetBackup, but it is still running. I have deleted it but no way.

What can I do to stop the policy from running while it is de-activated.

I have done the folloing but didn't solve the issue:

1. Stop NetBackup Services on the master server
2. Remove the following files and directories from the master server
 
    /usr/openv/netbackup/bin/bpsched.d/*
    /usr/openv/netbackup/bin/bprd.d/*
    /usr/openv/netbackup/db/jobs/pempersist2
    /usr/openv/netbackup/db/jobs/restart/*
 
3. Start NetBackup Services
4. Run the command below to force nbpem to re-read configurations and rebuild its cache instead of waiting the default time to do so:
 
    /usr/openv/netbackup/bin/admincmd/nbpemreq -updatepolicies
 

Thanks

 

22 Replies

  • Hello, I need to admit you are brave ;)

    I am not really following your issue! So you have a policy which is currently running in activity monitor? Did you try to cancel this policy? After restart of NBU it should be in state like cancelled or pending restart... If you deactivated this policy it should not be kicked off any longer...

    Please provide you NBU version and describe the issue more...

    • Amar-khodja's avatar
      Amar-khodja
      Level 3

      I have missed one point:

      When running, the job gives error code 247 and of course stops running in Activity Monitor. See error:

      03/13/17 06:01:23.664 [Info] V-116-14 CLIENT bkpema15t1  POLICY bkpema15t_emadb_full  SCHED *NULL* EXIT STATUS 247 (the specified policy is not active) VBRF 1 247

      NBU version is: 7.7.3

       

  • Hi AMar-khodja , check the output of bppllist <polictname> -U and verify the value for attribute "Active" . This wil verify if this attributed is updated for this policy in Netbackup database.If it stil shows "yes" that means it is not updated (issue with GUI -> not able to update policy attribute) .

    For analysis purpose you may need to enable / review nbpem logs .

    BTW What is the platform and version of Netbackup ?

     

    DeepS

    • Amar-khodja's avatar
      Amar-khodja
      Level 3

      # /opt/openv/netbackup/bin/admincmd/bppllist bkpema15t_emadb_full -U |grep -i active
        Active:              no

      Find below nbpem logs:

      # /opt/openv/netbackup/bin/vxlogview -p 51216 -i 116 -d all -t 24:00:00 | grep bkpema15t_emadb_full
      03/14/17 06:01:22.375 [Application] NB 51216 nbpem 116 PID:8022 TID:14 File ID:116 [jobid=-1 job_group_id=-1 client=bkpema15t1 type=2

      server=*NULL* task=ID:1017c03b8 CTX:1017c03b8 policy=bkpema15t_emadb_full] [Info] V-116-82 received start user backup request for

      client=bkpema15t1, policy=bkpema15t_emadb_full, schedule=?, stream #=0, client type=Oracle (4), parent jobid=-1
      03/14/17 06:01:22.375 [Diagnostic] NB 51216 nbpem 116 PID:8022 TID:14 File ID:116 [jobid=-1 job_group_id=-1 client=bkpema15t1 type=2

      server=*NULL* task=ID:1017c03b8 CTX:1017c03b8 policy=bkpema15t_emadb_full] 1 V-116-189 [ExtReqTask::run_specificPolicy] Failed to retrieve

      policy bkpema15t_emadb_full, 247
      03/14/17 06:01:22.375 [Debug] NB 51216 nbpem 116 PID:8022 TID:14 File ID:116 [jobid=-1 job_group_id=-1 client=bkpema15t1 type=2 server=*NULL*

      task=ID:1017c03b8 CTX:1017c03b8 policy=bkpema15t_emadb_full] 1 [PemTask::taskComplete] (ID:1017c03b8 CTX:1017c03b8) Active subtask count=0

      (PemTask.cpp:530)
      03/14/17 06:01:22.384 [Diagnostic] NB 51216 nbpem 116 PID:8022 TID:14 File ID:116 [jobid=-1 job_group_id=-1 client=bkpema15t1 type=2

      server=*NULL* task=ID:1017c03b8 CTX:1017c03b8 policy=bkpema15t_emadb_full] 1 V-116-215 [ExtReqTask::taskCompleted] jobid=-1 submitted to nbjm

      for processing
      03/14/17 06:01:22.386 [Application] NB 51216 nbpem 116 PID:8022 TID:13 File ID:116 [jobid=35043 job_group_id=-1 client=*NULL* type=2

      server=*NULL* task=ID:0 policy=*NULL*] [Info] V-116-14 CLIENT bkpema15t1  POLICY bkpema15t_emadb_full  SCHED *NULL*  EXIT STATUS 247 (the

      specified policy is not active) VBRF 1 247

      The platform of the Netbackup is : SPARC M3000 Solaris 10

      NBU version is: 7.7.3

      • quebek's avatar
        quebek
        Moderator

        Is not this policy scheduled on client end?? You need to go to the client and have DBA or anyone else who is scheduling it to stop doing this.... I would have checked the client crontab (if unix based) or schedule tasks if windows based...