Re: "bpimmedia" command hangs for more than 20 hours

>Which switches and options did you use with bpimmedia?

-dp and -stype

>Where exactly did you run the command?

I executed the command from some other machine(testing framework)  using ssh.

>Can you see bpimmedia still in process table?

Please see the below output:

[root@jpvm126 ~]# ps aux | grep bpimm
root     21396  0.0  0.5 324564 72016 ?        Ss   00:29   0:28 /usr/openv/netbackup/bin/admincmd/bpimmedia -dp DiskPool_febed_1 -stype NEC_HYDRA
root     26044  0.0  0.0 103312   868 pts/0    S+   22:36   0:00 grep bpimm
[root@jpvm126 ~]# 
pstree:

     ├─rpcbind
     ├─rsyslogd───3*[{rsyslogd}]
     ├─sshd─┬─sshd───bash─┬─pstree
     │      │             └─sh───sleep
     │      └─sshd───bpimmedia
     ├─udevd───2*[udevd]
[root@jpvm126 ~]# top -p 21396

top - 22:37:55 up 60 days,  1:59,  2 users,  load average: 1.35, 1.20, 1.13
Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
Cpu(s):  5.1%us,  2.4%sy,  0.0%ni, 78.8%id, 13.6%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  12194524k total,  8922908k used,  3271616k free,   340940k buffers
Swap:  6168572k total,    12952k used,  6155620k free,  3907768k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                        
21396 root      20   0  316m  70m  25m S  0.0  0.6   0:28.27 bpimmedia 

>Do you have logging enabled?

currently no logs are generated, i think i have to execute the mklogdir script, right now i can'nt do that before completing the whole test.

 

5 Replies
Highlighted

"bpimmedia" command hangs for more than 20 hours

Hi All,

 

Thank you for your always suport and help.

Currently i am working on a test, which include of thousands of AIR jobs running.

Meanwhile the execution of AIR jobs, when around 10000 jobs were successfully done, and all remanigs jobs still running, i executed "bpimmedia" to get the Backup Image, but this command is hanged from last 20 hours.

 

Can anyone please tell me is this the expected behaviour of command, when some backup jobs are still runnig so bpimmedia will wait untill all the backup jobs completed?

Tags (2)

Re: "bpimmedia" command hangs for more than 20 hours

Which switches and options did you use with bpimmedia?

Where exactly did you run the command?
On Appliance or separate master?
What is NBU / Appliance version?

Can you see bpimmedia still in process table?
Any child processes started by the command?

Do you have logging enabled?
Check admin and bpdbm logs.

 

Re: "bpimmedia" command hangs for more than 20 hours

So, you ran the command from jpvm126.

Is this a master or media server? 

OS and NBU version?

You did not specify a time frame (start and end date) - are duplications/replications still running?
If so, images are being changed constantly, meaning bpimmedia cannot finish!

I would personally kill this process and only run it when logging is enabled. 
Wait till duplications/replications have finished or provide an end date for the command.

I will move this post to NBU forum as this does not seem to be related to NBU Appliances, but rather 3rd-party OST Appliance.

PS: 
This TN is VERY old but shows the logs needed to troubleshoot:
http://www.veritas.com/docs/000082098 

Touchfiles are still relevant, but MAX_FILES_PER_ADD should now be MAX_ENTRIES_PER_ADD 
See http://www.veritas.com/docs/000076426

Re: "bpimmedia" command hangs for more than 20 hours

I don't recommend running mklogdir - that enables all legacy logs which 1. will use disk space, 2. puts a massive load on the server (we usually only enable selected logs at a time, not everything).

Re: "bpimmedia" command hangs for more than 20 hours

 Try to run

# time bpimmedia -d 01/01/1970 | wc -l

would it finish faster? Output to the termail is always slower that to the file to the another command

Try to run command with -legacy key because this delay might happen because of the new format: 

#bpimmedia -dp DiskPool_febed_1 -stype NEC_HYDRA -legacy