<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Vmware_Extend_Disk_Redhat</id>
	<title>Vmware Extend Disk Redhat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Vmware_Extend_Disk_Redhat"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Vmware_Extend_Disk_Redhat&amp;action=history"/>
	<updated>2026-04-04T16:27:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Vmware_Extend_Disk_Redhat&amp;diff=1253&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;https://kb.vmware.com/s/article/1006371  ``` To extend the logical volume:   Caution: VMware recommends to take a complete backup of the virtual machine prior to making these...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Vmware_Extend_Disk_Redhat&amp;diff=1253&amp;oldid=prev"/>
		<updated>2021-02-18T16:43:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;https://kb.vmware.com/s/article/1006371  ``` To extend the logical volume:   Caution: VMware recommends to take a complete backup of the virtual machine prior to making these...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;https://kb.vmware.com/s/article/1006371&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
To extend the logical volume:&lt;br /&gt;
 &lt;br /&gt;
Caution: VMware recommends to take a complete backup of the virtual machine prior to making these changes.&lt;br /&gt;
Power off the virtual machine.&lt;br /&gt;
Edit the virtual machine settings and extend the virtual disk size. For more information, see Increasing the size of a virtual disk (1004047).&lt;br /&gt;
Power on the virtual machine.&lt;br /&gt;
Identify the device name, which is by default /dev/sda, and confirm the new size by running the command:&lt;br /&gt;
&lt;br /&gt;
# fdisk -l&lt;br /&gt;
 &lt;br /&gt;
Create a new primary partition:&lt;br /&gt;
Run the command:&lt;br /&gt;
&lt;br /&gt;
# fdisk /dev/sda (depending the results of the step 4)&lt;br /&gt;
Press p to print the partition table to identify the number of partitions. By default, there are 2: sda1 and sda2.&lt;br /&gt;
Press n to create a new primary partition.&lt;br /&gt;
Press p for primary.&lt;br /&gt;
Press 3 for the partition number, depending on the output of the partition table print.&lt;br /&gt;
Press Enter two times.&lt;br /&gt;
Press t to change the system's partition ID.&lt;br /&gt;
Press 3 to select the newly creation partition.&lt;br /&gt;
Type 8e to change the Hex Code of the partition for Linux LVM.&lt;br /&gt;
Press w to write the changes to the partition table.&lt;br /&gt;
 &lt;br /&gt;
Restart the virtual machine.&lt;br /&gt;
Run this command to verify that the changes were saved to the partition table and that the new partition has an 8e type:&lt;br /&gt;
&lt;br /&gt;
# fdisk -l&lt;br /&gt;
 &lt;br /&gt;
Run this command to convert the new partition to a physical volume:&lt;br /&gt;
&lt;br /&gt;
Note: The number for the sda can change depending on system setup. Use the sda number that was created in step 5.&lt;br /&gt;
&lt;br /&gt;
# pvcreate /dev/sda3&lt;br /&gt;
 &lt;br /&gt;
Run this command to extend the physical volume:&lt;br /&gt;
&lt;br /&gt;
# vgextend VolGroup00 /dev/sda3&lt;br /&gt;
&lt;br /&gt;
Note: To determine which volume group to extend, use the command vgdisplay.&lt;br /&gt;
 &lt;br /&gt;
Run this command to verify how many physical extents are available to the Volume Group:&lt;br /&gt;
&lt;br /&gt;
# vgdisplay VolGroup00 | grep &amp;quot;Free&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
Run the following command to extend the Logical Volume:&lt;br /&gt;
&lt;br /&gt;
# lvextend -L+#G /dev/VolGroup00/LogVol00&lt;br /&gt;
&lt;br /&gt;
Where # is the number of Free space in GB available as per the previous command. Use the full number output from Step 10 including any decimals.&lt;br /&gt;
&lt;br /&gt;
Note: To determine which logical volume to extend, use the command lvdisplay.&lt;br /&gt;
 &lt;br /&gt;
Run the following command to expand the ext3 filesystem online, inside of the Logical Volume:&lt;br /&gt;
&lt;br /&gt;
# ext2online /dev/VolGroup00/LogVol00&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
Use resize2fs instead of ext2online for non-Red Hat virtual machines.&lt;br /&gt;
Use xfs_growfs for Red Hat, CentOS 7 and other VM Guest OS types that use the XFS file system.&lt;br /&gt;
 &lt;br /&gt;
Run the following command to verify that the / filesystem has the new space available:&lt;br /&gt;
&lt;br /&gt;
# df -h /&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>