If your /DATA partition is getting full, you may need to increase the size for Unomaly to continue functioning normally. Please see the installation overview for general recommendations. Note that these instructions are for specific for the ISO installation type. If you have installed Unomaly in some other way, please contact support for further help.
First, you need to make the physical disk bigger, and this may look significantly different depending on which platform you are running. For VMware specifically, please see their Increasing the size of a virtual disk knowledge base article.
Once the physical disk has been expanded, please follow the steps below to make that space available in Unomaly.
Find the name for the disk that you have installed on using the following command. Below is an example output.
$ sudo fdisk -l
Disk /dev/sda: 60 GiB, 64382566400 bytes, 125747200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb82525ce
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 499711 497664 243M 83 Linux
/dev/sda2 501758 125745151 125243394 59.7G 5 Extended
/dev/sda5 501760 125745151 125243392 59.7G 8e Linux LVM
Disk /dev/mapper/unomaly--vg-root: 28 GiB, 29997662208 bytes, 58589184 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/unomaly--vg-swap: 3.7 GiB, 3997171712 bytes, 7806976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/unomaly--vg-data: 28.1 GiB, 30127685632 bytes, 58843136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
In the output example above, Unomaly installed on the /dev/sda disk. This will be used in the rest of this guide.
Run the following command to configure the hard drive:
$ sudo fdisk /dev/sda
Complete the following steps:
- Press n to create a partition
- Press p for a primary partition (this will probably be sda3)
- Select start and end sector (as big as possible)
- Press t to set partition type
- Select created partition then 8e for Linux LVM
- Press w to write partition
- Reboot
After the reboot, extend the LVM physical volume using this command:
$ sudo pvcreate /dev/sda3
Extend the LVM volume group:
$ sudo vgextend unomaly-vg /dev/sda3
Extend the LVM logical volume
$ sudo lvextend -l +100%FREE /dev/unomaly-vg/data
Resize the partition:
$ sudo resize2fs /dev/unomaly-vg/data
Finally, verify that the /DATA partition is now bigger:
df -h