When the available storage on the EDR Telemetry Store virtual appliance becomes insufficient, you can increase capacity by extending the existing data disk.
Important
We recommend that you take a backup of the virtual machine in the hypervisor to ensure data recovery.
The high-level steps include:
Extend the hard disk in the hypervisor
Shut down the virtual machine.
Delete all existing snapshots.
Open the hardware configuration settings for the virtual machine in your hypervisor management console.
Locate the second hard disk, which contains the OpenSearch data directory.
Increase the disk capacity to the required size, and then save your changes.
Convert the MBR partition table to GPT
Master Boot Record (MBR) partition tables do not support disks that exceed 2 TB. If the new disk size exceeds 2 TB, you must convert the partition table to GUID Partition Table (GPT) to ensure the system recognizes the additional capacity.
If the disk size is 2 TB or less, proceed to Resize the partition.
Power on the EDR Telemetry Store virtual appliance and log in as an administrator.
ssh admin@<IP_address>Enter privileged mode:
enableEnter your password when prompted.
Access the shell:
shellInstall the
gdiskutility:dnf install -y gdiskStop the OpenSearch service:
systemctl stop opensearchUnmount the OpenSearch data directory:
umount /var/lib/opensearchDeactivate the volume group to safely modify the partition table:
vgchange -a n vg_opensearchRun
gdiskto convert the MBR table to GPT:gdisk /dev/sdbWrite the new GPT data:
Type
wand press Enter.Type
Yand press Enter to confirm.
Force the kernel to read the new partition table:
partprobe /dev/sdbReactivate the volume group:
vgchange -a y vg_opensearchRemount the OpenSearch data directory:
mount -a
Resize the partition
Power on the EDR Telemetry Store virtual appliance and log in as an administrator.
ssh admin@<IP_address>Enter privileged mode:
enableEnter your password when prompted.
Access the shell:
shellList block devices:
lsblkThe OpenSearch data directory (
/var/lib/opensearch) is located on partitionsdb1of disksdb.
Display partition information:
parted -s -a opt /dev/sdb "print free"
Confirm that free space is available after partition 1.
Resize partition 1 to occupy the full disk:
parted -s -a opt /dev/sdb "resizepart 1 100%"Verify the updated partition layout:
parted -s -a opt /dev/sdb "print free"
Resize the physical volume
Display current physical volumes:
pvsResize the physical volume:
pvresize /dev/sdb1Verify the updated size:
pvs
Resize the logical volume and file system
Display logical volumes:
lvsExtend the logical volume and file system to use all free space:
lvextend -l +100%FREE -r /dev/vg_opensearch/lv_opensearchVerify the updated logical volume size:
lvs
Result
The additional disk space is now available for use by the EDR Telemetry Store virtual appliance.
You can confirm the increase using:
df -h