{"id":5594,"date":"2020-09-27T21:08:25","date_gmt":"2020-09-27T19:08:25","guid":{"rendered":"https:\/\/tekmart.co.za\/t-blog\/?p=5594"},"modified":"2020-09-27T21:09:52","modified_gmt":"2020-09-27T19:09:52","slug":"how-to-troubleshoot-unexpected-esxi-host-reboots-using-crash-logs","status":"publish","type":"post","link":"https:\/\/tekmart.co.za\/t-blog\/how-to-troubleshoot-unexpected-esxi-host-reboots-using-crash-logs\/","title":{"rendered":"How to troubleshoot unexpected ESXi host reboots using crash logs"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<h2 class=\"wp-block-heading\"><strong>When your ESXi host abruptly reboots, you can use logs to track the potential causes, whether they are planned, environmental or hardware-related.<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineImages\/seget_vladan.jpg\" alt=\"Vladan Seget\"\/><\/figure>\n\n\n\n<p>By <a href=\"https:\/\/www.techtarget.com\/contributor\/Vladan-Seget\">Vladan Seget<\/a><\/p>\n\n\n\n<p>Sometimes an ESXi host reboots unexpectedly, often during a power outage if the uninterrupted power supply doesn&#8217;t last, but sometimes as a result of a core dump or faulty hardware.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>This can cause your ESXi host log to end abruptly and then restart. If you were off site during the failure and reboot process, check for UPS failure when you return, then look to your environment for clues.<\/p><\/blockquote>\n\n\n\n<p>Troubleshooting with inconsistent ESXi&nbsp;host logs across reboots creates challenges. If you redirect your ESXi host logs to a shared data store or an external software application, such as&nbsp;VMware vRealize Log Insight, you can&nbsp;avoid such trouble.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Search for redirected log files<\/strong><\/h3>\n\n\n\n<p>You can check for redirected logs in your web browser by connecting to either the&nbsp;vSphere Web Client&nbsp;or the Host Client for unmanaged hosts.<\/p>\n\n\n\n<p>Select your host. Under the Configure tab, select System, and then Advanced System Settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_ESXi_Dump_Partition_List.jpg\" alt=\"\"\/><figcaption><strong>Figure A. Use the Advanced System Settings menu to check if your ESXi logs were redirected.<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Once you determine whether your ESXi host logs were redirected, you can check whether the host restarted intentionally. Look in the&nbsp;\/var\/log\/hostd.log directory. Certain results indicate a&nbsp;deliberate reboot, such as the following:<\/p>\n\n\n\n<p>Hostd: [12:51:54.284 27D13B90 info &#8216;TaskManager&#8217;] Task Created : haTask-ha-host-vim.HostSystem.reboot-50<\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><strong>DCUI: reboot<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Was there a core dump?<\/strong><\/h2>\n\n\n\n<p>A VM can sometimes generate a&nbsp;core dump. You can check if you have the required partition available for a core dump through the Direct Console User Interface, either at the console in the server room or via the Intelligent Platform Management Interface.<\/p>\n\n\n\n<p>You can also check by using a&nbsp;Secure Shell (SSH)&nbsp;client, such as PuTTY, to connect remotely to vCenter or your ESXi host. You must first configure SSH access to your ESXi host.<\/p>\n\n\n\n<p>To list partitions available for core dump, enter the&nbsp;esxcfg-dumppart -l&nbsp;command at the command prompt.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_check_if_logs_redirected.jpg\" alt=\"\"\/><figcaption><strong>Figure B. Access a list of ESXi dump partitions by entering a command into an SSH client, such as PuTTY.<\/strong><\/figcaption><\/figure>\n\n\n\n<p>To activate or deactivate core dump partitions, enter the&nbsp;Esxcfg-dumppart -h&nbsp;command.<\/p>\n\n\n\n<p>ESXi hosts don&#8217;t automatically collect core dumps. To&nbsp;collect the core dump, you must manually run the&nbsp;<strong>esxcfg-dumppart<\/strong>&nbsp;command with an option that works for your environment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Check ESXi automatic reboot configuration<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>If your ESXi host experiences an outage as a result of something other than a kernel error, a human reboot or an intentional shutdown, the physical hardware might have caused it.<\/p><\/blockquote>\n\n\n\n<p>Execute this command to check if ESXi is configured to automatically reboot after a Purple Screen of Death (PSOD):<\/p>\n\n\n\n<p><strong>esxcfg-advcfg -g \/Misc\/BlueScreenTimeout<\/strong><\/p>\n\n\n\n<p>If the value listed is anything other than 0, then ESXi automatically reboots after the PSOD. If the output is 0, the system is configured to wait for you to manually restart the host.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Power outages or faulty hardware<\/strong><\/h3>\n\n\n\n<p>If your ESXi host experiences an outage as a result of something other than a&nbsp;kernel error, a human reboot or an intentional shutdown, the&nbsp;hardware might have caused it. Hardware sometimes causes an ESXi host to reboot unexpectedly due to a faulty component, a heating problem &#8212; such as an air conditioning failure &#8212; or a power outage in the data center.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/www.techtarget.com\/contributor\/Vladan-Seget\"><\/a><a href=\"https:\/\/www.techtarget.com\/contributor\/Vladan-Seget\">Vladan Seget<\/a>&nbsp;asks:<\/p><p>What are other ways to use ESXi host logs?<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/searchvmware.techtarget.com\/tip\/Use-ESXi-host-logs-to-troubleshoot-an-unexpected-reboot#commenting\"><strong>Join the Discussion<\/strong><\/a><\/h2>\n\n\n\n<p>If you work in a location where the power often fails, you might consider investing in UPS protection, a generator or solar-powered battery backup in case of long-term power failures.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>When your ESXi host abruptly reboots, you can use logs to track the potential causes, whether they are planned, environmental or hardware-related. By Vladan Seget Sometimes an ESXi host reboots unexpectedly, often during a power outage if the uninterrupted power supply doesn&#8217;t last, but sometimes as a result of a core dump or faulty hardware. This can cause your ESXi<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/tekmart.co.za\/t-blog\/how-to-troubleshoot-unexpected-esxi-host-reboots-using-crash-logs\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,30,3,95,52,105],"tags":[],"class_list":["post-5594","post","type-post","status-publish","format-standard","hentry","category-datacenter-news","category-engage-the-experts","category-expert-advise-and-opinion","category-industry-news-and-expert-advise","category-timeless-tips","category-vmware-esx-and-esxi-administration","category-vmware-products"],"_links":{"self":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/5594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/comments?post=5594"}],"version-history":[{"count":2,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/5594\/revisions"}],"predecessor-version":[{"id":5596,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/5594\/revisions\/5596"}],"wp:attachment":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/media?parent=5594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/categories?post=5594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/tags?post=5594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}