{"id":3098,"date":"2022-04-21T11:50:42","date_gmt":"2022-04-21T11:50:42","guid":{"rendered":"https:\/\/blog.designed79.co.uk\/?p=3098"},"modified":"2022-04-21T11:51:50","modified_gmt":"2022-04-21T11:51:50","slug":"esxi-resize-system-boot-volume","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=3098","title":{"rendered":"ESXI &#8211; Resize system boot volume"},"content":{"rendered":"<p>Actually you cannot resize the OS partition on an existing ESXi installation but you can backup the configuration, reinstall with the right options and restore back the configuration.<br \/>\nYou could probably also migrate during the installation process but I haven&#8217;t tested that yet.<\/p>\n<p>So, without much typing here we go.<\/p>\n<h4>1. Backup the existing ESXi configuration<\/h4>\n<p>a. Enable SSH on ESXi host<\/p>\n<p>b. Execute the following command<\/p>\n<p class=\"codeblock xbbcode\">\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">[root@eeny:~] vim-cmd hostsvc\/firmware\/backup_config<br \/>\n[h4]c. Bundle can be downloaded at : http:\/\/*\/downloads\/52bfcef4-c345-f4a9-5c7a-98429dc49544\/configBundle-eeny.tgz[\/h4]<\/div><\/div>\n<h4>2. Take that URL, replace * with the IP of you ESXi server and download the bundle with your browser.<\/h4>\n<h4>3. Shutdown ESXi and prepare the installation. At boot, press SHIFT+O and add the following<\/h4>\n<p>If you have 7.0 Update 1c:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">systemMediaSize=min<\/div><\/div>\n<p>Values are min, small, default, max &#8211; check vmware KB websites for more details but be aware they did a mistake there, it is written 33GB but from what I have seen, min will give you around 25G of VMFSL partition, nowhere near 33GB.<br \/>\nIf you have a lower version of if you want to go below min, you need to use an unsupported way:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">autoPartitionOSDataSize=5120<\/div><\/div>\n<p>The example above means VMFSL partition will be around 5GB in size.<\/p>\n<h4>4. Once the installation is done, check if VMFSL partition is reduced and if all is good, just restore the previous configuration<\/h4>\n<p>a. Enable SSH on ESXi host<\/p>\n<p>b. Copy the bundle to ESXi host<\/p>\n<p class=\"codeblock xbbcode\">\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">fmbp16$ scp configBundle-eeny.tgz eeny:\/tmp\/<br \/>\n(root@10.8.4.2) Password:<br \/>\nconfigBundle-eeny.tgz<\/div><\/div>\n<p>c. Rename it by removing dash host (-eeny):<\/p>\n<p class=\"codeblock xbbcode\">\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">[root@eeny:\/tmp] mv configBundle-eeny.tgz configBundle.tgz<\/div><\/div>\n<\/p>\n<p>d. Put the host in maintenance mode (recommended by VMware, not sure if at this stage is really necessary but it wont hurt doing it)<\/p>\n<p class=\"codeblock xbbcode\">\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">[root@eeny:\/tmp] esxcli system maintenanceMode set --enable yes<\/div><\/div>\n<\/p>\n<p>e. Execute the restore command and be aware the system will reboot as soon as you run it:<\/p>\n<p class=\"codeblock xbbcode\">\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">[root@eeny:\/tmp] vim-cmd hostsvc\/firmware\/restore_config \/tmp\/configBundle.tgz<br \/>\nConnection to 10.8.4.2 closed by remote host.<br \/>\nConnection to 10.8.4.2 closed.<br \/>\nfmbp16$<\/div><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Actually you cannot resize the OS partition on an existing ESXi installation but you can backup the configuration, reinstall with the right [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3098","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3098"}],"version-history":[{"count":6,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3098\/revisions"}],"predecessor-version":[{"id":3104,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3098\/revisions\/3104"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}