<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Resizing Disk After Increasing Disk Size in VMware in Cloud Firewall</title>
    <link>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80331#M2442</link>
    <description>It's my "Migrate to R80.x" Lab</description>
    <pubDate>Tue, 31 Mar 2020 15:09:47 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-03-31T15:09:47Z</dc:date>
    <item>
      <title>Resizing Disk After Increasing Disk Size in VMware</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80269#M2440</link>
      <description>&lt;P&gt;I had originally set up a VM with a much smaller disk and decided to increase it in VMware, which of course you do when the VM is powered off.&lt;BR /&gt;Unfortunately, you have to do a little work to get the system to recognize it and use it.&lt;/P&gt;
&lt;P&gt;The following is what I was able to work out with some Googling.&lt;BR /&gt;I tested this on R77.30 and it should work on later releases (though specifics may differ).&lt;BR /&gt;However, &lt;STRONG&gt;this is an unsupported procedure&lt;/STRONG&gt;, so take backups, do this at your own risk, etc.&lt;/P&gt;
&lt;P&gt;After you've resized the disk container in VMware with the VM powered off, you have to resize the partition in Gaia.&lt;BR /&gt;You do this by deleting and re-adding the partition using fdisk:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;[Expert@R7730:0]# &lt;STRONG&gt;fdisk /dev/sda&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;The number of cylinders for this disk is set to 26108.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;There is nothing wrong with that, but this is larger than 1024,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;and could in certain setups cause problems with:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;1) software that runs at boot time (e.g., old versions of LILO)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;2) booting and partitioning software from other OSs&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;(e.g., DOS FDISK, OS/2 FDISK)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Command (m for help): &lt;STRONG&gt;p&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Disk /dev/sda: 214.7 GB, 214748364800 bytes&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;255 heads, 63 sectors/track, 26108 cylinders&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Device Boot&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Start &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;End&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Blocks &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Id&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;System&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;/dev/sda1 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;* &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;38&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;305203+&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;83&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Linux&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;/dev/sda2&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;39&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1082 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;8385930 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;82&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Linux swap / Solaris&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;/dev/sda3&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1083 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;16709 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;125523877+&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;8e&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Linux LVM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The Linux LVM partition is the one we want to delete:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Command (m for help): &lt;STRONG&gt;d&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Partition number (1-4): &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;And re-add, using the defaults to use the rest of the virtual disk:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Command (m for help): &lt;STRONG&gt;n&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Command action&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;e &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;extended&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;p &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;primary partition (1-4)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;p&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Partition number (1-4): &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;First cylinder (1083-26108, default 1083):&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;Using default value 1083&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Last cylinder or +size or +sizeM or +sizeK (1083-26108, default 26108): &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Using default value 26108&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;When the partition is added, it's the wrong type, so we have to change it to the correct type:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Command (m for help): &lt;STRONG&gt;t&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Partition number (1-4): &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Hex code (type L to list codes): &lt;STRONG&gt;8e&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class="s1"&gt;&lt;FONT face="courier new,courier"&gt;Changed system type of partition 3 to 8e (Linux LVM)&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Now we write the partition table and reboot&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Command (m for help): &lt;STRONG&gt;w&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;The partition table has been altered!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Calling ioctl() to re-read partition table.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;WARNING: Re-reading the partition table failed with error 16: Device or resource busy.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;The kernel still uses the old table.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;The new table will be used at the next reboot.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Syncing disks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;[Expert@R7730:0]# &lt;STRONG&gt;reboot&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;After the system reboots, you will need to execute a couple of additional commands:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;pvresize /dev/sda3&lt;/FONT&gt;&lt;/STRONG&gt; to expand the logical volume to use the rest of the partition&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;lvm_manager&lt;/FONT&gt;&lt;/STRONG&gt; to expand lv_current and lv_log to the desired sizes, which will require a reboot afterwords.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And that's it.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 02:05:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80269#M2440</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-03-31T02:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing Disk After Increasing Disk Size in VMware</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80270#M2441</link>
      <description>&lt;P&gt;hat are you still doing with 77.30 ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 03:34:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80270#M2441</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2020-03-31T03:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing Disk After Increasing Disk Size in VMware</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80331#M2442</link>
      <description>It's my "Migrate to R80.x" Lab</description>
      <pubDate>Tue, 31 Mar 2020 15:09:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Resizing-Disk-After-Increasing-Disk-Size-in-VMware/m-p/80331#M2442</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-03-31T15:09:47Z</dc:date>
    </item>
  </channel>
</rss>

