{"id":3908,"date":"2023-09-10T09:46:25","date_gmt":"2023-09-10T09:46:25","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=3908"},"modified":"2023-09-10T09:46:26","modified_gmt":"2023-09-10T09:46:26","slug":"vmware-vcenter-extending-disk-to-resolve-log-disk-exhaustion","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=3908","title":{"rendered":"VMware vCenter &#8211; Extending Disk to Resolve Log Disk Exhaustion"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If and when a log disk begins to fill up you will see messages such as &#8220;Log Disk Exhaustion on &lt;vcenter name&gt;&#8221;.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Within the vCenter console and VAMI you can see the log drive is running low on space.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"21\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-6-1024x21.png\" alt=\"\" class=\"wp-image-3911\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-6-1024x21.png 1024w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-6-300x6.png 300w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-6-768x16.png 768w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-6.png 1299w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"454\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-4-1024x454.png\" alt=\"\" class=\"wp-image-3909\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-4-1024x454.png 1024w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-4-300x133.png 300w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-4-768x340.png 768w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-4-1536x680.png 1536w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-4.png 1768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>If you are using VMware HA for vCenter, i.e. two vCenter appliances, you will need to perform these steps on the primary and then on the secondary, its recommended to failover once you have extended each, for the secondary you will need to use the VMware console as there is no direct SSH access to the secondary normally.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"VMwarevCenterExtendingDisktoresolveLogDiskExhaustion-Verify\">Verify<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Login to the vCenter appliance with SSH.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run this command to enable the Bash shell:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>shell.set --enabled true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Type this and press Enter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>shell<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Run this command and it will return the space usage of each storage volume or disk.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for the<strong>\u00a0\/storage\/log\u00a0<\/strong>disk filesystem size. If its looking full carry on with these steps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>You can also use:\r\n\r\ndu -a \/storage\/log | sort -n -r | head -n 20\r<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Which will give you an idea of which directory is using lots of space, if you wanted to prune the logs out.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"VMwarevCenterExtendingDisktoresolveLogDiskExhaustion-Resolution\">Resolution<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">All you need to do is extend the disk holding the logs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">View the disks through VAMI, as you can see in this case it is &#8220;Hard Disk 5&#8221; that holds the logs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"454\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-7-1024x454.png\" alt=\"\" class=\"wp-image-3912\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-7-1024x454.png 1024w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-7-300x133.png 300w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-7-768x340.png 768w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-7-1536x680.png 1536w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-7.png 1768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Right click vCenter Appliance, choose Edit Settings to increase the relevant disk, (ensure there are no open snapshots on the VM).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"285\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-8.png\" alt=\"\" class=\"wp-image-3913\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-8.png 630w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/09\/image-8-300x136.png 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once successfully extended back in the SSH console run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/lib\/applmgmt\/support\/scripts\/autogrow.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The script checks all the partitions and extends them to 100% of the disk size.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the\u00a0<strong>df -h<\/strong>\u00a0command to verify the change was successful and the new drive size is reflected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Information<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/kb.vmware.com\/s\/article\/83070\">https:\/\/kb.vmware.com\/s\/article\/83070<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.ubackup.com\/enterprise-backup\/log-disk-exhaustion-on-vcenter.html#:~:text=After%20removing%20some%20large%20log,%2Fstorage%2Flog%20virtual%20disk\">https:\/\/www.ubackup.com\/enterprise-backup\/log-disk-exhaustion-on-vcenter.html#:~:text=After%20removing%20some%20large%20log,%2Fstorage%2Flog%20virtual%20disk<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If and when a log disk begins to fill up you will see messages such as &#8220;Log Disk Exhaustion on &lt;vcenter name&gt;&#8221;.&nbsp; Within the vCenter console and VAMI you can see the log drive is running low on space. If you are using VMware HA for vCenter, i.e. two vCenter appliances, you will need to &#8230; <a title=\"VMware vCenter &#8211; Extending Disk to Resolve Log Disk Exhaustion\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=3908\" aria-label=\"Read more about VMware vCenter &#8211; Extending Disk to Resolve Log Disk Exhaustion\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-3908","post","type-post","status-publish","format-standard","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3908"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3908\/revisions"}],"predecessor-version":[{"id":3914,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3908\/revisions\/3914"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}