This is how I go about trouble shooting this.
/usr/proc/bin/pfiles 15036, if any mandatory locking is on,
it will tell you something like this right after the file
descriptor which had the lock.
example:
S_IFREG mode:02644 dev:131,78000 ino:453123 uid:50087 gid:506 size:1466
O_RDONLY
manditory write lock set by process 1159
in lsof, then look for the inode 453123, i.e,
lsof | grep -i bpbkar | grep 453123
or lsof -p <bpbkar PID> | grep <inode>
This will show you the file it is trying to get the locks on. If this
is the case
- Netbackup will wait forever on this file, until it is unlocked
- It will not come back for it later, as I know
- The bpbrm logs on the master server indicate what files have
been skipped like this
log.011701:03:24:31 [23920] <8> bpbrm handle_backup: from client pdcgfr02:
WRN - Skipping file
/oemdisk1/homedir/arbor/app/Bud2001/Bud2001/Bud2001.tct, it has mandatory
locking enabled and is currently locked
If I'm not wrong you can also get this from the problem report.
-ravi
On Wed, 17 Jan 2001, Jason Ahrens wrote:
>On Tuesday 16 January 2001 15:03, you wrote:
>
>> I've had the exact situation and I traced it to the files
>> having mandatory locking on, run 'lsof' or 'pfiles' on
>> the process idling. If this is the case, you can get around
>> by adding to bp.conf
>>
>> LOCKED_FILE_ACTION = SKIP
>
>It happened again today. Two more (different than yesterday) machine are
>currently 'idling'. If this is in fact the case, is it not possible to get
>NetBackup to either wait the lock out, or continue and come back to it later?
>If I have to SKIP thses files, will I be informed of backups that have
>incomplete file sets?
>
>Looking at the 'lsof' output from the two machine, I see:
>
>root@bat:/[4]# lsof|grep bpbkar
>bpbkar 15036 root cwd VDIR 85,50 1024 6016
>/dsk/md50/interramp
>bpbkar 15036 root txt VREG 32,31 786132 757134 /opt
>(/dev/dsk/c0t3d0s7)
>bpbkar 15036 root txt VREG 32,28 27000 9035
>/usr/lib/nss_files.so.1
>bpbkar 15036 root txt VREG 32,28 1014088 9354
>/usr/lib/libc.so.1
>bpbkar 15036 root txt VREG 32,28 36508 9075
>/usr/lib/libaio.so.1
>bpbkar 15036 root txt VREG 32,28 19304 9006
>/usr/lib/libmp.so.2
>bpbkar 15036 root txt VREG 32,28 721916 9029
>/usr/lib/libnsl.so.1
>bpbkar 15036 root txt VREG 32,28 16936 64364
>/usr/platform/sun4u/lib/libc_psr.so.1
>bpbkar 15036 root txt VREG 32,28 33588 9009 /usr
>(/dev/dsk/c0t3d0s4)
>bpbkar 15036 root txt VREG 32,28 14756 8987
>/usr/lib/libsec.so.1
>bpbkar 15036 root txt VREG 32,28 53656 9018
>/usr/lib/libsocket.so.1
>bpbkar 15036 root txt VREG 32,28 4280 8996
>/usr/lib/libdl.so.1
>bpbkar 15036 root txt VREG 32,28 166196 8983
>/usr/lib/ld.so.1
>bpbkar 15036 root 0u inet 0x6165d540 0t284 TCP
>bat.istar.ca:bpcd->kestrel.psi.ca:1006 (FIN_WAIT_2)
>bpbkar 15036 root 1u inet 0x6165c2c0 0t0 TCP
>bat.istar.ca:1022->kestrel.psi.ca:4998 (ESTABLISHED)
>bpbkar 15036 root 2u inet 0x60dbfa88 0t295362 TCP
>bat.istar.ca:1023->kestrel.psi.ca:1005 (ESTABLISHED)
>bpbkar 15036 root 3r VDIR 32,24 1536 2 /
>bpbkar 15036 root 4r VREG 32,31 3408190 355289 /opt --
>NetBackup_file_info.OttawaIS
>bpbkar 15036 root 5r VREG 32,24 671 9058
>/etc/group
>bpbkar 15036 root 6w VREG 32,31 49152 355288 /opt
>(/dev/dsk/c0t3d0s7)
>bpbkar 15036 root 7r VDIR 32,24 512 89183 /dsk
>bpbkar 15036 root 8r VDIR 85,50 512 2 /dsk/md50
>bpbkar 15036 root 9r VDIR 85,50 1024 6016
>/dsk/md50/interramp
>bpbkar 15036 root 10r VREG 85,50 235287682 6027
>/dsk/md50/interramp/debug
>bpbkar 15036 root 11u VCHR 13,12 0t0 80166
>/devices/pseudo/mm@0:zero
>
>and
>kestrel:/[4]# /usr/local/sbin/lsof|grep bpbkar
>bpbkar 19053 root cwd VDIR 32,87 1024 76174
>/opt/openv/netbackup/db/error
>bpbkar 19053 root txt VREG 32,87 741688 487446
>/opt/openv/netbackup/bin/bpbkar
>bpbkar 19053 root txt VREG 32,84 27884 6424
>/usr/lib/nss_files.so.1
>bpbkar 19053 root txt VREG 32,84 19876 6394
>/usr/lib/libmp.so.2
>bpbkar 19053 root txt VREG 32,84 1115940 6367
>/usr/lib/libc.so.1
>bpbkar 19053 root txt VREG 32,84 14908 6411
>/usr/lib/libsec.so.1
>bpbkar 19053 root txt VREG 32,84 831560 6397
>/usr/lib/libnsl.so.1
>bpbkar 19053 root txt VREG 32,84 56988 6412
>/usr/lib/libsocket.so.1
>bpbkar 19053 root txt VREG 32,84 4600 6378
>/usr/lib/libdl.so.1
>bpbkar 19053 root txt VREG 32,84 182804 6274 /usr/lib/ld.so.1
>bpbkar 19053 root 0u inet 0xf62d0d48 0t293 TCP
>kestrel.psi.ca:bpcd->kestrel.psi.ca:ufsd (FIN_WAIT_2)
>bpbkar 19053 root 1r VDIR 32,80 1024 2 /
>bpbkar 19053 root 2u inet 0xf6078b10 0t488252 TCP
>kestrel.psi.ca:619->kestrel.psi.ca:1007 (ESTABLISHED)
>bpbkar 19053 root 3r VREG 32,87 597968 38104
>/opt/openv/netbackup/tir_info/NetBackup_file_info.OttawaIS
>bpbkar 19053 root 4r VREG 32,80 292 49846 /etc/group
>bpbkar 19053 root 5w VREG 32,87 81920 38105 /opt
>(/dev/dsk/c1t3d0s7)
>bpbkar 19053 root 6r VDIR 32,87 512 2 /opt
>bpbkar 19053 root 7r VDIR 32,87 512 464582 /opt/openv
>bpbkar 19053 root 8r VDIR 32,87 512 479813
>/opt/openv/netbackup
>bpbkar 19053 root 9r VDIR 32,87 512 251343
>/opt/openv/netbackup/db
>bpbkar 19053 root 10r VDIR 32,87 1024 76174
>/opt/openv/netbackup/db/error
>bpbkar 19053 root 11r VREG 32,87 38181 76199
>/opt/openv/netbackup/db/error/log_0979621200
>
>Jason
>
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks. Any
views expressed in this message are those of the individual sender, except
where the message states otherwise and the sender is authorised to state
them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is
indicative only, is subject to change and does not constitute an offer to
deal at any price quoted.
Any reference to the terms of executed transactions should be treated as
preliminary only and subject to our formal written confirmation.
|