extending_a_logical_volume_in_vmware_machine
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
extending_a_logical_volume_in_vmware_machine [2017/11/20 20:26] – lucy | extending_a_logical_volume_in_vmware_machine [2017/11/20 20:28] – lucy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | 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. | + | 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 to take a complete backup of the virtual machine prior to making these changes. | ||
Line 5: | Line 5: | ||
1. Power off the virtual machine.\\ | 1. Power off the virtual machine.\\ | ||
2. Edit the virtual machine settings and extend the virtual disk size. \\ | 2. Edit the virtual machine settings and extend the virtual disk size. \\ | ||
- | |||
For more information, | For more information, | ||
3. Power on the virtual machine.\\ | 3. Power on the virtual machine.\\ | ||
- | |||
4. Print the partition table to verify the number of partitions by running the command:\\ | 4. Print the partition table to verify the number of partitions by running the command:\\ | ||
# fdisk -l\\ | # fdisk -l\\ | ||
By default, there are 3: sda1, sda2 and sda5.\\ | By default, there are 3: sda1, sda2 and sda5.\\ | ||
- | |||
4. Create a new primary partition - sda3:\\ | 4. Create a new primary partition - sda3:\\ | ||
a) Run the command:\\ | a) Run the command:\\ | ||
Line 24: | Line 21: | ||
h) Type 8e to change the Hex Code of the partition for Linux LVM.\\ | h) Type 8e to change the Hex Code of the partition for Linux LVM.\\ | ||
i) Press <w> to write the changes to the partition table.\\ | i) Press <w> to write the changes to the partition table.\\ | ||
- | |||
5. Restart the virtual machine:\\ | 5. Restart the virtual machine:\\ | ||
# shutdown -r now\\ | # shutdown -r now\\ | ||
- | |||
7. Verify whether sda3 has successfully created, by running the command:\\ | 7. Verify whether sda3 has successfully created, by running the command:\\ | ||
# fdisk -l\\ | # fdisk -l\\ | ||
- | |||
8. Create another primary partition sda4:\\ | 8. Create another primary partition sda4:\\ | ||
a) Run the command:\\ | a) Run the command:\\ |
extending_a_logical_volume_in_vmware_machine.txt · Last modified: 2021/12/20 12:29 by lucysecurity