{"id":6707,"date":"2025-02-26T14:56:47","date_gmt":"2025-02-26T22:56:47","guid":{"rendered":"https:\/\/jetstreamsoft.com\/portal\/?post_type=ht_kb&#038;p=6707"},"modified":"2025-02-27T16:08:57","modified_gmt":"2025-02-28T00:08:57","slug":"collecting-a-drva-core-dump","status":"publish","type":"ht_kb","link":"https:\/\/jetstreamsoft.com\/portal\/jetstream-knowledge-base\/collecting-a-drva-core-dump\/","title":{"rendered":"Collecting a DRVA Core Dump"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"Generate-the-Core-Dump\">Generate the Core Dump<\/h2>\n\n\n\n<p class=\"\">A core dump is an invaluable tool for troubleshooting DRVA issues. Typically, when a DRVA VM crashes a core dump will automatically be generated. However, this may not occur in all cases and a core dump will then need to be manually collected.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Connect to the DRVA VM console (via SSH or Web console).<\/li>\n\n\n\n<li class=\"\">Perform the following steps in sequence:<\/li>\n<\/ul>\n\n\n\n<p class=\"\">1. Log into the DRVA console as <em>admin<\/em> user.<\/p>\n\n\n\n<p class=\"\">2. Change permission of <kbd>\/tmp<\/kbd> directory using the command: <kbd><strong>sudo chmod 777 \/tmp<\/strong><\/kbd><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Validate the permission with the command: <kbd><strong>ls -l<\/strong><\/kbd><\/li>\n<\/ul>\n\n\n\n<p class=\"\">3. Disable enforcement mode using the command: <kbd><strong>sudo setenforce 0<\/strong><\/kbd><\/p>\n\n\n\n<p class=\"\">4. Disable watchdog (to avoid the DRVA automatically being rebooted by watchdog) using the command:<br><kbd><strong>sudo systemctl stop watchdog<\/strong><\/kbd><\/p>\n\n\n\n<p class=\"\">5. Execute the command: <kbd><strong>echo 2 | sudo tee \/proc\/sys\/fs\/suid_dumpable<\/strong><\/kbd><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"784\" height=\"67\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen1.png\" alt=\"\" class=\"wp-image-6708\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen1.png 784w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen1-300x26.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen1-768x66.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen1-50x4.png 50w\" sizes=\"(max-width: 784px) 100vw, 784px\" \/><\/figure>\n\n\n\n<p class=\"\">6. Execute the command:<br><kbd><strong>echo \"|\/bin\/lz4 -z -6 - \/tmp\/core-%t-pid%p-sig%s.lz4\" | sudo tee \/proc\/sys\/kernel\/core_pattern<\/strong><\/kbd><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"1000\" height=\"90\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen2.png\" alt=\"\" class=\"wp-image-6709\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen2.png 1000w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen2-300x27.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen2-768x69.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen2-50x5.png 50w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"\">7. Execute the command: <kbd><strong>sudo kill -6 $(pidof drva_prog)<\/strong><\/kbd><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">The DRVA service should restart and a core dump will be generated and placed in the <kbd>\/tmp<\/kbd> directory.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"600\" height=\"98\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen3-1.png\" alt=\"\" class=\"wp-image-6711\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen3-1.png 600w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen3-1-300x49.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen3-1-50x8.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"\">8. Restart enforcement mode using the command: <kbd><strong>sudo setenforce 1<\/strong><\/kbd>&nbsp;<\/p>\n\n\n\n<p class=\"\">9. Restart watchdog using the command: <kbd><strong>sudo systemctl start watchdog<\/strong><\/kbd><\/p>\n\n\n\n<p class=\"\">10. If necessary, the output <kbd>.lz4<\/kbd> file can be compressed with the command: <kbd><strong>xz -T0 -4 -v &lt;core file.lz4&gt;<\/strong><\/kbd><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Transfer the Core Dump from the DRVA<\/h2>\n\n\n\n<p class=\"\">The generated core dump is not part of the <a href=\"https:\/\/jetstreamsoft.com\/portal\/jetstream-knowledge-base\/collect-support-logs\/\">MSA Support Bundle<\/a> and must be transferred to the MSA with SCP.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">The SCP command should be run on the DRVA from where the core is collected:<br><kbd><strong>scp &lt;path of the source file&gt; &lt;username@Destination IP\/FQDN&gt;: &lt;path of destination directory&gt;<\/strong><\/kbd><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"126\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen4.png\" alt=\"\" class=\"wp-image-6720\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen4.png 850w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen4-300x44.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen4-768x114.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen4-50x7.png 50w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><figcaption class=\"wp-element-caption\"><em>Example: scp \/tmp\/core-1712219004-pid46153-sig6.lz4 root@10.40.4.2:\/tmp<\/em><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">In the above scenario, the core dump file <kbd>core-1712219004-pid46153-sig6.lz4<\/kbd> is located in the <kbd>\/tmp<\/kbd> directory on the DRVA (source).<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\"><kbd>root@10.40.4.2<\/kbd> corresponds to the root user on the MSA (destination).\n<ul class=\"wp-block-list\">\n<li class=\"\">The core dump file will be transferred into the <kbd>\/tmp<\/kbd> directory of the MSA.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"248\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen5.png\" alt=\"\" class=\"wp-image-6722\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen5.png 600w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen5-300x124.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen5-50x21.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption class=\"wp-element-caption\"><em>Core dump copied to <kbd>\/tmp<\/kbd>.<\/em><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">After the core dump has been transferred to the MSA, it can be further copied to the local machine or transmitted to the support team.<\/li>\n<\/ul>\n\n\n\n<p class=\"is-style-info wp-block-ht-blocks-messages aligncenter wp-block-hb-message wp-block-hb-message--withicon\"><strong>Note<\/strong>: When using SCP, core dump files can be directed to the destination directory on the MSA where JetStream DR support bundle logs are collected: <kbd>\/var\/lib\/vme2\/logs\/drva<\/kbd>.<br><br>For example:<br><kbd><strong>scp \/tmp\/core-1712219004-pid46153-sig6.lz4 root@10.40.4.2:\/var\/lib\/vme2\/logs\/drva<\/strong><\/kbd><br><br>In this case, a generated MSA support bundle will also contain the core dump thus eleminating the additional step to transfer it separately.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"211\" class=\"wp-image-6723\" style=\"width: 878px;\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen6.png\" alt=\"\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen6.png 878w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen6-300x72.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen6-768x185.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/screen6-50x12.png 50w\" sizes=\"(max-width: 878px) 100vw, 878px\" \/><br><em>Core dump copied into the support bundle.<\/em><\/p>\n\n\n\n<p class=\"is-style-alert wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">If using SCP to direct the core dump into the support bundle, be sure to verify the core dump is successfully copied; otherwise, it must be manually transferred from the DRVA as described above.<\/p>\n\n\n\n<p class=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generate the Core Dump A core dump is an invaluable tool for troubleshooting DRVA issues. Typically, when a DRVA VM crashes a core dump will automatically be generated. However, this may not occur in all cases and a core dump will then need to be manually collected. 1. Log into the DRVA console as admin [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"ht-kb-category":[245],"ht-kb-tag":[206],"class_list":["post-6707","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-how-to","ht_kb_tag-drva-appliance"],"_links":{"self":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/6707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/comments?post=6707"}],"version-history":[{"count":14,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/6707\/revisions"}],"predecessor-version":[{"id":6732,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/6707\/revisions\/6732"}],"wp:attachment":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/media?parent=6707"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-category?post=6707"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-tag?post=6707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}