{"id":390,"date":"2016-09-08T16:10:23","date_gmt":"2016-09-08T16:10:23","guid":{"rendered":"http:\/\/vblog.hochsticher.de\/?p=390"},"modified":"2016-09-09T05:16:50","modified_gmt":"2016-09-09T05:16:50","slug":"how-much-space-does-your-vcenter-db-consume","status":"publish","type":"post","link":"https:\/\/vblog.hochsticher.de\/?p=390","title":{"rendered":"How big is your vCenter DB?"},"content":{"rendered":"<p>I just want to know how much space does your vCenter DB consume and what are your biggest tables?<\/p>\n<p><!--more--><\/p>\n<p>Earlier on my vCenter 5.5\u00a0we had a 90 GB Database. I shrinked it to 40 GB before i started my\u00a0upgrade to vCenter 6.<\/p>\n<p>To my environment:<\/p>\n<ul>\n<li>Windows 2008 R2<\/li>\n<li>MS SQL 2008 R2 Standard<\/li>\n<li>vCenter 6.0 U2 (Upgraded from 5.1 Ux, to 5.5 U1 to 5.5 U3 )<\/li>\n<li>around 900 VMs (700 running)<\/li>\n<li>40 Hosts<\/li>\n<li>Backup every day with Veeam (direct SAN Mode)<\/li>\n<\/ul>\n<p>Now my vCenter DB has 69 GB and <strong>165 GB<\/strong> transaction logs. That sounds huge, isn&#8217;t it? So i talked to\u00a0VMware Support, they gave me some scripts to shrink the Database (those I had already) and said that&#8217;s normal for that environment.<\/p>\n<p><!-- index.php -->\n<div\n\tclass=\"ngg-galleryoverview ngg-ajax-pagination-none\"\n\tid=\"ngg-gallery-403-1\">\n\n    \t<div class=\"slideshowlink\">\n        <a href='https:\/\/vblog.hochsticher.de\/index.php\/nggallery\/slideshow?p=390'>[Show slideshow]<\/a>\n\t\t\n\t<\/div>\n\t\t\t<!-- Thumbnails -->\n\t\t\t\t<div id=\"ngg-image-0\" class=\"ngg-gallery-thumbnail-box\" >\n\t\t\t\t        <div class=\"ngg-gallery-thumbnail\">\n            <a href=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/1.JPG\"\n               title=\"\"\n               data-src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/1.JPG\"\n               data-thumbnail=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/thumbs\/thumbs_1.JPG\"\n               data-image-id=\"45\"\n               data-title=\"1\"\n               data-description=\"\"\n               data-image-slug=\"1\"\n               class=\"ngg-fancybox\" rel=\"403\">\n                <img\n                    title=\"1\"\n                    alt=\"1\"\n                    src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/thumbs\/thumbs_1.JPG\"\n                    width=\"240\"\n                    height=\"160\"\n                    style=\"max-width:100%;\"\n                \/>\n            <\/a>\n        <\/div>\n\t\t\t\t\t\t\t<\/div> \n\t\t\t\n        \n\t\t\t\t<div id=\"ngg-image-1\" class=\"ngg-gallery-thumbnail-box\" >\n\t\t\t\t        <div class=\"ngg-gallery-thumbnail\">\n            <a href=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/2.JPG\"\n               title=\"\"\n               data-src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/2.JPG\"\n               data-thumbnail=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/thumbs\/thumbs_2.JPG\"\n               data-image-id=\"46\"\n               data-title=\"2\"\n               data-description=\"\"\n               data-image-slug=\"2\"\n               class=\"ngg-fancybox\" rel=\"403\">\n                <img\n                    title=\"2\"\n                    alt=\"2\"\n                    src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/thumbs\/thumbs_2.JPG\"\n                    width=\"240\"\n                    height=\"160\"\n                    style=\"max-width:100%;\"\n                \/>\n            <\/a>\n        <\/div>\n\t\t\t\t\t\t\t<\/div> \n\t\t\t\n        \n\t\t\t\t<div id=\"ngg-image-2\" class=\"ngg-gallery-thumbnail-box\" >\n\t\t\t\t        <div class=\"ngg-gallery-thumbnail\">\n            <a href=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/3.JPG\"\n               title=\"\"\n               data-src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/3.JPG\"\n               data-thumbnail=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/thumbs\/thumbs_3.JPG\"\n               data-image-id=\"47\"\n               data-title=\"3\"\n               data-description=\"\"\n               data-image-slug=\"3\"\n               class=\"ngg-fancybox\" rel=\"403\">\n                <img\n                    title=\"3\"\n                    alt=\"3\"\n                    src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/vc-db\/thumbs\/thumbs_3.JPG\"\n                    width=\"240\"\n                    height=\"160\"\n                    style=\"max-width:100%;\"\n                \/>\n            <\/a>\n        <\/div>\n\t\t\t\t\t\t\t<\/div> \n\t\t\t\n        \n\t\t\n\t\t<!-- Pagination -->\n\t<div class='ngg-clear'><\/div>\t<\/div>\n<\/p>\n<hr \/>\n<p>SQL Script to get the biggest tables:<\/p>\n<pre class=\"lang:tsql decode:true \" title=\"get bit tables\">select object_name(id) [Table Name],\r\n[Table Size] = convert (varchar, dpages * 8 \/1024) + 'MB'\r\nfrom sysindexes where indid in (0,1)\r\noder by dpages desc<\/pre>\n<hr \/>\n<p>What do you think? How big are your DB&#8217;s?<\/p>\n<p>Please leave a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just want to know how much space does your vCenter DB consume and what are your biggest tables?<\/p>\n","protected":false},"author":1,"featured_media":414,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[11,10,7],"tags":[],"class_list":["post-390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql","category-vcenter","category-vsphere"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=390"}],"version-history":[{"count":12,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":413,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/390\/revisions\/413"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/media\/414"}],"wp:attachment":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}