Be pitiful, for every man is fighting a hard battle. Ogni persona che incontri sta combattendo una battaglia di cui non sai nulla. Sii gentile. Sempre. www.giovannitommasini.info
Do you have finished all the space in you VM? Yes for sure you can add a new Virtual Hard Disk on you VM in VirtualBox or in Proxmox or in VMWare, and have a new separate partition (like sdb) on your VM, and for example you’ll can mount the log folder in this second “disk”; but if you are using an LVM Partition you can easily, ancee with out rebooting you VM, increare the LVM Partition adding the new disk in it
Below I will show you the steps to follow to complete this operation: Let’s check with the pvdisplay command that currently we have only one physical volume
Let’s create the primary partition on the second disk with the command cfdisk /dev/sdX: the partition must be PRIMARY, NOT BOOTABLE and 8E type (Lunux LVM). And then with fdisk -l /dev/sdb command, let’s check if all is correct
Let’s create the Physical volume with pvcreate /dev/sdX1 command.
Let’s re-check now the Physical volumes
Let’s check the name of the volume group (VG Name) with vgdisplay command
Let’s extend the volume group with the command vgextend VGname /dev/sdX1 command
Let’s check now the path of the Logical volume (LV Path) with lvdisplay command
Let’s extend the logical volume with lvextend LVpath /dev/sdX1 command
Let’s check the name of the device mapper with df -h command
Let’s now resize file system with with last 3 command
And then with df -h you can verify the new partition size