Now we are going to extend the volume group with the newly added PV (/dev/sda3): What about the volume group?: We have one volume group with about 40GB, the new disk still not reflected. Now, we are going to create physical volume on the new partition (but we need to reboot the VM first): so, now we 2 PVs, but the new one still not added to the volume group. Now examine the disk layout again: So, we can see that we have a new disk partition /dev/sda3 Now, we will use the newly added space to create a new disk partition, using the fdisk command: You notice now that the physical disk /dev/sda has larger size Now start the VM, and check the free space: Nothing changed so far. Stop the VM The fist step is to resize the hard disk from the OS to be 50GB using VBoxManage command Given this disk layout, we have two options to increase the “/” filesystem size:ġ- To add a new physical disk to the VM, and use it to expand the LV and so the filesystem.Ģ- To resize the current physical disk from about 39GB to 50 GB, and then resize the LV and filesystem. We have to Logical Volums (2 lvs), one for swap (3GB), and the larger one for “/” file system. So, we have one physical disk (/dev/sda) divided into 2 partitions, /dev/sda1 for /boot (small one) and larger partition /dev/sda2), that is used to build LVM. How many physicals disks that we have, how many partitions?. So, I decided to increase the space by another 10GB. When I examined the space on this VM, I found that I have only 2GB of free space available in “/” filesystem, which is not enough for me to do my work. We have an Oracle Linux Virtual Machine that we created in our previous post up and running.
0 Comments
Leave a Reply. |