I have installed ESXI 6.7 on a dell power edge server. One issue that I can't seem to fix is that the host logs are lost after a reboot of the Host. The log files are being stored on scratch location which is on the datastore. I'm really puzzled why the logs are not maintained.
please post the output of the following command
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
I get the following response:
[root@localhost:~] vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLo
cation
(vim.option.OptionValue) [
(vim.option.OptionValue) {
key = "ScratchConfig.ConfiguredScratchLocation",
value = "/vmfs/volumes/5b64d4f2-9377eaa4-2261-90b11c039811"
}
]
..and you can't find any logs there?
ls "/vmfs/volumes/5b64d4f2-9377eaa4-2261-90b11c039811"
from root directory if you type cd /scratch . where it take you to /tmp or to the datastore which is configured
can you post that output
1. cd /scratch
2. pwd
Suresh this is the response that I get:
settings wise I dont see any issues, its very strange that the logs are getting deleted after reboot. Can you try to change the scratch partition location to /tmp and reconfigure again pointing to the datastore , check if that helps if you have not tried already.
Basically i can't get the logs before the system reboot
would you have any guide to follow for changing the scratch partition location ?
So you mean to say , currently the logs are not written on scratch ? then it is a config issue, try to reconfigure , you may follow this article
http://www.vmwarearena.com/how-to-configure-scratch-partition-in-vmware-esxi-using-web-client/
you may also try to restart the syslog service once before changing the settings
https://captainvops.com/2017/02/20/restarting-syslog-service-on-esxi/
when I try the command '# ps -Cc | grep vmsyslogd' and also the local log output parameter is false as can be seen in the screenshot below. I tried the method to restart the syslog service but it didn't help.
I tried to reconfig the scratch location also but still the ESXI host does not save the logs after a reboot. Also the Local log output is configured as false