HANA File System & logs, traces files locations

 File system:



Logs & traces are written to location :[ /usr/sap/< SID >/HDB< Instance number >/< hostname >/trace ]

Tenant db logs under /trace/DB_SID directories
Examples :

faxadm@linux07:/home/faxadm> cdtrace
#--- show tenant database trace and log directories

faxadm@linux07:/usr/sap/FAX/HDB07/linux07/trace> ls -lrt -d */
drwxr-x--x 2 faxadm sapsys 4096 Jul 16 23:35 DB_DHW/
drwxr-x--x 2 faxadm sapsys 4096 Oct 17 12:08 DB_CRD/
drwxr-x--x 2 faxadm sapsys 4096 Oct 20 13:00 DB_LTS/
drwxr-x--x 2 faxadm sapsys 4096 Oct 27 11:48 DB_LBW/
#--- show systemdb log file names

faxadm@linux07:/usr/sap/FAX/HDB07/linux07/trace> ls -lrt *.log
-rw-r----- 1 faxadm sapsys 1293 Jul 18 13:33 sapstartsrv.log
-rw-r--r-- 1 faxadm sapsys 2841 Jul 18 13:33 sapstart.log
-rw-r----- 1 faxadm sapsys 1108 Oct 27 08:36 backintcheck.log
-rw-r----- 1 faxadm sapsys 2506 Oct 31 14:58 backupcheck.log
-rw-r--r-- 1 faxadm sapsys 1780 Dec 5 00:27 sldreg.log
-rw-r----- 1 faxadm sapsys 89426300 Dec 5 10:53 backup.log
-rw-r----- 1 faxadm sapsys 61914996 Dec 5 10:53 backint.log
#--- show systemdb tracefile names
faxadm@linux07:/usr/sap/FAX/HDB07/linux07/trace> ls -lrt *.trc
-rw-r----- 1 faxadm sapsys 1686 Dec 1 11:45 compileserver_alert_linux07.trc
-rw-r----- 1 faxadm sapsys 2162736 Dec 1 11:45 preprocessor_alert_linux07.trc
-rw-r----- 1 faxadm sapsys 129606 Dec 1 15:12 webdispatcher_linux07.30206.000.trc
-rw-r----- 1 faxadm sapsys 14414 Dec 1 11:45 webdispatcher_alert_linux07.trc
-rw-r----- 1 faxadm sapsys 10001949 Dec 3 22:28 daemon_linux07.30200.045.trc
-rw-r----- 1 faxadm sapsys 47356805 Dec 5 11:07 nameserver_alert_linux07.trc
-rw-r----- 1 faxadm sapsys 1882466 Dec 5 09:13 nameserver_linux07.30201.loads.001.trc
-rw-r----- 1 faxadm sapsys 2616819 Dec 5 11:08 nameserver_linux07.30201.017.trc
faxadm@linux07:/usr/sap/FAX/HDB07/linux07/trace> cd DB_DHW
-rw-r----- 1 faxadm sapsys 2096522 Dec 5 11:08 daemon_linux07.30200.046.trc
-rw-r--r-- 1 faxadm sapsys 87203331 Dec 5 11:09 nameserver_history.trc
#--- show tenant database trace and logfile names
#--- Go to tenant database trace and log directory

faxadm@linux07:/usr/sap/HAX/HDB02/linux07/trace/DB_BHD> ll
total 318128
-rw-r----- 1 faxadm sapsys 18367837 Dec 4 23:15 backint.log
-rw-r----- 1 faxadm sapsys 17548682 Dec 4 23:15 backup.log
-rw-r----- 1 faxadm sapsys 2283605 Dec 1 11:43 dpserver_alert_linux07.trc
-rw-r----- 1 faxadm sapsys 2797559 Dec 5 04:42 dpserver_linux07.30270.000.trc

Additional:

1. usr/sap/SID/HDB<instance>/exe --> contains processes like hdbnameserver,
hdbindexserver etc.. and python scripts under python_support directory.

2.usr/sap/SID/SYS/global/sapcontrol/snapshots --> contains the fullsysteminfodump
created for troubleshooting using python script fullsysteminfodump.py from python_support.

3.The SAP HANA lifecycle management tools hdblcm and hdblcmgui write log files during installation.
The most recent log file is always available under /var/tmp/hdblcm.log or /var/tmp/hdblcmgui.log.
Additionally, a copy of the log files is archived in the directory hdb_<SID>_hdblcm_<action>_<date>.

/var/tmp/hdb_<SID>_<action>_<time_stamp>

where <action> :: = install | update | addhost | uninstall | and so on

The following log files are written during performing the action:

  • <hdbcommand>.log: can be read using a text editor
  • <hdbcommand>.msg: XML format for the display in the installation tool with the GUI
  • <hostname>_tracediff.tgz: provides a delta analysis of the original trace files, makes a detailed analysis easier

You can also view the last three log files in the SAP HANA studio using the administration function Diagnosis Files. For more information, see the SAP HANA Administration Guide.

4. location of customer-specific configuration files:

Configuration Settings

Location

Global configuration settings

$DIR_INSTANCE/../SYS/global/hdb/custom/config

Database-specific configuration settings

$DIR_INSTANCE/../SYS/global/hdb/custom/config/<database_name>

Comments

Popular Posts

SAP Logon Configuration(Load Balancing)

EHP Upgrade (SUM)

Interview Questions

SNOTE Implementation and FAQ

SAP Startup Troubleshooting

HANA Installation & upgrade

SAP HANA Backup

SAP Transport Management System (STMS)

Set Up SAP HANA System Replication with hdbnsutil

SAP Kernel Upgrade in Distributed System