How to enable core dumps on SMG on SLES appliance

  • 7024776
  • 07-Aug-2020
  • 11-Aug-2020

Environment

GWAVA (Secure Messaging Gateway)

Situation

A module keeps crashing, to find out why it's crashing core dumps needs to be enabled and it needs to be sent to support. How can this be accomplished?

Resolution

To enable core dumps on the SLES appliance, do the following:

1) From a prompt type:

sudo mkdir /vastorage/smg/cores

2) Then type:

sudo cp /proc/sys/kernel/core_pattern ~/core_pattern.org


3) Then type:

sudo echo "/vastorage/smg/cores/core.%e.%p" > /proc/sys/kernel/core_pattern


4) If core dumps occur they will go in the /vastorage/smg/cores directory.This will need to be zipped and sent to support using the following guidelines:

When uploading a file to support's FTP server, the file name must include the SR number. For this command the example SR number is 123456789. Upload it to MF's ftp server by typing:

curl -T /vastorage/smg/123456789.zip ftp://ftp.novell.com/incoming/123456789.zip

After the file has been uploaded, let the support tech know.

It is recommended to disable core dumps after the problem has been resolved. This can be done by copying /proc/sys/kernal/core_pattern.org to /proc/sys/kernal/core_pattern and the cores will stop being created again.