Académique Documents
Professionnel Documents
Culture Documents
Version: 1.03
Table of contents
Summary ...................................................................................................................................... 3
Change the default location to store debug files ................................................................................ 3
Windows host ........................................................................................................................... 3
Set the variable OmniTmp in the registry ......................................................................................... 3
Set the variable OB2DBGDIR in the omnirc file ................................................................................ 3
Redirect the files using a path prefix : ............................................................................................. 4
Linux and Unix host .................................................................................................................... 4
Methods to start creating debugs and where to define the debug options. ............................................ 4
From the GUI ............................................................................................................................. 4
Scheduled debugging................................................................................................................. 4
From the command line............................................................................................................... 5
Enabling the trace file ................................................................................................................. 5
For Windows ............................................................................................................................... 5
For Unix/Linux ............................................................................................................................. 6
The omnirc ................................................................................................................................ 6
The cell server omnirc file .............................................................................................................. 6
The client omnirc file ..................................................................................................................... 6
Debug options ............................................................................................................................... 6
Range....................................................................................................................................... 7
Circular debugs ......................................................................................................................... 7
Timestamp in seconds and milliseconds ........................................................................................ 8
Debug files in Unicode format ..................................................................................................... 8
Postfix ....................................................................................................................................... 8
Program and hostname ............................................................................................................... 8
Debug definition changes and re-activation. .................................................................................. 9
Special debugs .......................................................................................................................... 9
Inet debugs ............................................................................................................................... 9
On Windows host: ....................................................................................................................... 9
On UNIX host ............................................................................................................................ 10
On Linux host ............................................................................................................................. 10
CRS and MMD debugs ............................................................................................................. 10
On Unix/Linux CS ...................................................................................................................... 10
For cluster configurations ............................................................................................................. 11
Omnitrig debugs ...................................................................................................................... 11
On Windows ............................................................................................................................. 11
On Unix/Linux ........................................................................................................................... 11
What debug files are needed? ...................................................................................................... 11
General debugs ....................................................................................................................... 11
Veagent debug log files ............................................................................................................ 11
VMware VDDK log files ............................................................................................................ 12
VMware log files...................................................................................................................... 12
VMware ESX(i) log files ............................................................................................................ 13
vCenter Server trivia log files ..................................................................................................... 14
How to collect debugs for MC/Serviceguard integration .............................................................. 14
Collecting CRS only debugs......................................................................................................... 14
Collecting CRS and MMD debugs ................................................................................................ 15
Collecting all debugs from cluster nodes excluding CLI and GUI debugs ........................................... 15
Disabling debugs ....................................................................................................................... 15
Collecting omniinet debugs.......................................................................................................... 15
Media Agent debugs ................................................................................................................ 15
Information required for Cell Manager and RDS problems. ........................................................... 17
The following information should be obtained ................................................................................ 17
See Appendix A for a list of helpful data for RDS problems where DP runs on HP-UX.......................... 17
Appendix A Data list for RDS problems on HP-UX........................................................................... 17
Appendix B Data list for RDS problems on Windows ...................................................................... 18
Information required for Disk and Media Agent Issues .................................................................. 19
Problem Description .................................................................................................................... 19
Collect Debugs........................................................................................................................... 20
Collect Matching Session Report. ................................................................................................. 20
Collect Supporting Data. ............................................................................................................. 20
Run the vbda as standalone command .......................................................................................... 20
Summary
Each Data Protector program can produce debug files. They contain messages that can be used in the
reconstruction of the program execution. The debug trace files are meant to inform the support
engineering, how and why something happened?
Windows host
By default the debug files are stored under the Omniback tmp directory.
C:\ProgramData\OmniBack\tmp (for Windows vista, 2008, 7)
C:\Program Files\OmniBack\tmp (older Windows versions)
Set the variable OmniTmp in the registry
One important note: the destination directory must exist and the permissions to the full path
need to be correct for the process writing the debugs.
Commands to query, add or delete the registry entry:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\HewlettPackard\OpenView\OmniBackII\Common /v "OmniTmp" /d "C:\temp\debug"
reg query HKEY_LOCAL_MACHINE\SOFTWARE\HewlettPackard\OpenView\OmniBackII\Common /v "OmniTmp"
HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\OpenView\OmniBackII\Common
OmniTmp
REG_SZ
C:\temp\debug
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\HewlettPackard\OpenView\OmniBackII\Common /v "OmniTmp"
Set the variable OB2DBGDIR in the omnirc file
for Windows 2008 and vista omnirc is now in C:\ProgramData\OmniBack
for older Windows versions (2003) omnirc is C:\Program Files\OmniBack
Note that only range and postfix can be defined. Those generic debug files may be created on several
host.
Scheduled debugging
Specific backup specifications can run in debug mode when scheduled.
To enable debugs open the corresponding file in the server config schedule folder.
For barlist open Barschedules, select the type of barlist.
e.g. on W2003:
C:\Program Files\OmniBack\Config Server\Barschedules\MSSQL
#
postfix=
#
select=
#
#
and restart the crs daemon the same way as in 4.
#---------------------------------------------------------------------------
For Unix/Linux
#--------------------------------------------------------------------------# Filename: /etc/opt/omni/server/options/trace
#
# $Revision: 12151 $
#
# This file is a template for Data Protector debugging. It contains many
# different debugging options for collecting debug files for different
# Data Protector modules.
#
# How to use it?
#
# 1. Uncomment line(s) containing the debug options (make sure only one
#
of each options is uncommented!):
#
#
ranges=
#
postfix=
#
select=
#
# 2. Save changed trace file (this file)
#
# 3. Make sure no Data Protector session is running
#
# 4. Restart the crs daemon to apply debug options:
#
#
/opt/omni/lbin/crs -redebug
#
# 5. To turn the debugging off, set all debugging options to empty string:
#
#
ranges=
#
postfix=
#
select=
#
#
and restart the crs daemon the same way as in 4.
#
#---------------------------------------------------------------------------
The omnirc
The cell server omnirc file
Run debugs on the cell server or on a specific client
OB2DBG=1-500 MA.txt 'BMA@dpsupport.hp.com,UMA@dpsupport.hp.com'
The client omnirc file
When a program starts it will always verify is a omnirc variable is set locally.
Run debugs only locally on the client
OB2DBG=1-500 bma.txt 'BMA,UMA'
Note: always restart the dataprotector inet service omniInet when removing the OB2DBG variable.
Debug options
The options are always a combination of
Almost all Data Protector commands can be started with an additional -debug
parameter that has the following syntax:
-debug 1-500[,C:n][,T:s][,U] XYZ [host]
where:
Range
Examples:
When setting a large range the debug files will be large. Make sure there is enough space in the
debug files repository.
The range can be split. The separator can be a , or a space within a double quoted string.
Valid ranges are:
-debug "1-99 104-140" debug.txt
-debug "1-99,104-140" debug.txt
-debug 1-99,104-140 debug.txt
Range 11, range 30 and 31, range 60 up to 63 and range 131.
OB2DBG=11,30-32,60-64,131,C:1000000 scsi.txt 'BMA'
One single range, 240
OB2DBG=240 cell_info.txt 'VEPA_BAR'
Circular debugs
C:n limits the size of debug files to n kilobytes. The minimum value is 4 (4kB) and the
default value is 1024 (1 MB).
Examples:
Select a range and make it circular
11,30-32,60-64,131,C:1000000
OB2DBG=1-99,C:2000000 MA.txt
'BMA@dpsupport.hp.com,UMA@dpsupport.hp.com'
ranges=1-500,C:100000
here the circular debug is for 100000 kBytes
Note: One Gigabyte is 1024*1024=1048576 kBytes.
In the trace file
ranges=1-500,C:2000000
postfix=BMA.txt
select=BMA@system.domain
Note: Only use circular debugs if you have limited space.
T:s is the timestamp resolution, accepted values are 0,1 and 1000, where the default
value is 1, 1000 means the resolution is one millisecond and 0 means timestamps are
turned off.
Examples:
OB2DBG=11,30-32,60-64,131,C:1000000,T:1000 scsi.txt 'BMA'
The timestamp will have a 3 digit postfix with milliseconds. 2012-04-09 10:39:03.054
U is the Unicode flag. If it is specified, the debug files on Windows are written in the
Unicode format.
Examples:
OB2DBG=11,30-32,60-64,131,C:1000000,T:1000,U scsi.txt 'BMA'
Postfix
Note: the postfix can be used to redirect the debug files to another directory. The destination directory
must exist and the permissions to the full path need to be correct for the process writing the debugs.
Examples:
In the Cell Server omnirc, create BMA debug files on all MA gent
OB2DBG=11,30-32,60-64,131 bma.txt 'BMA'
In the Cell Server omnirc, create BMA and UMA debug files on dpsupport.hp.com only
OB2DBG=1-99,C:2000000 MA.txt
'BMA@dpsupport.hp.com,UMA@dpsupport.hp.com'
In the client omnirc,e.g. create only VEPA debugs on the backup host
OB2DBG=1-199,240 VEPA.txt
VEPA_BAR,VEPALIB_VMWARE_EXECUTION_THREAD,VEPALIB_VMWARE,VEPALIB_VMWARE_THR
EAD
Special debugs
Inet debugs
On Windows host:
Check for the omniInet service
Stop the service and enter start parameters debug 1-500 inet.txt
Select start
Note this is a non-persistent setting and is removed with the next omniinet startup.
On UNIX host
Edit the /etc/inetd.conf file:
Modify inet with the debug option
omni stream tcp6 nowait root /opt/omni/lbin/inet inet log
/var/opt/omni/log/inet.log -debug 1-500 inet.txt
Save the file and run the /etc/inetd -c command to apply the changes.
Note that this change is persistent.
On Linux host
Go to
/etc/xinetd.d
Edit omni
server_args = inet -log /var/opt/omni/log/inet.log -debug 1-500
inet.txt
Reload services
/etc/init.d/xinetd reload
Restart services
/etc/init.d/xinetd restart
Note that this change is persistent.
On Unix/Linux CS
For HP-UX, first terminate the CRS using the command:
/opt/omni/lbin/crs -shutdown
Omnitrig debugs
On Windows
Omnitrig is running as a part of CRS service. For testing and support purpose it can be started manually
as any ordinary command from the command line:
Omnitrig -debug 1-500 DBG
On Unix/Linux
Omnitrig is the following line into the crontab:
0,15,30,45 * * * * /opt/omni/sbin/omnitrig
If the line is changed into something like this:
0,15,30,45 * * * * /opt/omni/sbin/omnitrig -debug 1-500 omnitrig.txt
The following sequence of commands will do:
$ crontab -l > FILE
$ vi FILE
$ crontab FILE
11
Create a VEAgent backup host omnirc file or add the following line:
OB2DBG=1-199,240 VM.txt
"VEPA_BAR,VEPALIB_VMWARE_EXECUTION_THREAD,VEPALIB_VMWARE,VEPALIB_VMWARE_THR
EAD"
The range 1-199 is sufficient; the 240 range is adding the omni_cell content in the vepa_bar debug file.
If networking details are needed use the following range 0-199,240-270
hostd
o
o
vpxa
o
o
This article provides steps to increase the size and number of the hostd, vpxa, and vpxd logs so that
additional data is saved. This data may be useful for troubleshooting purposes.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004795
13
Administration > vCenter Server Settings > Logging Options > Trivia for vCenter
Server 4.x/5.x
15
#define DBG_MA_OPTIONS
#define DBG_MA_NETINIT
2
3
#define DBG_MA_LIBDEV
#define DBG_MA_LIBSCSI
#define DBG_MA_AUX
61
62
63
#define
#define
#define
#define
#define
DBG_MA_WORK
DBG_MA_WORK_LOW
DBG_MA_CATALOG
DBG_MA_LIBPOL
DBG_MA_LIBMH
31
131
32
33
34
#define
#define
#define
#define
DBG_MA_STATES
11
DBG_MA_CONSOLIDATE 12
DBG_MA_CONSOLIDATE_LOW 112
DBG_MA_CONSOLIDATE_LOW_LOW 212
#define DBG_MA_CONMSG
#define DBG_MA_NETMSG
#define DBG_MA_NETEVENT
21
22
23
#define DBG_MA_LIBCTRL
51
#define DBG_MA_UTIL
71
#define DBG_MA_UTIL_SIMULATE 72
#define DBG_MA_UTIL_SIMULATE_LOW 172
#define DBG_MA_SCSITAB_ERR
#define DBG_MA_SCSITAB
78
207
#define
#define
#define
#define
47
147
247
347
DBG_FTS
DBG_FTS_LOW
DBG_FTS_LOWLOW
DBG_FTS_HASHTABLES
Minimum data
All RDS* files from C:\ProgramData\OmniBack\db40\datafiles\catlog\
C:\ProgramData\OmniBack\Config\Server\Options\global
omnicheck -patches > patchDP_check.txt
C:\ProgramData\OmniBack\log\debug.log
Further Usual Data
The data listed in the "Minimum data" section +...
C:\ProgramData\OmniBack\log\server\log\Check_* log files
C:\ProgramData\OmniBack\db40\datafiles\catlog\rdmserver.ini
C:\ProgramData\OmniBack\log\server\log\HealthCheck.log file
C:\ProgramData\OmniBack\omnirc file (if it exists)
C:\ProgramData\OmniBack\Config\Server\Options\trace file
C:\ProgramData\OmniBack\log\inet_tail.log file
omnicc -ver > omnicc_ver.txt
omnidbutil -info > omnidbutil_info.txt
omnidbutil -extendinfo > omnidbutil_extendinfo.txt
omnidbutil -list_large_directories 100000 > /list_dirs_100000.txt
***
C:\ProgramData\OmniBack\Config\Server\cell\cell_info file
omnirpt -report db_purge_preview > purge_preview.txt
***
/opt/omni/sbin/utilns/get_info > get_info_op.txt
***
Copy of the contents of dirs...
C:\ProgramData\OmniBack\Config\Server\rptgroups
C:\ProgramData\OmniBack\Config\Server\rptschedules
dir listing of directory
C:\ProgramData\OmniBack\tmp
dir listing of directory
C:\ProgramData\OmniBack\DB40
If DP 6.2x please also collect
omnicc -encryption -status all > omnicc_encry_status_all.txt
If the server is Windows 2003, the boot.ini file.
The System and Event log files in text format.
Extra Data that may reduce the chance that we will ask for more.
The data listed in the "Minimum data" and "Further Usual Data" sections above.
omnidb -sess -last 20 > omnidb_sess_last_20.txt
omnidownload -list_libraries > list_libs.txt
omnidownload -list_devices > list_devs.txt
omnidownload -list_devices -detail > list_devs_det.txt
omnidownload -list_libraries -detail > list_libs_det.txt
omnicellinfo -schinfo > omnicellinfo_schinfo.txt`
omnidbutil -list_dcdirs > list_dcdirs.txt`
omnidbutil -list_large_directories 500000 -top 50 -detail >
list_dirs_500000.txt
***
If a process is crashing, sometimes it will be necessary to enable Dr. Watson logging and
supply Dr. Watson logs of the failing process.
*** Note: These commands can put a load on DP, best run when cell is quiet.
List the exact steps the customer performed which produced the undesired result. For
example, specify the exact command, what buttons were selected in the GUI, and what
was entered in any of the GUI fields.
Specify what has changed in the environment that could have caused the problem.
Collect Debugs
Verify the latest Disk Agent, Media Agent and Core binaries have been properly installed
on the problematic client. A patch list is welcome.
Isolate the problem to as small of an area as possible. For example, if multiple hosts are
involved in the issue, isolate the issue to a single host. If multiple volumes are involved,
isolate the issue to a single volume. If multiple files are involved, isolate the issue to a
single file.
Collect the debugs logs from the Cell Manager, Media Agent client(s) and problematic
Disk Agent client(s).
Verify the debug files are complete. The set will need to include disk agent, media agent,
Session Manager (BSM, RSM, CSM & MSM), debug.log from each host and complete
session report.
Verify the debugs were created for the correct debug range.
Verify the Disk Agent debugs are from the latest binary.
From the command line use the command omnidb and direct the output of the session
report which matches the debugs to a file named session.out. This will be an ascii text file.
Note: Do not convert this file to a different file format.
Collect session.out.
Verify session.out has captured the issue which the WTEC case is opened for.
Verify timestamps in the session report match the timestamps of the debugs logs.
Use session.out to verify that debugs for every host reported has been accounted for.
Windows System: drwtsn32.log, System & Application Event Logs Note: Windows
Event logs must be saved as text files only. Do not supply .EVT formatted event logs.
Novell Netware: Config .txt file and Abend log file if the issue is for a Novell Netware
abend.
Here are examples on Windows besides volumes as C:,D:,E:.. we have also /CONFIGURATION.
In quick mode, without reading data:
vbda -vol /CONFIGURATION -profile -preview
In physical reading mode:
vbda -vol /CONFIGURATION -profile -out nul
In debug mode:
vbda -vol /CONFIGURATION -profile -out nul -debug 1-200 out.txt
In debug with reporting:
vbda -vol /CONFIGURATION -profile -report 0 -out nul -debug 1-200
out.txt