How do I change the default location where core files are written to in Smarts InCharge?
search cancel

How do I change the default location where core files are written to in Smarts InCharge?

book

Article ID: 303991

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How to have a core file written to a directory other than root.



You will need to edit the ic-serviced script which gets installed into /etc/init.d.  See below for the section of the script that you will need to edit.

# Change this directory as appropriate for your environment.  Core files
# will be written to this directory.  Thus, you should pick a partition with
# sufficient free space.
SM_SERVICE_STARTDIR=/

So if you wanted to have core files written to /var, you would set the value as below.

SM_SERVICE_STARTDIR=/var.

You will need to restart all of your running InCharge processes, including sm_serviced in order for this change to take affect. 
NOTE: Please be sure that sm_serviced is the last process to be shutdown and the first to be restarted so that your sm_serviced.db will have the correct information about all processes started up after the change was made.


Additional Information

To restart sm_serviced, you must run the following commands from /etc/init.d

./ic-servced stop

./ic-serviced start