{"id":239508,"date":"2021-08-10T12:46:45","date_gmt":"2021-08-10T19:46:45","guid":{"rendered":"https:\/\/virtual-dba.com\/?p=239508"},"modified":"2021-08-10T12:46:46","modified_gmt":"2021-08-10T19:46:46","slug":"importance-of-etc-hosts-on-db2-systems","status":"publish","type":"post","link":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/","title":{"rendered":"The Importance of \/etc\/hosts on Db2 Systems"},"content":{"rendered":"\n<p>Recently, I was working on a system and noticed some odd behavior \u2013 running a simple db2pd command was taking what felt like a &#8220;long&#8221; time. I used the time utility to validate my impression:<\/p>\n\n\n<pre><code>db2inst1@db2server $ time db2pd -\n \nDatabase Member 0 -- Active -- Up 0 days 21:53:44 -- Date 2021-07-22-11.29.15.283543\n \n\nreal    0m5.560s\nuser    0m0.132s\nsys     0m0.081s\n<\/code><\/pre>\n\n\n<p>A very simple db2pd command should <em>not<\/em> take 5.6 seconds to complete.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-identifying-the-problem\">Identifying the problem<\/h2>\n\n\n\n<p>I considered using the Db2 trace facility to help identify the issue, but on a busy system this could produce a huge amount of output. Instead, since db2pd is a standalone utility, I chose to use the linux strace tool, which displays every system call that an application makes. There are a number of options for displaying the time that each call takes, but I just used the -t option which displays the current time when each call occurs.<\/p>\n\n\n<pre><code>db2inst1@db2server $ strace -t db2pd -\n10:54:59 execve(\"\/home\/db2inst1\/sqllib\/adm\/db2pd\", [\"db2pd\", \"-\"], 0x7ffe8779fe00 \/* 24 vars *\/) = 0\n10:54:59 access(\"\/etc\/suid-debug\", F_OK) = -1 ENOENT (No such file or directory)\n10:54:59 brk(NULL)                      = 0x339d000\n10:54:59 fcntl(0, F_GETFD)              = 0\n10:54:59 fcntl(1, F_GETFD)              = 0\n10:54:59 fcntl(2, F_GETFD)              = 0\n10:54:59 access(\"\/etc\/suid-debug\", F_OK) = -1 ENOENT (No such file or directory)\n10:54:59 access(\"\/etc\/ld.so.nohwcap\", F_OK) = -1 ENOENT (No such file or directory)\n10:54:59 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6284375000\n10:54:59 access(\"\/etc\/ld.so.preload\", R_OK) = -1 ENOENT (No such file or directory)\n10:54:59 openat(AT_FDCWD, \"\/DoNotCreateThisPath_marker1.*chglibpath\/tls\/haswell\/x86_64\/libdb2osse.so.1\", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)\n10:54:59 stat(\"\/DoNotCreateThisPath_marker1.*chglibpath\/tls\/haswell\/x86_64\", 0x7ffcce353200) = -1 ENOENT (No such file or directory)\n10:54:59 openat(AT_FDCWD, \"\/DoNotCreateThisPath_marker1.*chglibpath\/tls\/haswell\/libdb2osse.so.1\", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)\n\n[...]\n<\/code><\/pre>\n\n\n<p>The strace command generates a lot of output when running this simple db2pd command \u2013 over 1750 lines \u2013 so it&#8217;s easiest to redirect the output to a file. It writes the system call information to STDERR, so I redirected STDERR to a file:<\/p>\n\n\n<pre><code>db2inst1@db2server $ strace -t db2pd - 2&gt;strace.out\n\nDatabase Member 0 -- Active -- Up 2 days 23:04:59 -- Date 2021-07-22-10.58.29.257683\n<\/code><\/pre>\n\n\n<p>To find the source of slowness, I looked through the output file, looking for any significant differences between subsequent timestamps.<\/p>\n\n\n<pre><code>db2inst1@db2server $ awk '{print $1}' strace.out | uniq\n12:27:58\n12:27:59\n12:28:00\n12:28:01\n12:28:02\n12:28:03\n12:28:08\n12:28:09\n<\/code><\/pre>\n\n\n<p>In the output above, there was a 5 second period between 12:28:03 and 12:28:08 where no output appeared. Here is an excerpt from the strace output from either side of that time gap:<\/p>\n\n\n<pre><code>12:28:03 recvfrom(9, \"2_\\201\\202\\0\\1\\0\\0\\0\\0\\0\\0\\rdb2server\\0\\0\\1\\0\\1\", 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr(\"10.0.0.27\")}, [28-&gt;16]) = 31\n12:28:03 poll([{fd=9, events=POLLIN}], 1, 5882) = 0 (Timeout)\n12:28:08 close(7)                       = 0\n12:28:08 close(8)                       = 0\n12:28:08 close(9)                       = 0\n<\/code><\/pre>\n\n\n<p>The last call before the time call was a call to poll(), which is waiting for input from file descriptor 9 (fd=9). The (Timeout) at the end of the line indicates that the call to poll() eventually timed out (after 5 seconds) \u2013 this timeout is the source of the delay.<\/p>\n\n\n\n<p>To determine what happened, we need to understand what file descriptor 9 is. Searching backwards through the strace output reveals:<\/p>\n\n\n<pre><code>12:28:02 socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 9\n12:28:02 setsockopt(9, SOL_IP, IP_RECVERR, [1], 4) = 0\n12:28:02 connect(9, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr(\"10.0.0.27\")}, 16) = 0\n<\/code><\/pre>\n\n\n<p>The socket() call returns 9 (the file descriptor for the socket), and the connect() call reveals that the process is opening a connection to the IP address 10.0.0.27, port 53. <\/p>\n\n\n\n<p>Port 53 is used for DNS lookups (as can be seen in \/etc\/services) \u2013 so we know that a DNS query was timing out. The recvfrom() call at 12:28:03 (just prior to the poll() call) indicates that the DNS search was for &#8220;db2server&#8221; \u2013 which is the hostname of the Db2 server!<\/p>\n\n\n\n<p>The nslookup command can be used to see what DNS knows:<\/p>\n\n\n<pre><code>db2inst1@db2server $ nslookup db2server\n;; Got SERVFAIL reply from 10.1.0.55, trying next server\n;; Got SERVFAIL reply from 10.0.0.203, trying next server\nServer:         10.0.0.27\nAddress:        10.0.0.27#53\n\n** server can't find db2server: SERVFAIL\n<\/code><\/pre>\n\n\n<p>This output shows that nslookup tried all 3 DNS servers, and each failed \u2013 there was no entry in DNS.<\/p>\n\n\n\n<p>However: normally, resolving the local server&#8217;s host name is handled by \/etc\/hosts and <strong>not<\/strong> by DNS; so I looked at \/etc\/nsswitch.conf to make sure that the order is configured properly:<\/p>\n\n\n<pre><code>db2inst1@db2server $ grep 'hosts:' \/etc\/nsswitch.conf \nhosts:      files dns myhostname\n<\/code><\/pre>\n\n\n<p>This looks correct: hostname lookups will first use local files (\/etc\/hosts), and then resort to DNS.<\/p>\n\n\n\n<p>Knowing this, it&#8217;s clear that there is no entry in \/etc\/hosts for the local hostname, and that is the reason why db2pd is querying DNS, the source of the problem.<\/p>\n\n\n\n<p>After adding an entry for the local server to \/etc\/hosts, db2pd was running with a normal response time:<\/p>\n\n\n<pre><code>db2inst1@db2server $ time db2pd -\n\nDatabase Member 0 -- Active -- Up 0 days 21:53:44 -- Date 2021-07-22-11.29.15.283543\n\n\nreal    0m0.184s\nuser    0m0.119s\nsys     0m0.061s\n<\/code><\/pre>\n\n\n<p>Even on systems that do not use multiple servers (i.e., DPF or pureScale), it&#8217;s still critical to have proper entries in the \/etc\/hosts file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I was working on a system and noticed some odd behavior \u2013 running a simple db2pd command was taking what felt like a &#8220;long&#8221; time. I used the time utility to validate my impression: db2inst1@db2server $ time db2pd &#8211; Database Member 0 &#8212; Active &#8212; Up 0 days 21:53:44 &#8212; Date 2021-07-22-11.29.15.283543 real 0m5.560s [&hellip;]<\/p>\n","protected":false},"author":37,"featured_media":239513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[4166,17],"tags":[4141],"class_list":["post-239508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-db2","tag-db2-performance-tuning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>The Importance of \/etc\/hosts on Db2 Systems<\/title>\n<meta name=\"description\" content=\"If running a simple db2pd command is taking a long time, this article can help! Let&#039;s look at a db2pd performance \/etc\/hosts strace diagnosis.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Importance of \/etc\/hosts on Db2 Systems\" \/>\n<meta property=\"og:description\" content=\"If running a simple db2pd command is taking a long time, this article can help! Let&#039;s look at a db2pd performance \/etc\/hosts strace diagnosis.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-10T19:46:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-10T19:46:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtual-dba.com\/media\/The-Importance-of-etchosts-on-Db2-Systems.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"557\" \/>\n\t<meta property=\"og:image:height\" content=\"291\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ian Bjorhovde\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:site\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ian Bjorhovde\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\"},\"author\":{\"name\":\"Ian Bjorhovde\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/41ede0f1650b7e1a615651a12839b22c\"},\"headline\":\"The Importance of \/etc\/hosts on Db2 Systems\",\"datePublished\":\"2021-08-10T19:46:45+00:00\",\"dateModified\":\"2021-08-10T19:46:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\"},\"wordCount\":535,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg\",\"keywords\":[\"db2 performance tuning\"],\"articleSection\":[\"Blog\",\"Db2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\",\"url\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\",\"name\":\"The Importance of \/etc\/hosts on Db2 Systems\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg\",\"datePublished\":\"2021-08-10T19:46:45+00:00\",\"dateModified\":\"2021-08-10T19:46:46+00:00\",\"description\":\"If running a simple db2pd command is taking a long time, this article can help! Let's look at a db2pd performance \/etc\/hosts strace diagnosis.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg\",\"width\":557,\"height\":291,\"caption\":\"Image The Importance of etc hosts on Db2 Systems\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtual-dba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Importance of \/etc\/hosts on Db2 Systems\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtual-dba.com\/#website\",\"url\":\"https:\/\/virtual-dba.com\/\",\"name\":\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\",\"description\":\"Remote Database Administration\",\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtual-dba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/virtual-dba.com\/#organization\",\"name\":\"Virtual-DBA: Remote DBA | Remote Database Administration\",\"alternateName\":\"Virtual-DBA powered by XTIVIA\",\"url\":\"https:\/\/virtual-dba.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"width\":557,\"height\":291,\"caption\":\"Virtual-DBA: Remote DBA | Remote Database Administration\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/virtual_dba\",\"https:\/\/www.linkedin.com\/showcase\/36220649\/\",\"https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg\"],\"description\":\"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.\",\"email\":\"info@xtivia.com\",\"telephone\":\"8886853101\",\"legalName\":\"XTIVIA, Inc\",\"foundingDate\":\"1992-05-01\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"201\",\"maxValue\":\"500\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/41ede0f1650b7e1a615651a12839b22c\",\"name\":\"Ian Bjorhovde\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46a4ddbb91d9fda0f05b16d509c4d3f3212651af4bdb44db9aeef6197bee5c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/46a4ddbb91d9fda0f05b16d509c4d3f3212651af4bdb44db9aeef6197bee5c6f?s=96&d=mm&r=g\",\"caption\":\"Ian Bjorhovde\"},\"url\":\"https:\/\/virtual-dba.com\/author\/ian-bjorhovde\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"The Importance of \/etc\/hosts on Db2 Systems","description":"If running a simple db2pd command is taking a long time, this article can help! Let's look at a db2pd performance \/etc\/hosts strace diagnosis.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/","og_locale":"en_US","og_type":"article","og_title":"The Importance of \/etc\/hosts on Db2 Systems","og_description":"If running a simple db2pd command is taking a long time, this article can help! Let's look at a db2pd performance \/etc\/hosts strace diagnosis.","og_url":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/","og_site_name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","article_published_time":"2021-08-10T19:46:45+00:00","article_modified_time":"2021-08-10T19:46:46+00:00","og_image":[{"width":557,"height":291,"url":"https:\/\/virtual-dba.com\/media\/The-Importance-of-etchosts-on-Db2-Systems.jpg","type":"image\/jpeg"}],"author":"Ian Bjorhovde","twitter_card":"summary_large_image","twitter_creator":"@virtual_dba","twitter_site":"@virtual_dba","twitter_misc":{"Written by":"Ian Bjorhovde","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#article","isPartOf":{"@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/"},"author":{"name":"Ian Bjorhovde","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/41ede0f1650b7e1a615651a12839b22c"},"headline":"The Importance of \/etc\/hosts on Db2 Systems","datePublished":"2021-08-10T19:46:45+00:00","dateModified":"2021-08-10T19:46:46+00:00","mainEntityOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/"},"wordCount":535,"commentCount":0,"publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg","keywords":["db2 performance tuning"],"articleSection":["Blog","Db2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/","url":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/","name":"The Importance of \/etc\/hosts on Db2 Systems","isPartOf":{"@id":"https:\/\/virtual-dba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg","datePublished":"2021-08-10T19:46:45+00:00","dateModified":"2021-08-10T19:46:46+00:00","description":"If running a simple db2pd command is taking a long time, this article can help! Let's look at a db2pd performance \/etc\/hosts strace diagnosis.","breadcrumb":{"@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#primaryimage","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/The-Importance-of-etchosts-on-Db2-Systems.jpg","width":557,"height":291,"caption":"Image The Importance of etc hosts on Db2 Systems"},{"@type":"BreadcrumbList","@id":"https:\/\/virtual-dba.com\/blog\/importance-of-etc-hosts-on-db2-systems\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtual-dba.com\/"},{"@type":"ListItem","position":2,"name":"The Importance of \/etc\/hosts on Db2 Systems"}]},{"@type":"WebSite","@id":"https:\/\/virtual-dba.com\/#website","url":"https:\/\/virtual-dba.com\/","name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","description":"Remote Database Administration","publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtual-dba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/virtual-dba.com\/#organization","name":"Virtual-DBA: Remote DBA | Remote Database Administration","alternateName":"Virtual-DBA powered by XTIVIA","url":"https:\/\/virtual-dba.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","width":557,"height":291,"caption":"Virtual-DBA: Remote DBA | Remote Database Administration"},"image":{"@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/virtual_dba","https:\/\/www.linkedin.com\/showcase\/36220649\/","https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg"],"description":"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.","email":"info@xtivia.com","telephone":"8886853101","legalName":"XTIVIA, Inc","foundingDate":"1992-05-01","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"201","maxValue":"500"}},{"@type":"Person","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/41ede0f1650b7e1a615651a12839b22c","name":"Ian Bjorhovde","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46a4ddbb91d9fda0f05b16d509c4d3f3212651af4bdb44db9aeef6197bee5c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/46a4ddbb91d9fda0f05b16d509c4d3f3212651af4bdb44db9aeef6197bee5c6f?s=96&d=mm&r=g","caption":"Ian Bjorhovde"},"url":"https:\/\/virtual-dba.com\/author\/ian-bjorhovde\/"}]}},"_links":{"self":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/239508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/comments?post=239508"}],"version-history":[{"count":0,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/239508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media\/239513"}],"wp:attachment":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media?parent=239508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/categories?post=239508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/tags?post=239508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}