User Tools

Site Tools


extending_a_logical_volume_in_vmware_machine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
extending_a_logical_volume_in_vmware_machine [2017/11/23 08:56] lucyextending_a_logical_volume_in_vmware_machine [2021/12/20 12:29] (current) lucysecurity
Line 3: Line 3:
 This article provides steps for extending the root partition residing in a logical volume created with Logical Volume Manager (LVM) in a virtual machine running Lucy. A more complete guide with screenshots can be found {{ ::guide.pdf |here}}. This article provides steps for extending the root partition residing in a logical volume created with Logical Volume Manager (LVM) in a virtual machine running Lucy. A more complete guide with screenshots can be found {{ ::guide.pdf |here}}.
  
-**Caution: We recommend to take a complete backup of the virtual machine prior to making these changes.**+**Caution: We recommend taking a complete backup of the virtual machine prior to making these changes.**
  
 1. Power off the virtual machine.\\ 1. Power off the virtual machine.\\
Line 56: Line 56:
 \\ \\
 12. Run this command to extend the physical volume:\\ 12. Run this command to extend the physical volume:\\
-''# vgextend phishing /dev/sda4''\\+''# vgextend phishing--vg /dev/sda4''\\
 \\ \\
 13. Run this command to verify how many physical extents are available to the Volume Group:\\ 13. Run this command to verify how many physical extents are available to the Volume Group:\\
-''# vgdisplay phishing | grep "Free"''\\+''# vgdisplay phishing--vg | grep "Free"''\\
 \\ \\
 14. Run the following command to extend the Logical Volume:\\ 14. Run the following command to extend the Logical Volume:\\
-''# lvextend -L+#G /dev/phishing/root''\\+''# lvextend -L+#G /dev/phishing-vg/root''\\
 \\ \\
 Where **<#>** is the number of Free space in GB available as per the previous command. Use the full number output from Step 13 including any decimals.\\ Where **<#>** is the number of Free space in GB available as per the previous command. Use the full number output from Step 13 including any decimals.\\
 \\ \\
 15. Run the following command to expand the ext3 filesystem online, inside of the Logical Volume:\\ 15. Run the following command to expand the ext3 filesystem online, inside of the Logical Volume:\\
-''# resize2fs /dev/phishing/root''\\+''# resize2fs /dev/phishing-vg/root''\\
 \\ \\
 16. Run the following command to verify that the / filesystem has the new space available:\\ 16. Run the following command to verify that the / filesystem has the new space available:\\
 ''# df -h''\\ ''# df -h''\\
 {{ :wmvare_16.png?400 |}} {{ :wmvare_16.png?400 |}}
extending_a_logical_volume_in_vmware_machine.1511423819.txt.gz · Last modified: 2019/07/25 12:51 (external edit)