<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Resize on Simon Žekar — unix, communications, stupidities</title><link>https://simon.zekar.com/tags/resize/</link><description>Recent content in Resize on Simon Žekar — unix, communications, stupidities</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 01 Mar 2013 21:47:15 +0000</lastBuildDate><atom:link href="https://simon.zekar.com/tags/resize/index.xml" rel="self" type="application/rss+xml"/><item><title>FreeBSD disk/partition resize – grow on version 8.2 and newer under vmware vSphere / ESXi</title><link>https://simon.zekar.com/2013/03/01/freebsd-disk-partition-resize-grow-on-version-8-x-and-newer-under-vmware-vsphere-esxi/</link><pubDate>Fri, 01 Mar 2013 21:47:15 +0000</pubDate><guid>https://simon.zekar.com/2013/03/01/freebsd-disk-partition-resize-grow-on-version-8-x-and-newer-under-vmware-vsphere-esxi/</guid><description>&lt;p>This one is easier than &lt;a href="https://simon.zekar.com/2012/05/18/freebsd-grow-partition-disk-vmware-esxi/">previous&lt;/a> (FreeBSD 7.x or older).&lt;/p>
&lt;p>It may be possible to do it all live but you need to find a way for FreeBSD to see the growed disk size.&lt;/p>
&lt;ul>
&lt;li>Shut down the server&lt;/li>
&lt;li>Grow the disk size&lt;/li>
&lt;li>Boot FreeBSD in single user mode (number 4 at boot)&lt;/li>
&lt;/ul>
&lt;p>Check the partitions layout:&lt;/p>
&lt;p>&lt;code>gpart show&lt;/code>&lt;/p>
&lt;p>Set the system in evil mode that will allow gpart to change live filesystem:&lt;/p>
&lt;p>&lt;code>sysctl kern.geom.debugflags=16&lt;/code>&lt;/p>
&lt;p>Grow the whole disk – consumer. Number 1 is the consumer index shown with gpart show&lt;/p>
&lt;p>&lt;code>gpart resize -i 1 da0&lt;/code>&lt;/p>
&lt;p>Grow desired provider – partition. Number 6 is the provider index shown with gpart show&lt;/p>
&lt;p>&lt;code>gpart resize -i 6 da0s1&lt;/code>&lt;/p>
&lt;p>Now with partition resized you can growfs&lt;/p>
&lt;p>&lt;code>growfs /dev/da0s1f&lt;/code>&lt;/p>
&lt;p>Reboot for a clean feeling and you’re done.&lt;/p>
&lt;p>S.&lt;/p></description></item></channel></rss>